An API for querying the IDs allotted to a component in an IdSpace.
More...
#include <AssignedIds.h>
|
| smtkTypeMacroBase (smtk::markup::AssignedIds) |
|
template<typename... Args> |
| AssignedIds (const std::shared_ptr< IdSpace > &space, IdNature nature, IdType begin, IdType end, Component *owningNode, Args &&...) |
|
IdRange | range () const |
| Returns the range of IDs in the allotment.
|
|
IdType | size () const |
| Return the number of allotted IDs. More...
|
|
bool | empty () const |
| Return true when no IDs are assigned.
|
|
std::shared_ptr< smtk::markup::IdSpace > | space () const |
|
bool | setNature (const IdNature &nature) |
|
const IdNature & | nature () const |
|
IdNature & | nature () |
|
Component * | node () const |
|
template<typename NodeType > |
NodeType * | nodeAs () const |
|
|
std::weak_ptr< smtk::markup::IdSpace > | m_space |
| The parent space from which our assigned IDs come.
|
|
IdRange | m_range |
| The overall range of the assignment (used to accelerate intersection tests).
|
|
IdNature | m_nature |
| The nature of the assignment (ownership or reference; exclusive or non-exclusive).
|
|
Component * | m_node |
| The graph node which owns the assignment (if any).
|
|
An API for querying the IDs allotted to a component in an IdSpace.
◆ Forwardness
The access-level of iteration (constant or mutable), used as a template parameter.
The direction of iteration (used as a template parameter for subclass iterators).
Enumerator |
---|
Forward | The iterator traverses IDs from lowest to highest.
|
Reverse | The iterator traverses IDs from highest to lowest.
|
◆ size()
IdType smtk::markup::AssignedIds::size |
( |
| ) |
const |
|
inline |
Return the number of allotted IDs.
This simply returns range()[1] - range()[0], since the range is a half-open interval.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/smtk/checkouts/latest/smtk/markup/AssignedIds.h
- /home/docs/checkouts/readthedocs.org/user_builds/smtk/checkouts/latest/smtk/markup/AssignedIds.cxx