#include <Interface_EntityCluster.hxx>
Public Member Functions | |
Standard_EXPORT | Interface_EntityCluster () |
Creates an empty, non-chained, EntityCluster . | |
Standard_EXPORT | Interface_EntityCluster (const Handle(Standard_Transient)&ent) |
Creates a non-chained EntityCluster, filled with one Entity . | |
Standard_EXPORT | Interface_EntityCluster (const Handle(Interface_EntityCluster)&ec) |
Creates an empty EntityCluster, chained with another one (that is, put BEFORE this other one in the list) . | |
Standard_EXPORT | Interface_EntityCluster (const Handle(Standard_Transient)&ant, const Handle(Interface_EntityCluster)&ec) |
Creates an EntityCluster, filled with a first Entity, and chained to another EntityCluster (BEFORE it, as above) . | |
Standard_EXPORT void | Append (const Handle(Standard_Transient)&ent) |
Appends an Entity to the Cluster. If it is not full, adds the entity directly inside itself. Else, transmits to its Next and Creates it if it does not yet exist . | |
Standard_EXPORT Standard_Boolean | Remove (const Handle(Standard_Transient)&ent) |
Removes an Entity from the Cluster. If it is not found, calls its Next one to do so. Returns True if it becomes itself empty, False else (thus, a Cluster which becomes empty is deleted from the list) . | |
Standard_EXPORT Standard_Boolean | Remove (const Standard_Integer num) |
Removes an Entity from the Cluster, given its rank. If <num> is greater than NbLocal, calls its Next with (num - NbLocal), Returns True if it becomes itself empty, False else . | |
Standard_EXPORT Standard_Integer | NbEntities () const |
Returns total count of Entities (including Next) . | |
Standard_EXPORT const Handle_Standard_Transient & | Value (const Standard_Integer num) const |
Returns the Entity identified by its rank in the list (including Next) . | |
Standard_EXPORT void | SetValue (const Standard_Integer num, const Handle(Standard_Transient)&ent) |
Changes an Entity given its rank. . | |
Standard_EXPORT void | FillIterator (Interface_EntityIterator &iter) const |
Fills an Iterator with designated Entities (includes Next) . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Member Functions | |
Standard_EXPORT Standard_Boolean | IsLocalFull () const |
Returns True if all the set of entities local to a Cluster is full. Used by EntityList. . | |
Standard_EXPORT Standard_Integer | NbLocal () const |
Returns count of entities in the local set (without Next) Entities can then be read normally by method Value . | |
Standard_EXPORT Standard_Boolean | HasNext () const |
Returns True if a Cluster has a Next . | |
Standard_EXPORT Handle_Interface_EntityCluster | Next () const |
Returns Next Cluster in the chain . | |
Private Attributes | |
Handle_Standard_Transient | theents [4] |
Handle_Interface_EntityCluster | thenext |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|