Home Libraries Author Links

Nr Struct Reference
[Abstract Map Type Example]


Detailed Description

Element type of the abstract map type NrStmMap.

Objects of Nr can be inserted into a NrStmMap object as well as they can be looked for or counted in a NrStmMap object.

See also:
NrStmMapValueType.
Examples:

dsettst.c.

Definition at line 111 of file NrStmMapDoc.h.


Data Fields

int key
 Key of a NrStmMap element mapping to val.
int val
 Value of a NrStmMap element mapped to by key.

Field Documentation

int Nr::key

Key of a NrStmMap element mapping to val.

The elements of NrStmMap objects are ordered according to the strict weak ordering on int induced by keyCmp().

Examples:
dsettst.c.

Definition at line 116 of file NrStmMapDoc.h.

int Nr::val

Value of a NrStmMap element mapped to by key.

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

Examples:
dsettst.c.

Definition at line 121 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).