singletonIndex Class Template Reference
[Index sets]

Index set representing a single index in an unlimited range. More...

#include <indexSet.h>

Inheritance diagram for singletonIndex:

indexSet managedObject goblinRootObject

Public Member Functions

 singletonIndex (TItem _i, TItem _n, goblinController &_context=goblinDefaultContext) throw ()
 ~singletonIndex () throw ()
unsigned long Size () const throw ()
bool IsMember (TItem i) const throw (ERRange)
TItem First () const throw ()
TItem Successor (const TItem i) const throw (ERRange)

Detailed Description

template<class TItem>
class singletonIndex< TItem >

Index set representing a single index in an unlimited range.


Constructor & Destructor Documentation

singletonIndex TItem  _i,
TItem  _n,
goblinController _context = goblinDefaultContext
throw ()
 

~singletonIndex  )  throw ()
 


Member Function Documentation

TItem First  )  const throw () [virtual]
 

Query the smallest index in an index set.

Returns:
The smallest index contained by this set

Reimplemented from indexSet.

bool IsMember TItem  i  )  const throw (ERRange) [virtual]
 

Test for indet set membership.

Parameters:
i An index to test for indet set membership
Return values:
true The indexed element is contained by this set

Implements indexSet.

unsigned long Size  )  const throw () [virtual]
 

Implements indexSet.

TItem Successor const TItem  i  )  const throw (ERRange) [virtual]
 

Enumeration of the indices contained in a set.

Returns:
The least upper bound index contained by this set

Reimplemented from indexSet.