cee::vtfx::SetBlock

class SetBlock : public Block

A block for storing sets of elements or nodes.

Currently only ELEMENTS are supported

Public Types

enum ItemType

Item types for SetBlock.

Values:

enumerator ELEMENT

Element item type.

enumerator UNKNOWN_ITEM_TYPE

Unknown item type.

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.

Str setName() const

Returns the name of the set.

void setSetName(const Str &name)

Sets the name to name.

ItemType itemType() const

Returns the item type of this set.

void setItemType(ItemType itemType)

Sets the item type.

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.