#include <attributePool.h>
Public Types | |
enum | TAttributeType { ATTR_FULL_RANK = 0, ATTR_ALLOW_NULL = 1, ATTR_REQ_SINGLETON = 2 } |
Public Member Functions | |
attributePool (const TPoolTable *_table, TPoolEnum _dim, TAttributeType _poolType) throw () | |
attributePool (const attributePool &P) throw () | |
~attributePool () throw () | |
size_t | Size () const throw () |
void | Flush () throw () |
TPoolEnum | ReadAttribute (goblinRootObject &, goblinImport &F) throw () |
void | ReadPool (goblinRootObject &F, goblinImport &) throw () |
bool | ReadStringAttribute (goblinImport &F, TPoolEnum token) throw (ERParse) |
void | WriteAttribute (const goblinRootObject &, goblinExport &F, TPoolEnum token, attributeBase *_attribute=NULL) const throw () |
void | WritePool (const goblinRootObject &, goblinExport &F, const char *) const throw () |
void | ExportAttributes (attributePool &P) const throw () |
template<typename T> | |
void | ImportAttribute (attribute< T > &A, TPoolEnum token) throw () |
template<typename T> | |
attribute< T > * | ImportArray (TPoolEnum token, const T *_value, size_t size) throw () |
template<typename T> | |
attribute< T > * | MakeAttribute (goblinRootObject &X, TPoolEnum _token, TAttributeType attributeType, void *_value_ptr=NULL) throw () |
void | ReleaseAttribute (TPoolEnum token) throw () |
template<typename T> | |
attribute< T > * | GetAttribute (TPoolEnum token) const throw () |
template<typename T> | |
vector< T > * | GetVector (TPoolEnum token) const throw () |
template<typename T> | |
T * | GetArray (TPoolEnum token) const throw () |
template<typename T> | |
attribute< T > * | InitAttribute (goblinRootObject &X, TPoolEnum token, T _value) throw () |
template<typename T> | |
vector< T > * | InitVector (goblinRootObject &X, TPoolEnum token, T _value) throw () |
template<typename T> | |
T * | InitArray (goblinRootObject &X, TPoolEnum token, T _value) throw () |
template<typename T> | |
attribute< T > * | RawAttribute (goblinRootObject &X, TPoolEnum token) throw () |
template<typename T> | |
vector< T > * | RawVector (goblinRootObject &X, TPoolEnum token) throw () |
template<typename T> | |
T * | RawArray (goblinRootObject &X, TPoolEnum token) throw () |
void | ReserveItems (TArrayDim attributeType, TIndex capacity) throw (ERRange) |
void | AppendItems (TArrayDim attributeType, TIndex numItems) throw () |
void | EraseItems (TArrayDim attributeType, TIndex numItems) throw (ERRange) |
void | SwapItems (TArrayDim attributeType, TIndex i1, TIndex i2) throw (ERRange) |
template<typename T> | |
T | GetValue (TPoolEnum token, TIndex i, T _default) const throw () |
template<typename T> | |
T | DefaultValue (TPoolEnum token, T _default) const throw () |
template<typename T> | |
T | MinValue (TPoolEnum token, T _default) const throw () |
template<typename T> | |
T | MaxValue (TPoolEnum token, T _default) const throw () |
template<typename T> | |
TIndex | MinIndex (TPoolEnum token) const throw () |
template<typename T> | |
TIndex | MaxIndex (TPoolEnum token) const throw () |
template<typename T> | |
bool | IsConstant (TPoolEnum token) const throw () |
Protected Member Functions | |
attributeBase * | FindAttribute (TPoolEnum token) const throw () |
Protected Attributes | |
const TPoolTable * | table |
const unsigned short | dim |
list< attributeBase * > | attributes |
list< TPoolEnum > | tokens |
const TAttributeType | poolType |
The objects of this class are containers for attribute objects. The potentially contained attributes are specified by a TPoolTable[] array and a matching enum type.
Attribute pools manage the following:
|
Specifies how many indices are represented by embedded attributes.
|
|
Construct an attribute pool.
|
|
Copy constructor.
|
|
Destruct an attribute pool.
|
|
Add numItems to all attributes of the specified type.
|
|
Return the default attribute value.
|
|
Delete numItems from all attributes of the specified type.
|
|
Copy all attributes into a specified attribute pool. But only those attribute which are not associated with graph nodes, layout nodes or graph arcs. |
|
Lookup for the specified attribute.
|
|
Delete all attributes from this pool.
|
|
Export the array encapsulated into a pool attribute.
|
|
Direct access to an attribute in this pool.
|
|
Return the attribute value for a given index.
|
|
Export the vector encapsulated into a pool attribute.
|
|
Assign an attribute with a given sequence of values.
|
|
Copy an attribute into this attribute pool.
|
|
Obtain a full rank array, initialized with a default value.
|
|
Obtain a full rank attribute, initialized with a default value.
|
|
Obtain a full rank vector, initialized with a default value.
|
|
Check if attribute values coincide for all indices.
|
|
Allocate a new attribute and add it to the pool.
|
|
Return an index at which the maximum attribute value is achieved.
|
|
Return the maximum attribute value.
|
|
Return an index at which the minimum attribute value is achieved.
|
|
Return the minimum attribute value.
|
|
Obtain a full rank array without initialization.
|
|
Obtain a full rank attribute without initialization.
|
|
Obtain a full rank vector without initialization.
|
|
Read pool data as a part of the graph object file representation.
|
|
Read pool data as a part of the graph object file representation.
|
|
Read a string attribute as a part of the graph object file representation.
|
|
Remove an attribute from the pool and deallocate it.
|
|
Set the capacity of all attributes of the specified type.
|
|
|
|
Swap the specified items in all attributes of the specified type.
|
|
Write an attribute to s file.
|
|
Write all pool data to file.
|
|
|
|
|
|
|
|
|
|
|