Sparksee 6.1.0
OIDList Class Reference

Sparksee object identifier list. More...

#include <Graph_data.h>

Public Member Functions

int32_t Count () const
 Number of elements in the list.
OIDListIterator * Iterator ()
 Gets a new OIDListIterator.
 OIDList ()
 Constructor.
 OIDList (int32_t numInvalidOIDs)
 Constructor.
 OIDList (const std::vector< oid_t > &v)
 Constructor.
 ~OIDList ()
 Destructor.
void Add (oid_t attr)
 Adds a Sparksee object identifier at the end of the list.
void Set (int32_t pos, oid_t oid)
 Sets a Sparksee object identifier at the specified position of the list.
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() [1/3]

OIDList::OIDList ( )

Constructor.

This creates an empty list.

Referenced by Clear().

◆ OIDList() [2/3]

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() [3/3]

OIDList::OIDList ( const std::vector< oid_t > & v)

Constructor.

Parameters
v[in] Vector.

Member Function Documentation

◆ Add()

void OIDList::Add ( oid_t attr)
inline

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

Parameters
attr[in] Sparksee object identifier.

◆ Count()

int32_t OIDList::Count ( ) const
inline

Number of elements in the list.

Returns
Number of elements in the list.

◆ Iterator()

OIDListIterator * OIDList::Iterator ( )

Gets a new OIDListIterator.

Returns
OIDListIterator instance.

◆ Set()

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: