SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_model_EntityIterator_h
11 #define smtk_model_EntityIterator_h
35 void traverse(C ebegin, C eend);
81 for (C rit = ebegin; rit != eend; ++rit)
85 m_visited.insert(parent);
88 m_visited.insert(sref);
90 else if (rit->isModel())
94 m_visited.insert(model);
96 m_visited.insert(sref);
107 m_visited.insert(ebegin, eend);
114 #endif // smtk_model_EntityIterator_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
bool isValid() const
Return whether the entityref is pointing to valid resource that contains the UUID of the entity.
Definition: EntityRef.cxx:459
@ ITERATE_CHILDREN
Visit the specified entities and their children.
Definition: EntityIterator.h:26
@ ITERATE_MODELS
Visit all entities with an owning model that also owns any of the specified entities....
Definition: EntityIterator.h:27
void traverse(C ebegin, C eend)
Iterate over the given entities and only those entities.
Definition: EntityIterator.h:66
A entityref subclass that provides methods specific to models.
Definition: Model.h:30
Model owningModel() const
Return the Model which owns this entity.
Definition: EntityRef.cxx:1650
IteratorStyle
Indicate what records should be visited.
Definition: EntityIterator.h:23
A entityref subclass that provides methods specific to entity use records.
Definition: SessionRef.h:28
@ ITERATE_BARE
Visit only the specified entities and no others.
Definition: EntityIterator.h:25
Definition: EntityIterator.h:31
SessionRef session() const
Return a reference to the session that owns this model.
Definition: Model.cxx:68
std::set< smtk::model::EntityRef > EntityRefs
Definition: PublicPointerDefs.h:162
A lightweight entityref pointing to a model entity's resource.
Definition: EntityRef.h:112