Go to the previous, next section.
#include <nihcl/Assoc.h>
Class
Assoc
is derived from class
LookupKey
, and provides a pointer of type
Object*
to the
value object
of an association. Class
Assoc
implements the
value()
virtual functions, declared in class
LookupKey
, to access and change the value object pointer.
Instances of class
Assoc
are used by classes
Dictionary
,
IdentDict
, and
KeySortCltn
.
Assoc(Object&
newKey
=*nil, Object&
newValue
=*nil)
Assoc
between the key object
newKey
and the value object
newValue.
virtual Object* value()
virtual const Object* value() const
Assoc
.
virtual Object* value(Object&
newValue)
Assoc
to
newValue, and returns the
previous
value object pointer.
virtual void deepenShallowCopy()
deepCopy()
to the key and value object pointers of this
Assoc
, replacing them by pointers to their copies.
virtual void storer(OIOofd&
fd) const
virtual void storer(OIOout&
strm) const
LookupKey
to
fd
or
strm
by applying
storeOn()
to the key and value objects.
Go to the previous, next section.