Gadget
Public Member Functions | Protected Attributes | List of all members
AddressKeeperVector Class Reference

This class implements a dynamic vector of AddressKeeper values. More...

#include <addresskeepervector.h>

Collaboration diagram for AddressKeeperVector:
Collaboration graph

Public Member Functions

 AddressKeeperVector ()
 This is the default AddressKeeperVector constructor. More...
 
 ~AddressKeeperVector ()
 This is the AddressKeeperVector destructor. More...
 
void resize ()
 This will add one new empty entry to the vector. More...
 
void Delete (int pos)
 This will delete an entry from the vector. More...
 
int Size () const
 This will return the size of the vector. More...
 
AddressKeeperoperator[] (int pos)
 This will return the value of an element of the vector. More...
 
const AddressKeeperoperator[] (int pos) const
 This will return the value of an element of the vector. More...
 

Protected Attributes

AddressKeeperv
 This is the vector of AddressKeeper values. More...
 
int size
 This is the size of the vector. More...
 

Detailed Description

This class implements a dynamic vector of AddressKeeper values.

Constructor & Destructor Documentation

◆ AddressKeeperVector()

AddressKeeperVector::AddressKeeperVector ( )
inline

This is the default AddressKeeperVector constructor.

◆ ~AddressKeeperVector()

AddressKeeperVector::~AddressKeeperVector ( )

This is the AddressKeeperVector destructor.

Note
This will free all the memory allocated to all the elements of the vector

Member Function Documentation

◆ Delete()

void AddressKeeperVector::Delete ( int  pos)

This will delete an entry from the vector.

Parameters
posis the element of the vector to be deleted
Note
This will free the memory allocated to the deleted element of the vector

◆ operator[]() [1/2]

AddressKeeper& AddressKeeperVector::operator[] ( int  pos)
inline

This will return the value of an element of the vector.

Parameters
posis the element of the vector to be returned
Returns
the value of the specified element

◆ operator[]() [2/2]

const AddressKeeper& AddressKeeperVector::operator[] ( int  pos) const
inline

This will return the value of an element of the vector.

Parameters
posis the element of the vector to be returned
Returns
the value of the specified element

◆ resize()

void AddressKeeperVector::resize ( )

This will add one new empty entry to the vector.

Note
The new element of the vector will be created, and set to zero

◆ Size()

int AddressKeeperVector::Size ( ) const
inline

This will return the size of the vector.

Returns
the size of the vector

Member Data Documentation

◆ size

int AddressKeeperVector::size
protected

This is the size of the vector.

◆ v

AddressKeeper* AddressKeeperVector::v
protected

This is the vector of AddressKeeper values.


The documentation for this class was generated from the following files: