GEL
2
GEL is a library for Geometry and Linear Algebra
|
Public Member Functions | |
AttributeVector (size_t _size=0, ITEM item=ITEM()) | |
Construct from optional size and item (size should be identical to number of entities in associated container. | |
const ITEM & | get (ITEMID id) const |
Add an item. | |
ITEM & | get (ITEMID id) |
reference to item given by ID | |
const ITEM & | operator[] (ITEMID id) const |
const reference to item given by ID | |
ITEM & | operator[] (ITEMID id) |
reference to item given by ID | |
void | resize (size_t _size, ITEM item=ITEM()) |
resize the vector (may be necessary if associated container size grows) | |
size_t | size () const |
number of attribute items in vector | |
void | clear () |
clear the vector | |
void | cleanup (const std::map< ITEMID, ITEMID > &map) |
clenup unused items from the vector, given by remap from associated container |
const ITEM & HMesh::AttributeVector< ITEM, ITEMID >::get | ( | ITEMID | id | ) | const [inline] |
Add an item.
const reference to item given by ID