Sparksee 6.1.0
AttributeList Class Reference

Sparksee attribute identifier list. More...

#include <Graph_data.h>

Public Member Functions

int32_t Count () const
 Number of elements in the list.
AttributeListIterator * Iterator ()
 Gets a new AttributeListIterator.
 AttributeList ()
 Constructor.
 AttributeList (const std::vector< attr_t > &v)
 Constructor.
void Add (attr_t attr)
 Adds a Sparksee attribute identifier at the end of the list.
void Clear ()
 Clears the list.
 ~AttributeList ()
 Destructor.

Friends

class Graph

Detailed Description

Sparksee attribute identifier list.

It stores a Sparksee attribute identifier list. Optionally it may also store tha corresponding attribute names. It can also optionally store a single set of values for each attribute.

Use AttributeListIterator to access all elements into this collection.

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

Constructor & Destructor Documentation

◆ AttributeList() [1/2]

AttributeList::AttributeList ( )

Constructor.

This creates an empty list.

Referenced by ~AttributeList().

◆ AttributeList() [2/2]

AttributeList::AttributeList ( const std::vector< attr_t > & v)

Constructor.

Parameters
v[in] Vector.

Member Function Documentation

◆ Add()

void AttributeList::Add ( attr_t attr)

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

Parameters
attr[in] Sparksee attribute identifier.

Referenced by ~AttributeList().

◆ Count()

int32_t AttributeList::Count ( ) const
inline

Number of elements in the list.

Returns
Number of elements in the list.

◆ Iterator()

AttributeListIterator * AttributeList::Iterator ( )

Gets a new AttributeListIterator.

Returns
AttributeListIterator instance.

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