Rogue Wave Software logo banner

Click on the banner to return to the Class Reference home page.

RWTPtrSlistDictionary<KP,VP>

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <rw/tpsldict.h> 
RWTPtrSlistDictionary<KP,VP> slistDict;

Description

This class maintains a pointer-based collection of values, implemented as an intrusive singly-linked list of key and value pairs. Class KP is the type pointed to by the key part of the pairs, and is used for lookup. Class VP is the type pointed to by the value part of the pairs.

Persistence

Isomorphic

Related Classes

This class is used in the implementation of RWTPtrHashDictionary.

Public Constructors

RWTPtrSlistDictionary<KP,VP>();
RWTPtrSlist<KP,VP>(const RWTPtrSlistDictionary<KP,VP>&);

Public Member Operators

RWTPtrSlistDictionary<KP,VP>&
operator=(const RWTPtrSlistDictionary<KP,VP>& lst); 
VP*&
operator[](KP *key); 

Public Member Functions

void
applyToKeyAndValue(void (*appFn)(KP*, VP*&, void*), void* d); 
clear();
void
clearAndDestroy();
RWBoolean
contains(const KP* a) const; 
size_t
entries() const; 
KP*
find(const KP* a) const; 
KP*
findKeyAndValue(const KP* a, VP*& retval) const; 
VP*
findValue(const KP* a) const; 
void
insertKeyAndValue(KP* k, VP* v); 
RWBoolean
isEmpty() const; 
KP*
remove(const KP* k); 
KP*
removeKeyAndValue(const KP* k VP*& retVal);