Used to identify an element or a node within a DataGeometry in order to query result values for it using a ResultsQuery. More...
Public Member Functions | |
ResultsQueryItem () | |
Constructs a query item object. This is used to instantiate an item for the first time. More... | |
ResultsQueryItem (size_t partIndex, size_t index) | |
Constructs a query item object and assigns the index of the DataPart which it belongs to as well as its own index within this part. More... | |
bool | operator== (const ResultsQueryItem &other) const |
Returns true if this item is equal to the passed item. More... | |
size_t | partIndex () const |
Returns the part index of this item. More... | |
size_t | index () const |
Returns the item index (node or element) More... | |
Used to identify an element or a node within a DataGeometry in order to query result values for it using a ResultsQuery.
The item type needs to be consistent with the mapping of the queried result: nodes for node-mapped results, and elements for element, element-node- and element-surface- mapped results.
Items can be instantiated with the default constructor and then reused thanks to the second constructor to perform different queries.
Example:
cee::ug::ResultsQueryItem::ResultsQueryItem | ( | ) |
Constructs a query item object. This is used to instantiate an item for the first time.
cee::ug::ResultsQueryItem::ResultsQueryItem | ( | size_t | partIndex, |
size_t | index | ||
) |
Constructs a query item object and assigns the index of the DataPart which it belongs to as well as its own index within this part.
size_t cee::ug::ResultsQueryItem::index | ( | ) | const |
Returns the item index (node or element)
bool cee::ug::ResultsQueryItem::operator== | ( | const ResultsQueryItem & | other | ) | const |
Returns true if this item is equal to the passed item.
size_t cee::ug::ResultsQueryItem::partIndex | ( | ) | const |
Returns the part index of this item.