FDO API Reference | Feature Data Objects |
#include <Collection.h>
Inherits FdoIDisposable.
Inherited by FdoNamedCollection< OBJ, EXC >, FdoStack< OBJ, EXC > [private]
, and FdoStack< StackElement, FdoXmlException > [private]
.
Inheritance diagram for FdoCollection< OBJ, EXC >:
Definition at line 29 of file Collection.h.
Public Member Functions | |
virtual FdoInt32 | Add (OBJ *value) |
Adds the specified item to the end of the collection. Returns the index of the newly added item. | |
virtual void | Clear () |
Removes all items from the collection. | |
virtual bool | Contains (const OBJ *value) const |
Returns true if the collection contains the specified item, false otherwise. | |
virtual FdoInt32 | GetCount () const |
Gets the number of items in the collection. | |
virtual OBJ * | GetItem (FdoInt32 index) const |
Gets the item in the collection at the specified index. Throws an invalid argument exception if the index is out of range. | |
virtual FdoInt32 | IndexOf (const OBJ *value) const |
Returns the index of the specified item in the collection or -1 if the item does not exist. | |
virtual void | Insert (FdoInt32 index, OBJ *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. Throws an invalid argument exception if the specified index is out of range. | |
virtual void | Remove (const OBJ *value) |
Removes the specified item from the collection. Throws an invalid argument exception if the item does not exist within the collection. | |
virtual void | RemoveAt (FdoInt32 index) |
Removes the specified item from the collection. Throws an invalid argument exception if the item does not exist within the collection. | |
virtual void | SetItem (FdoInt32 index, OBJ *value) |
Sets the item in the collection at the specified index to the specified value. Throws an invalid argument exception if the index is out of range. | |
Protected Member Functions | |
FdoCollection () | |
virtual | ~FdoCollection () |
Static Protected Attributes | |
const FdoInt32 | INIT_CAPACITY = 10 |
|
Definition at line 34 of file Collection.h. |
|
Definition at line 41 of file Collection.h. |
|
|
Removes all items from the collection.
Reimplemented in FdoNamedCollection< OBJ, EXC >, FdoStack< OBJ, EXC >, FdoIdentifierCollection, FdoPhysicalElementMappingCollection< OBJ >, FdoSchemaCollection< OBJ >, FdoNamedCollection< FdoFunctionDefinition, FdoConnectionException >, FdoNamedCollection< FdoDataPropertyDefinition, FdoSchemaException >, FdoNamedCollection< PrefixMapping, FdoXmlException >, FdoNamedCollection< ClassRef, FdoException >, FdoNamedCollection< FdoClassDefinition, FdoSchemaException >, FdoNamedCollection< UniqueConstraintRef, FdoException >, FdoNamedCollection< FdoXmlClassMapping, FdoCommandException >, FdoNamedCollection< FdoXmlAttribute, FdoXmlException >, FdoNamedCollection< FdoPropertyDefinition, FdoSchemaException >, FdoNamedCollection< FdoXmlElementMapping, FdoCommandException >, FdoNamedCollection< OBJ, FdoSchemaException >, FdoNamedCollection< FdoFeatureSchema, FdoSchemaException >, FdoNamedCollection< OBJ, FdoCommandException >, FdoNamedCollection< StringsRef, FdoException >, FdoNamedCollection< FdoFeatureClass, FdoSchemaException >, FdoNamedCollection< FdoDictionaryElement, FdoException >, FdoNamedCollection< ElementMap, FdoException >, FdoStack< StackElement, FdoXmlException >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 161 of file Collection.h. Referenced by FdoStack< StackElement, FdoXmlException >::Clear(), FdoNamedCollection< ElementMap, FdoException >::Clear(), and FdoIdentifierCollection::Clear(). |
|
Returns true if the collection contains the specified item, false otherwise.
Reimplemented in FdoNamedCollection< OBJ, EXC >, FdoNamedCollection< FdoFunctionDefinition, FdoConnectionException >, FdoNamedCollection< FdoDataPropertyDefinition, FdoSchemaException >, FdoNamedCollection< PrefixMapping, FdoXmlException >, FdoNamedCollection< ClassRef, FdoException >, FdoNamedCollection< FdoClassDefinition, FdoSchemaException >, FdoNamedCollection< UniqueConstraintRef, FdoException >, FdoNamedCollection< FdoXmlClassMapping, FdoCommandException >, FdoNamedCollection< FdoXmlAttribute, FdoXmlException >, FdoNamedCollection< FdoPropertyDefinition, FdoSchemaException >, FdoNamedCollection< FdoXmlElementMapping, FdoCommandException >, FdoNamedCollection< OBJ, FdoSchemaException >, FdoNamedCollection< FdoFeatureSchema, FdoSchemaException >, FdoNamedCollection< OBJ, FdoCommandException >, FdoNamedCollection< StringsRef, FdoException >, FdoNamedCollection< FdoFeatureClass, FdoSchemaException >, FdoNamedCollection< FdoDictionaryElement, FdoException >, and FdoNamedCollection< ElementMap, FdoException >. Definition at line 240 of file Collection.h. |
|
Gets the number of items in the collection.
Definition at line 58 of file Collection.h. Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::_StartChanges(), FdoNamedCollection< ElementMap, FdoException >::Contains(), FdoIdentifierCollection::Contains(), FdoNamedCollection< ElementMap, FdoException >::FindItem(), FdoIdentifierCollection::IndexOf(), FdoStack< StackElement, FdoXmlException >::Peek(), and FdoStack< StackElement, FdoXmlException >::Pop(). |
|
Gets the item in the collection at the specified index. Throws an invalid argument exception if the index is out of range.
Reimplemented in FdoNamedCollection< OBJ, EXC >, FdoNamedCollection< FdoFunctionDefinition, FdoConnectionException >, FdoNamedCollection< FdoDataPropertyDefinition, FdoSchemaException >, FdoNamedCollection< PrefixMapping, FdoXmlException >, FdoNamedCollection< ClassRef, FdoException >, FdoNamedCollection< FdoClassDefinition, FdoSchemaException >, FdoNamedCollection< UniqueConstraintRef, FdoException >, FdoNamedCollection< FdoXmlClassMapping, FdoCommandException >, FdoNamedCollection< FdoXmlAttribute, FdoXmlException >, FdoNamedCollection< FdoPropertyDefinition, FdoSchemaException >, FdoNamedCollection< FdoXmlElementMapping, FdoCommandException >, FdoNamedCollection< OBJ, FdoSchemaException >, FdoNamedCollection< FdoFeatureSchema, FdoSchemaException >, FdoNamedCollection< OBJ, FdoCommandException >, FdoNamedCollection< StringsRef, FdoException >, FdoNamedCollection< FdoFeatureClass, FdoSchemaException >, FdoNamedCollection< FdoDictionaryElement, FdoException >, and FdoNamedCollection< ElementMap, FdoException >. Definition at line 72 of file Collection.h. Referenced by FdoNamedCollection< ElementMap, FdoException >::GetItem(), FdoIdentifierCollection::GetItem(), and FdoStack< StackElement, FdoXmlException >::Peek(). |
|
Returns the index of the specified item in the collection or -1 if the item does not exist.
Reimplemented in FdoNamedCollection< OBJ, EXC >, FdoNamedCollection< FdoFunctionDefinition, FdoConnectionException >, FdoNamedCollection< FdoDataPropertyDefinition, FdoSchemaException >, FdoNamedCollection< PrefixMapping, FdoXmlException >, FdoNamedCollection< ClassRef, FdoException >, FdoNamedCollection< FdoClassDefinition, FdoSchemaException >, FdoNamedCollection< UniqueConstraintRef, FdoException >, FdoNamedCollection< FdoXmlClassMapping, FdoCommandException >, FdoNamedCollection< FdoXmlAttribute, FdoXmlException >, FdoNamedCollection< FdoPropertyDefinition, FdoSchemaException >, FdoNamedCollection< FdoXmlElementMapping, FdoCommandException >, FdoNamedCollection< OBJ, FdoSchemaException >, FdoNamedCollection< FdoFeatureSchema, FdoSchemaException >, FdoNamedCollection< OBJ, FdoCommandException >, FdoNamedCollection< StringsRef, FdoException >, FdoNamedCollection< FdoFeatureClass, FdoSchemaException >, FdoNamedCollection< FdoDictionaryElement, FdoException >, and FdoNamedCollection< ElementMap, FdoException >. Definition at line 263 of file Collection.h. Referenced by FdoNamedCollection< ElementMap, FdoException >::IndexOf(), and FdoIdentifierCollection::IndexOf(). |
|
Inserts the specified item at the specified index within the collection. Items following the insertion point are moved down to accommodate the new item. Throws an invalid argument exception if the specified index is out of range.
Reimplemented in FdoNamedCollection< OBJ, EXC >, FdoIdentifierCollection, FdoPhysicalElementMappingCollection< OBJ >, FdoDataPropertyDefinitionCollection, FdoSchemaCollection< OBJ >, FdoNamedCollection< FdoFunctionDefinition, FdoConnectionException >, FdoNamedCollection< FdoDataPropertyDefinition, FdoSchemaException >, FdoNamedCollection< PrefixMapping, FdoXmlException >, FdoNamedCollection< ClassRef, FdoException >, FdoNamedCollection< FdoClassDefinition, FdoSchemaException >, FdoNamedCollection< UniqueConstraintRef, FdoException >, FdoNamedCollection< FdoXmlClassMapping, FdoCommandException >, FdoNamedCollection< FdoXmlAttribute, FdoXmlException >, FdoNamedCollection< FdoPropertyDefinition, FdoSchemaException >, FdoNamedCollection< FdoXmlElementMapping, FdoCommandException >, FdoNamedCollection< OBJ, FdoSchemaException >, FdoNamedCollection< FdoFeatureSchema, FdoSchemaException >, FdoNamedCollection< OBJ, FdoCommandException >, FdoNamedCollection< StringsRef, FdoException >, FdoNamedCollection< FdoFeatureClass, FdoSchemaException >, FdoNamedCollection< FdoDictionaryElement, FdoException >, FdoNamedCollection< ElementMap, FdoException >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 138 of file Collection.h. Referenced by FdoNamedCollection< ElementMap, FdoException >::Insert(), and FdoIdentifierCollection::Insert(). |
|
Removes the specified item from the collection. Throws an invalid argument exception if the item does not exist within the collection.
Reimplemented in FdoNamedCollection< OBJ, EXC >, FdoIdentifierCollection, FdoPhysicalElementMappingCollection< OBJ >, FdoSchemaCollection< OBJ >, FdoNamedCollection< FdoFunctionDefinition, FdoConnectionException >, FdoNamedCollection< FdoDataPropertyDefinition, FdoSchemaException >, FdoNamedCollection< PrefixMapping, FdoXmlException >, FdoNamedCollection< ClassRef, FdoException >, FdoNamedCollection< FdoClassDefinition, FdoSchemaException >, FdoNamedCollection< UniqueConstraintRef, FdoException >, FdoNamedCollection< FdoXmlClassMapping, FdoCommandException >, FdoNamedCollection< FdoXmlAttribute, FdoXmlException >, FdoNamedCollection< FdoPropertyDefinition, FdoSchemaException >, FdoNamedCollection< FdoXmlElementMapping, FdoCommandException >, FdoNamedCollection< OBJ, FdoSchemaException >, FdoNamedCollection< FdoFeatureSchema, FdoSchemaException >, FdoNamedCollection< OBJ, FdoCommandException >, FdoNamedCollection< StringsRef, FdoException >, FdoNamedCollection< FdoFeatureClass, FdoSchemaException >, FdoNamedCollection< FdoDictionaryElement, FdoException >, FdoNamedCollection< ElementMap, FdoException >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 182 of file Collection.h. Referenced by FdoNamedCollection< ElementMap, FdoException >::Remove(), and FdoIdentifierCollection::Remove(). |
|
Removes the specified item from the collection. Throws an invalid argument exception if the item does not exist within the collection.
Reimplemented in FdoNamedCollection< OBJ, EXC >, FdoIdentifierCollection, FdoPhysicalElementMappingCollection< OBJ >, FdoPropertyDefinitionCollection, FdoSchemaCollection< OBJ >, FdoNamedCollection< FdoFunctionDefinition, FdoConnectionException >, FdoNamedCollection< FdoDataPropertyDefinition, FdoSchemaException >, FdoNamedCollection< PrefixMapping, FdoXmlException >, FdoNamedCollection< ClassRef, FdoException >, FdoNamedCollection< FdoClassDefinition, FdoSchemaException >, FdoNamedCollection< UniqueConstraintRef, FdoException >, FdoNamedCollection< FdoXmlClassMapping, FdoCommandException >, FdoNamedCollection< FdoXmlAttribute, FdoXmlException >, FdoNamedCollection< FdoPropertyDefinition, FdoSchemaException >, FdoNamedCollection< FdoXmlElementMapping, FdoCommandException >, FdoNamedCollection< OBJ, FdoSchemaException >, FdoNamedCollection< FdoFeatureSchema, FdoSchemaException >, FdoNamedCollection< OBJ, FdoCommandException >, FdoNamedCollection< StringsRef, FdoException >, FdoNamedCollection< FdoFeatureClass, FdoSchemaException >, FdoNamedCollection< FdoDictionaryElement, FdoException >, FdoNamedCollection< ElementMap, FdoException >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 214 of file Collection.h. Referenced by FdoStack< StackElement, FdoXmlException >::Pop(), FdoNamedCollection< ElementMap, FdoException >::RemoveAt(), and FdoIdentifierCollection::RemoveAt(). |
|
Sets the item in the collection at the specified index to the specified value. Throws an invalid argument exception if the index is out of range.
Reimplemented in FdoNamedCollection< OBJ, EXC >, FdoIdentifierCollection, FdoPhysicalElementMappingCollection< OBJ >, FdoDataPropertyDefinitionCollection, FdoSchemaCollection< OBJ >, FdoNamedCollection< FdoFunctionDefinition, FdoConnectionException >, FdoNamedCollection< FdoDataPropertyDefinition, FdoSchemaException >, FdoNamedCollection< PrefixMapping, FdoXmlException >, FdoNamedCollection< ClassRef, FdoException >, FdoNamedCollection< FdoClassDefinition, FdoSchemaException >, FdoNamedCollection< UniqueConstraintRef, FdoException >, FdoNamedCollection< FdoXmlClassMapping, FdoCommandException >, FdoNamedCollection< FdoXmlAttribute, FdoXmlException >, FdoNamedCollection< FdoPropertyDefinition, FdoSchemaException >, FdoNamedCollection< FdoXmlElementMapping, FdoCommandException >, FdoNamedCollection< OBJ, FdoSchemaException >, FdoNamedCollection< FdoFeatureSchema, FdoSchemaException >, FdoNamedCollection< OBJ, FdoCommandException >, FdoNamedCollection< StringsRef, FdoException >, FdoNamedCollection< FdoFeatureClass, FdoSchemaException >, FdoNamedCollection< FdoDictionaryElement, FdoException >, FdoNamedCollection< ElementMap, FdoException >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 96 of file Collection.h. Referenced by FdoNamedCollection< ElementMap, FdoException >::SetItem(), and FdoIdentifierCollection::SetItem(). |
|
Definition at line 32 of file Collection.h. |
Comments or suggestions? Send us feedback. |