All Frameworks  Class Hierarchy  This Framework  Indexes

VPMDesktopServices VPMIListOfAttributes

VPMIListOfAttributes
 

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


public class VPMIListOfAttributes

Collection class for VPMIListOfAttributes.
Only the following methods of collection classes are available:

Refer to the articles dealing with collections in the encyclopedia. Class VPMIListOfAttributes.
This class extends the generic CATLISTP collection class declaration to include memory management with AddRef and Release on its members. This class is not to be derived.


Constructor and Destructor Index


o VPMIListOfAttributes(int)
Constructor with the initial memory allocation for iInitAlloc elements for the collection.
o ~VPMIListOfAttributes()
Destructor.

Method Index


o Append(VPMIListOfAttributes&)
Adds the content of a list at the end of the current list after calling AddRef on each element.
o Append(VPMIQAttribute*)
Adds an element at the end of the list after calling AddRef on it.
o InsertAt(int,VPMIQAttribute*)
Inserts an element at position iPos in the list after calling AddRef on it.
o RemoveAll(CATCollec::MemoryHandling)
Cleans the list by calling Release on each element and removing them from the list.
o RemovePosition(int)
Removes the element at position iPos after calling Release on it.
o operator[](int)
Accesses the element at index iPos in the list, and returns it after calling AddRef on it, so the caller must call Release after having used the element.
o operator[](int)
Accesses the element at index iPos in the list, and returns it as is without calling AddRef on the returned element.

Constructor and Destructor


o VPMIListOfAttributes
public VPMIListOfAttributes(int iInitAlloc= 0 )
Constructor with the initial memory allocation for iInitAlloc elements for the collection.
o ~VPMIListOfAttributes
public ~VPMIListOfAttributes()
Destructor.

Methods


o Append
public void Append( const VPMIListOfAttributes& iConcat)
Adds the content of a list at the end of the current list after calling AddRef on each element.
o Append
public void Append(VPMIQAttribute* iAdd)
Adds an element at the end of the list after calling AddRef on it.
o InsertAt
public void InsertAt(int iPos,
VPMIQAttribute* iAdd)
Inserts an element at position iPos in the list after calling AddRef on it.
o RemoveAll
public void RemoveAll(CATCollec::MemoryHandling iMH= CATCollec::ReleaseAllocation )
Cleans the list by calling Release on each element and removing them from the list.
o RemovePosition
public void RemovePosition(int iPos)
Removes the element at position iPos after calling Release on it.
o operator[]
public VPMIQAttribute * operator[](int iPos)const
Accesses the element at index iPos in the list, and returns it after calling AddRef on it, so the caller must call Release after having used the element.
o operator[]
public VPMIQAttribute * & operator[](int iPos)
Accesses the element at index iPos in the list, and returns it as is without calling AddRef on the returned element.

This object is included in the file: VPMIListOfAttributes.h

Copyright © 2003, Dassault Systèmes. All rights reserved.