Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
Interface_EntityList Class Reference

This class defines a list of Entities (Transient Objects), it can be used as a field of other Transient classes, with these features : More...

#include <Interface_EntityList.hxx>

Public Member Functions

 Interface_EntityList ()
 Creates a List as being empty.
 
void Clear ()
 Clears the List.
 
void Append (const occ::handle< Standard_Transient > &ent)
 Appends an Entity, that is to the END of the list (keeps order, but works slowerly than Add, see below)
 
void Add (const occ::handle< Standard_Transient > &ent)
 Adds an Entity to the list, that is, with NO REGARD about the order (faster than Append if count becomes greater than 10)
 
void Remove (const occ::handle< Standard_Transient > &ent)
 Removes an Entity from the list, if it is there.
 
void Remove (const int num)
 Removes an Entity from the list, given its rank.
 
bool IsEmpty () const
 Returns True if the list is empty.
 
int NbEntities () const
 Returns count of recorded Entities.
 
const occ::handle< Standard_Transient > & Value (const int num) const
 Returns an Item given its number. Beware about the way the list was filled (see above, Add and Append)
 
void SetValue (const int num, const occ::handle< Standard_Transient > &ent)
 Returns an Item given its number. Beware about the way the list was filled (see above, Add and Append)
 
void FillIterator (Interface_EntityIterator &iter) const
 fills an Iterator with the content of the list (normal way to consult a list which has been filled with Add)
 
int NbTypedEntities (const occ::handle< Standard_Type > &atype) const
 Returns count of Entities of a given Type (0 : none)
 
occ::handle< Standard_TransientTypedEntity (const occ::handle< Standard_Type > &atype, const int num=0) const
 Returns the Entity which is of a given type. If num = 0 (D), there must be ONE AND ONLY ONE If num > 0, returns the num-th entity of this type.
 

Detailed Description

This class defines a list of Entities (Transient Objects), it can be used as a field of other Transient classes, with these features :

Works in conjunction with EntityCluster An EntityList gives access to a list of Entity Clusters, which are chained (in one sense : Single List) Remark : a new Item may not be Null, because this is the criterium used for "End of List"

Constructor & Destructor Documentation

◆ Interface_EntityList()

Interface_EntityList::Interface_EntityList ( )

Creates a List as being empty.

Member Function Documentation

◆ Add()

void Interface_EntityList::Add ( const occ::handle< Standard_Transient > & ent)

Adds an Entity to the list, that is, with NO REGARD about the order (faster than Append if count becomes greater than 10)

◆ Append()

void Interface_EntityList::Append ( const occ::handle< Standard_Transient > & ent)

Appends an Entity, that is to the END of the list (keeps order, but works slowerly than Add, see below)

◆ Clear()

void Interface_EntityList::Clear ( )

Clears the List.

◆ FillIterator()

void Interface_EntityList::FillIterator ( Interface_EntityIterator & iter) const

fills an Iterator with the content of the list (normal way to consult a list which has been filled with Add)

◆ IsEmpty()

bool Interface_EntityList::IsEmpty ( ) const

Returns True if the list is empty.

◆ NbEntities()

int Interface_EntityList::NbEntities ( ) const

Returns count of recorded Entities.

◆ NbTypedEntities()

int Interface_EntityList::NbTypedEntities ( const occ::handle< Standard_Type > & atype) const

Returns count of Entities of a given Type (0 : none)

◆ Remove() [1/2]

void Interface_EntityList::Remove ( const int num)

Removes an Entity from the list, given its rank.

◆ Remove() [2/2]

void Interface_EntityList::Remove ( const occ::handle< Standard_Transient > & ent)

Removes an Entity from the list, if it is there.

◆ SetValue()

void Interface_EntityList::SetValue ( const int num,
const occ::handle< Standard_Transient > & ent )

Returns an Item given its number. Beware about the way the list was filled (see above, Add and Append)

◆ TypedEntity()

occ::handle< Standard_Transient > Interface_EntityList::TypedEntity ( const occ::handle< Standard_Type > & atype,
const int num = 0 ) const

Returns the Entity which is of a given type. If num = 0 (D), there must be ONE AND ONLY ONE If num > 0, returns the num-th entity of this type.

◆ Value()

const occ::handle< Standard_Transient > & Interface_EntityList::Value ( const int num) const

Returns an Item given its number. Beware about the way the list was filled (see above, Add and Append)


The documentation for this class was generated from the following file: