MgClassDefinitionCollection Class Reference
[MgClassDefinitionCollection]
Inherits MgCollection.
Detailed Description
ClassDefinitionCollection represents a collection of class definitions in a feature schema.
- Remarks:
- All class definitions are objects of MgClassDefinition class
- Note:
- Collections are not thread safe and ordered in the sequence of add operation.
Public Member Functions | |
void | Add (MgClassDefinition *value) |
Adds the specified item to the end of the collection. | |
void | Clear () |
Removes all items from the collection. | |
bool | Contains (const MgClassDefinition *value) const |
Returns true if the collection contains the specified item, false otherwise. | |
INT32 | GetCount () const |
Gets the number of items in the collection. | |
MgClassDefinition * | GetItem (INT32 index) const |
Gets the item in the collection at the specified index. | |
INT32 | IndexOf (const MgClassDefinition *value) const |
Returns the index of the specified item in the collection or -1 if the item does not exist. | |
void | Insert (INT32 index, MgClassDefinition *value) |
Inserts the specified item at the specified index within the collection. Items following the insertion point are moved down to accommodate the new item. | |
MgClassDefinitionCollection () | |
Constructs a MgClassDefinitionCollection. The collection is initially empty. | |
bool | Remove (MgClassDefinition *value) |
Removes the specified item from the collection. | |
void | RemoveAt (INT32 index) |
Removes the specified item from the collection. | |
void | SetItem (INT32 index, MgClassDefinition *value) |
Sets the item in the collection at the specified index to the specified value. |