All Frameworks Class Hierarchy This Framework Previous Next Indexes
AnalysisMeshingModel Class CATMSHListOfMeshPart
CATMSHListOfMeshPart
Usage: you must use this class as is. You should never derive it.
public class CATMSHListOfMeshPart
Object managing a list of pointer on Mesh Parts.
- See also:
- CATIMSHMeshPart
Constructor and Destructor Index
- o
CATMSHListOfMeshPart(int)
- Constructs an empty list of Mesh Parts.
- o
~CATMSHListOfMeshPart()
-
Method Index
- o
Append(CATIMSHMeshPart*,CATBoolean)
- Adds a new Mesh Part at the end of the list.
- o
Locate(CATIMSHMeshPart*)
- Locates a Mesh Part in the list.
- o
RemoveAll()
- Empty the list.
- o
RemovePosition(int)
- Removes an item in the list.
- o
Size()
- Returns the number of Mesh Parts in list.
- o
operator ==(CATMSHListOfMeshPart&)
- Equality operator.
- o
operator [](int)
- Access a Mesh Part in the list.
Constructor and Destructor
o CATMSHListOfMeshPart
public CATMSHListOfMeshPart( | int | iInitialSize | = 0 ) |
-
Constructs an empty list of Mesh Parts.
- Parameters:
-
- iInitialSize
- Array integer to specify an initial memory allocation size for the list.
o ~CATMSHListOfMeshPart
public virtual ~CATMSHListOfMeshPart( | ) |
-
Methods
o Append
-
Adds a new Mesh Part at the end of the list.
- Parameters:
-
- iSearchIfDuplicate
- If TRUE, iMeshPart is added to the list only if it does not already exist.
- Returns:
- An HRESULT.
Legal values:
- S_OK
- The Mesh Part iMeshPart added in the list.
- S_FALSE
- The Mesh Part iMeshPart already exist in the list.
- E_FAIL
- The Mesh Part iMeshPart is NULL.
- E_OUTOFMEMORY
- Memory allocation problem.
o Locate
-
Locates a Mesh Part in the list.
- Parameters:
-
- iMeshPart
- Mesh Part to be located in the list.
- Returns:
- The index in the list corresponding iMeshPart Mesh Part, otherwise 0.
o RemoveAll
-
Empty the list.
o RemovePosition
public void RemovePosition( | int | iIndex) |
-
Removes an item in the list.
- Parameters:
-
- iIndex
- Index in the list to be removed. This value should be
between 1 and the size of the list, otherwise nothing is done.
o Size
public inline int Size( | )const |
-
Returns the number of Mesh Parts in list.
o operator ==
-
Equality operator.
- Parameters:
-
- iList
- List of Mesh Parts to compare with
- Returns:
- boolean
Legal values: 0: False
the condition is not fullfilled, or Other: True
if the condition is fullfilled.
o operator []
-
Access a Mesh Part in the list.
- Parameters:
-
- iIndex
- Index in the list of the Mesh Part to be returned. This value should be
between 1 and the size of the list, otherwise a NULL value is returned.
- Returns:
- A pointer on the Mesh Part.
Lifecycle rules deviation: the method does not AddRef the returned value..
This object is included in the file: CATMSHListOfMeshPart.h
If needed, your Imakefile.mk should include the module: CATAmtModel