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 | |
FdoNamedCollection (bool caseSensitive=true) | |
virtual | ~FdoNamedCollection (void) |
Comments or suggestions? Send us feedback. |