SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_model_Group_h
11 #define smtk_model_Group_h
14 #include "smtk/model/EntityRefArrangementOps.h"
22 typedef std::vector<Group> Groups;
38 Group& addEntities(
const T& container);
40 bool removeEntity(
const EntityRef& entity);
44 virtual bool meetsMembershipConstraints(
const EntityRef& prospectiveMember);
46 bool meetsMembershipConstraints(
49 bool mustBeHomogenous);
51 virtual void setMembershipMask(
BitFlags mask);
56 T Group::members()
const
67 for (
typename T::const_iterator it = container.begin(); it != container.end(); ++it)
77 #endif // smtk_model_Group_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
unsigned int BitFlags
The integer type used to hold bit values describing an entity's type.
Definition: EntityTypeBits.h:25
Group & addEntity(const EntityRef &entity)
Add an entity to this group.
Definition: Group.cxx:46
@ SUPERSET_OF
This entity is a superset of the related entity.
Definition: ArrangementKind.h:58
A entityref subclass that provides methods specific to entity use records.
Definition: Group.h:27
Group & addEntities(const T &container)
Add all the entities in container (an STL set, vector, or list) to this group.
Definition: Group.h:65
#define SMTK_ENTITYREF_CLASS(thisclass, superclass, typecheck)
A macro to implement mandatory EntityRef-subclass constructors.
Definition: EntityRef.h:43
static void appendAllRelations(const EntityRef &c, ArrangementKind k, T &result)
Append all the relations of kind k to result.
Definition: EntityRefArrangementOps.h:62
A lightweight entityref pointing to a model entity's resource.
Definition: EntityRef.h:112