FDO API Reference Feature Data Objects

FdoReadOnlyCollection< OBJ, BASE, EXC > Class Template Reference

#include <ReadOnlyCollection.h>

Inherits FdoIDisposable.

Inheritance diagram for FdoReadOnlyCollection< OBJ, BASE, EXC >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class OBJ, class BASE, class EXC>
class FdoReadOnlyCollection< OBJ, BASE, EXC >

FdoReadOnlyCollection is an abstract template class used to define a collection that can not be modified after it is constructed, i.e. provides read-only access.

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 ()

The documentation for this class was generated from the following file:
Comments or suggestions? Send us feedback.