Element ID List

interface ICwAPI3DElementIDList

Public Functions

virtual void destroy() = 0

Destroys itself.

virtual uint32_t count() = 0
Returns:

number of elements in list

virtual elementID at(uint32_t aIndex) = 0
Parameters:

aIndex – element index

Returns:

element at index

virtual void append(elementID aElementID) = 0

Appends an element to the list.

Parameters:

aElementID – element to append

virtual void appendList(ICwAPI3DElementIDList *aElementIDs) = 0

Appends a list to the list.

Parameters:

aElementIDs – list to append

virtual bool empty() = 0

Queries whether the container is empty.

Returns:

true if there are no elements in the container, false otherwise

virtual elementID *front() = 0

Gets a pointer to the first element. Note that the pointer is invalid if the container is destroyed.

Returns:

pointer to first element, returns nullptr if the container is empty.

virtual elementID *back() = 0

Gets a pointer to the last element. Note that the pointer is invalid if the container is destroyed.

Returns:

pointer to the last element, returns nullptr if the container is empty.