cee::vtfx::SetItemGroup Class Reference

A class to store a group of items that map to a given block (only supported block type is currently elements) More...

Public Member Functions

int blockId () const
 Returns the block id. More...
 
void setBlockId (int blockId)
 Sets the block id. More...
 
Block::BlockType blockType () const
 Returns the set block type. More...
 
void setBlockType (Block::BlockType blockType)
 Sets the block type. More...
 
size_t itemCount () const
 Returns number of items in group. More...
 
int itemIdOrIndex (size_t index) const
 Returns the id/index of the item at index. More...
 
void setItems (const std::vector< int > &itemIdOrIndices)
 Sets items in this group from array of ids/indices. More...
 
void addItems (const std::vector< int > &itemIdOrIndices)
 Adds items in this group from array of ids/indices. More...
 
void addItem (int itemIdOrIndex)
 Adds a single item for given id/index. More...
 
- Public Member Functions inherited from cee::RefCountedObject
void addRef () const
 Increments the reference count for this object. More...
 
void release () const
 Decrements the reference count for this object. More...
 
int refCount () const
 Returns the reference count for this object. More...
 
void setRefCountZero () const
 Sets the ref count to zero, but DOES NOT delete the object. More...
 
Inheritance diagram for cee::vtfx::SetItemGroup:
cee::RefCountedObject

Detailed Description

A class to store a group of items that map to a given block (only supported block type is currently elements)

Member Function Documentation

void cee::vtfx::SetItemGroup::addItem ( int  itemIdOrIndex)

Adds a single item for given id/index.

void cee::vtfx::SetItemGroup::addItems ( const std::vector< int > &  itemIdOrIndices)

Adds items in this group from array of ids/indices.

int cee::vtfx::SetItemGroup::blockId ( ) const

Returns the block id.

Block::BlockType cee::vtfx::SetItemGroup::blockType ( ) const

Returns the set block type.

Currently only ELEMENTS are supported

size_t cee::vtfx::SetItemGroup::itemCount ( ) const

Returns number of items in group.

int cee::vtfx::SetItemGroup::itemIdOrIndex ( size_t  index) const

Returns the id/index of the item at index.

void cee::vtfx::SetItemGroup::setBlockId ( int  blockId)

Sets the block id.

void cee::vtfx::SetItemGroup::setBlockType ( Block::BlockType  blockType)

Sets the block type.

Currently only ELEMENTS are supported

void cee::vtfx::SetItemGroup::setItems ( const std::vector< int > &  itemIdOrIndices)

Sets items in this group from array of ids/indices.