Home Libraries Author Links

NrStmMapValueType Struct Reference
[Abstract Map Type Example]


Detailed Description

Value type structure of an NrStmMap object.

Objects of NrStmMapValueType are stored in NrStmMap objects and can be accessed by pointers to them being achieved by means of NrStmMapIterator objects. The fact that their key componemts are constant ensures that the strict weak ordering of NrStmMap objects cannot be compromised.

Definition at line 139 of file NrStmMapDoc.h.


Data Fields

const int key
 Constant key of a NrStmMapValueType object mapping to val.
int val
 Value of a NrStmMapValueType element mapped to by key.

Field Documentation

const int NrStmMapValueType::key

Constant key of a NrStmMapValueType object mapping to val.

The NrStmMapValueType elements of NrStmMap objects are ordered according to the strict weak ordering on int induced by keyCmp(). The constness of key ensures that this ordering cannot be compromised.

Definition at line 146 of file NrStmMapDoc.h.

int NrStmMapValueType::val

Value of a NrStmMapValueType element mapped to by key.

The mapped values can be changed without impact on the ordering of the NrStmMap object they belong to.

Definition at line 151 of file NrStmMapDoc.h.


© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).