Sparksee  6.0.2
OIDList Class Reference

Sparksee object identifier list. More...

Public Member Functions

int32_t Count () const
 Number of elements in the list. More...
 
OIDListIteratorIterator ()
 Gets a new OIDListIterator. More...
 
 OIDList ()
 Constructor. More...
 
 OIDList (int32_t numInvalidOIDs)
 Constructor. More...
 
 OIDList (const std::vector< oid_t > &v)
 Constructor. More...
 
 ~OIDList ()
 Destructor.
 
void Add (oid_t attr)
 Adds a Sparksee object identifier at the end of the list. More...
 
void Set (int32_t pos, oid_t oid)
 Sets a Sparksee object identifier at the specified position of the list. More...
 
void Clear ()
 Clears the list.
 

Detailed Description

Sparksee object identifier list.

It stores a Sparksee object identifier list.

Use OIDListIterator to access all elements into this collection.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Constructor & Destructor Documentation

OIDList::OIDList ( )

Constructor.

This creates an empty list.

OIDList::OIDList ( int32_t  numInvalidOIDs)

Constructor.

This creates a list with N invalid oids.

Parameters
numInvalidOIDs[in] The number of invalid oids added to the list.
OIDList::OIDList ( const std::vector< oid_t > &  v)

Constructor.

Parameters
v[in] Vector.

Member Function Documentation

void OIDList::Add ( oid_t  attr)
inline

Adds a Sparksee object identifier at the end of the list.

Parameters
attr[in] Sparksee object identifier.
int32_t OIDList::Count ( ) const
inline

Number of elements in the list.

Returns
Number of elements in the list.
OIDListIterator* OIDList::Iterator ( )

Gets a new OIDListIterator.

Returns
OIDListIterator instance.
void OIDList::Set ( int32_t  pos,
oid_t  oid 
)
inline

Sets a Sparksee object identifier at the specified position of the list.

Parameters
pos[in] List position [0..Count()-1].
oid[in] Sparksee object identifier.

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