FDO API Reference | Feature Data Objects |
#include <NamedCollection.h>
Inherits FdoCollection< OBJ, EXC >< OBJ, EXC >.
Inheritance diagram for FdoNamedCollection< OBJ, EXC >:
Definition at line 46 of file NamedCollection.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 (FdoString *name) const |
Returns true if the collection contains the specified item, false otherwise. | |
virtual bool | Contains (const OBJ *value) const |
Returns true if the collection contains the specified item, false otherwise. | |
virtual OBJ * | FindItem (const wchar_t *name) const |
Finds the item in the collection with the specified name. | |
virtual OBJ * | GetItem (const wchar_t *name) const |
Gets the item in the collection with the specified name. Throws an exception if the item is not found. | |
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 (FdoString *name) const |
Returns the index of the specified item (by name) in the collection or -1 if the item does not exist. | |
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 item, 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 | |
void | CheckDuplicate (OBJ *item, FdoInt32 index) |
int | Compare (FdoString *str1, FdoString *str2) const |
DOXYGEN-IGNORE | |
FdoNamedCollection (bool caseSensitive=true) | |
virtual | ~FdoNamedCollection (void) |
|
Definition at line 376 of file NamedCollection.h. |
|
Definition at line 382 of file NamedCollection.h. |
|
Adds the specified item to the end of the collection. Returns the index of the newly added item.
Reimplemented from FdoCollection< OBJ, EXC >. Reimplemented in FdoPhysicalElementMappingCollection< OBJ >, FdoDataPropertyDefinitionCollection, FdoSchemaCollection< OBJ >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 184 of file NamedCollection.h. Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::Add(), and FdoPhysicalElementMappingCollection< FdoXmlElementMapping >::Add(). |
|
Definition at line 402 of file NamedCollection.h. Referenced by FdoNamedCollection< ElementMap, FdoException >::Add(), FdoNamedCollection< ElementMap, FdoException >::Insert(), and FdoNamedCollection< ElementMap, FdoException >::SetItem(). |
|
Removes all items from the collection.
Reimplemented from FdoCollection< OBJ, EXC >. Reimplemented in FdoPhysicalElementMappingCollection< OBJ >, FdoSchemaCollection< OBJ >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 229 of file NamedCollection.h. Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::_RejectChanges(), FdoSchemaCollection< FdoDataPropertyDefinition >::Clear(), and FdoPhysicalElementMappingCollection< FdoXmlElementMapping >::Clear(). |
|
DOXYGEN-IGNORE
Definition at line 389 of file NamedCollection.h. Referenced by FdoNamedCollection< ElementMap, FdoException >::Contains(), FdoNamedCollection< ElementMap, FdoException >::FindItem(), and FdoNamedCollection< ElementMap, FdoException >::IndexOf(). |
|
Returns true if the collection contains the specified item, false otherwise.
Definition at line 324 of file NamedCollection.h. |
|
Returns true if the collection contains the specified item, false otherwise.
Reimplemented from FdoCollection< OBJ, EXC >. Definition at line 288 of file NamedCollection.h. |
|
Finds the item in the collection with the specified name.
Definition at line 96 of file NamedCollection.h. Referenced by FdoNamedCollection< ElementMap, FdoException >::CheckDuplicate(), FdoNamedCollection< ElementMap, FdoException >::Contains(), and FdoNamedCollection< ElementMap, FdoException >::GetItem(). |
|
Gets the item in the collection with the specified name. Throws an exception if the item is not found.
Definition at line 72 of file NamedCollection.h. |
|
|
Returns the index of the specified item (by name) in the collection or -1 if the item does not exist.
Definition at line 357 of file NamedCollection.h. |
|
Returns the index of the specified item in the collection or -1 if the item does not exist.
Reimplemented from FdoCollection< OBJ, EXC >. Definition at line 343 of file NamedCollection.h. |
|
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 from FdoCollection< OBJ, EXC >. Reimplemented in FdoPhysicalElementMappingCollection< OBJ >, FdoDataPropertyDefinitionCollection, FdoSchemaCollection< OBJ >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 210 of file NamedCollection.h. Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::Insert(), and FdoPhysicalElementMappingCollection< FdoXmlElementMapping >::Insert(). |
|
Removes the specified item from the collection. Throws an invalid argument exception if the item does not exist within the collection.
Reimplemented from FdoCollection< OBJ, EXC >. Reimplemented in FdoPhysicalElementMappingCollection< OBJ >, FdoSchemaCollection< OBJ >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 250 of file NamedCollection.h. Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::Remove(), and FdoPhysicalElementMappingCollection< FdoXmlElementMapping >::Remove(). |
|
Removes the specified item from the collection. Throws an invalid argument exception if the item does not exist within the collection.
Reimplemented from FdoCollection< OBJ, EXC >. Reimplemented in FdoPhysicalElementMappingCollection< OBJ >, FdoPropertyDefinitionCollection, FdoSchemaCollection< OBJ >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 269 of file NamedCollection.h. Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::RemoveAt(), and FdoPhysicalElementMappingCollection< FdoXmlElementMapping >::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 from FdoCollection< OBJ, EXC >. Reimplemented in FdoPhysicalElementMappingCollection< OBJ >, FdoDataPropertyDefinitionCollection, FdoSchemaCollection< OBJ >, FdoPhysicalElementMappingCollection< FdoXmlClassMapping >, FdoPhysicalElementMappingCollection< FdoXmlElementMapping >, FdoSchemaCollection< FdoClassDefinition >, FdoSchemaCollection< FdoFeatureSchema >, FdoSchemaCollection< FdoFeatureClass >, FdoSchemaCollection< FdoPropertyDefinition >, and FdoSchemaCollection< FdoDataPropertyDefinition >. Definition at line 159 of file NamedCollection.h. Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::SetItem(), and FdoPhysicalElementMappingCollection< FdoXmlElementMapping >::SetItem(). |
Comments or suggestions? Send us feedback. |