#include <vstorefuncs.h>
Public Member Functions | |
| CountItems () | |
| Constructor. | |
| CountItems (vssize_t sv) | |
| Constructor. | |
| ~CountItems () | |
| Destructor. | |
| CountItems (const CountItems &ci) | |
| Copy constructor. | |
| const CountItems & | operator= (const CountItems &ci) |
| Assignment operator. | |
| vssize_t | amount () const |
| Get the amount of items counted. | |
| void | reset () |
| Reset the object. | |
| void | operator() (const VStoreItem *vsi) |
| Function operator. | |
| CountItems | operator+ (const CountItems &ci) const |
| Addition operator. | |
| const CountItems & | operator+= (const CountItems &ci) |
| Shorthand assignment addition operator. | |
Private Attributes | |
| vssize_t | items |
| Holds the amount of items. | |
| GVectors::CountItems::CountItems | ( | ) | [inline, explicit] |
Constructor. Initializes items to zero.
| GVectors::CountItems::CountItems | ( | vssize_t | sv | ) | [inline, explicit] |
Constructor. Initializes items to a certain value.
| sv | The value items to be initialized to. |
| GVectors::CountItems::~CountItems | ( | ) | [inline] |
Destructor. Does nothing. Just for completeness.
| GVectors::CountItems::CountItems | ( | const CountItems & | ci | ) | [inline] |
| const CountItems& GVectors::CountItems::operator= | ( | const CountItems & | ci | ) | [inline] |
Assign one CountItems to another.
| ci | A const reference to a CountItems object. |
| vssize_t GVectors::CountItems::amount | ( | ) | const [inline] |
Gets the amount of items counted.
| void GVectors::CountItems::reset | ( | ) | [inline] |
Resets the object by setting items to zero.
| void CountItems::operator() | ( | const VStoreItem * | vsi | ) |
Gets the size of the list associated with the VStoreItem pointer provided. It then calls VStoreItem::count_items() of this VStoreItem.
| vsi | A cosnt pointer to a VStoreItem. |
| CountItems GVectors::CountItems::operator+ | ( | const CountItems & | ci | ) | const [inline] |
Adds to CountItems object.
| ci | A const reference to a CountItems object. |
| const CountItems& GVectors::CountItems::operator+= | ( | const CountItems & | ci | ) | [inline] |
Shorthand assignment addition operator.
| ci | A const reference to a CountItems to be added to this. |
vssize_t GVectors::CountItems::items [private] |
Holds the amount of items stored in the vector store.
1.4.7