CATFmtModelInterfaces CATFmtListOfMeshPart

Usage: you must use this class as is. You should never derive it.


public class CATFmtListOfMeshPart

Object managing a list of pointer on Mesh Parts.

See also:


Constructor and Destructor Index


o CATFmtListOfMeshPart(int)
Constructs an empty list of Mesh Parts.
o ~CATFmtListOfMeshPart()

Method Index


o Append(CATIFmtMeshPart*,CATBoolean)
Adds a new Mesh Part at the end of the list.
o Locate(CATIFmtMeshPart*)
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 ==(CATFmtListOfMeshPart&)
Equality operator.
o operator [](int)
Access a Mesh Part in the list.

Constructor and Destructor


o CATFmtListOfMeshPart
public CATFmtListOfMeshPart( iInitialSize= 0 )
Constructs an empty list of Mesh Parts.
Parameters:
iInitialSize
Array integer to specify an initial memory allocation size for the list.
o ~CATFmtListOfMeshPart
public virtual ~CATFmtListOfMeshPart()

Methods


o Append
public Append( iMeshPart,
iSearchIfDuplicate= FALSE )
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
public Locate( iMeshPart)
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
public RemoveAll()
Empty the list.
o RemovePosition
public RemovePosition( 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 Size()
Returns the number of Mesh Parts in list.
o operator ==
public operator ==( const iList)
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 []
public operator []( iIndex)
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: CATFmtListOfMeshPart.h
If needed, your Imakefile.mk should include the module: CATFmtModelInterfaces

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.