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:
- Append
- AppendList
- ApplyDelete
- InsertAt
- RemoveAll
- RemovePosition
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
-
Adds the content of a list at the end of the current list after calling AddRef on each element.
o Append
-
Adds an element at the end of the list after calling AddRef on it.
o InsertAt
-
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[]
-
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[]
-
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