cee::vtfx::SetBlock
- 
class SetBlock : public Block
 A block for storing sets of elements or nodes.
Currently only ELEMENTS are supported
Public Types
Public Functions
- 
SetBlock(int blockId, bool itemsByIds)
 Constructs an empty set block.
blockId must be >= 0 and unique for all node blocks within a database. itemsByIds specifies if set items will be supplied by their or not.
- 
virtual ~SetBlock()
 
- 
int setId() const
 Returns the set id.
- 
void setSetId(int setId)
 Sets the set id.
- 
size_t totalItemCount() const
 Returns the total number of items found in all groups in this set.
- 
int itemGroupCount() const
 Returns the number of groups in this set.
- 
SetItemGroup *itemGroup(size_t index)
 Returns the groups at index.
- 
const SetItemGroup *itemGroup(size_t index) const
 Returns the groups at index.
- 
void addItemGroup(SetItemGroup *itemGroup)
 Adds an item group to this set.
- 
void addItem(int itemIdOrIndex, int itemGroupId)
 Adds an item.
- 
void addItems(const int *itemIndicesOrIds, size_t itemCount, int itemGroupId)
 Adds items from given array itemIndicesOrIds.
- 
SetBlock(int blockId, bool itemsByIds)