FDO API Reference | Feature Data Objects |
#include <ReadOnlyCollection.h>
Inherits FdoIDisposable.
Inheritance diagram for FdoReadOnlyCollection< OBJ, BASE, EXC >:
Definition at line 30 of file ReadOnlyCollection.h.
Public Member Functions | |
virtual FDO_API bool | Contains (const OBJ *value) |
Returns true if the collection contains the specified item, false otherwise. | |
virtual FDO_API FdoInt32 | GetCount () |
Gets the number of items in the collection. | |
virtual FDO_API OBJ * | GetItem (FdoString *name) |
Gets the item in the collection with the specified name. Throws an invalid argument exception if an item with the specified name does not exist in the collection. | |
virtual FDO_API OBJ * | GetItem (FdoInt32 index) |
Gets the item in the collection at the specified index. Throws an invalid argument exception if the index is out of range. | |
virtual FDO_API FdoInt32 | IndexOf (const OBJ *value) |
Returns the index of the specified item in the collection or -1 if the item does not exist. | |
Protected Member Functions | |
FDO_API | FdoReadOnlyCollection () |
void | SetBaseCollection (BASE *base) |
virtual FDO_API | ~FdoReadOnlyCollection () |
|
Definition at line 33 of file ReadOnlyCollection.h. |
|
Definition at line 37 of file ReadOnlyCollection.h. |
|
Returns true if the collection contains the specified item, false otherwise.
Definition at line 114 of file ReadOnlyCollection.h. |
|
Gets the number of items in the collection.
Reimplemented in FdoReadOnlyDataPropertyDefinitionCollection, and FdoReadOnlyPropertyDefinitionCollection. Definition at line 55 of file ReadOnlyCollection.h. Referenced by FdoReadOnlyCollection< FdoArgumentDefinition, FdoArgumentDefinitionCollection, FdoConnectionException >::GetItem(). |
|
Gets the item in the collection with the specified name. Throws an invalid argument exception if an item with the specified name does not exist in the collection.
Reimplemented in FdoReadOnlyDataPropertyDefinitionCollection, and FdoReadOnlyPropertyDefinitionCollection. Definition at line 89 of file ReadOnlyCollection.h. |
|
Gets the item in the collection at the specified index. Throws an invalid argument exception if the index is out of range.
Reimplemented in FdoReadOnlyDataPropertyDefinitionCollection, and FdoReadOnlyPropertyDefinitionCollection. Definition at line 72 of file ReadOnlyCollection.h. Referenced by FdoReadOnlyCollection< FdoArgumentDefinition, FdoArgumentDefinitionCollection, FdoConnectionException >::GetItem(). |
|
Returns the index of the specified item in the collection or -1 if the item does not exist.
Definition at line 131 of file ReadOnlyCollection.h. |
|
Definition at line 42 of file ReadOnlyCollection.h. |
Comments or suggestions? Send us feedback. |