Rogue Wave Software logo banner

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

RWTValSlistDictionary<K,V>

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

Synopsis

#include <rw/tvsldict.h> 
RWTValSlistDictionary<K,V> slistDict;

Description

This class maintains a value-based collection of values, implemented as an intrusive singly-linked list of key and value pairs. Class K and V are the types of the keys and values respectively.

Persistence

Isomorphic

Related Classes

This class is used in the implementation of RWTValHashDictionary.

Public Constructors

RWTValSlistDictionary<K,V>();
RWTValSlist<K,V>(const RWTValSlistDictionary<K,V>&);

Public Member Operators

RWTValSlistDictionary<K,V>&
operator=(const RWTValSlistDictionary<K,V>& lst); 
V&
operator[](K key); 

Public Member Functions

void
applyToKeyAndValue(void (*applyFun)(const K&, V& ,void* d), void*); 
clear();
RWBoolean
contains(const K& a) const; 
size_t
entries() const; 
RWBoolean
find(const K& a, K& retKey) const; 
RWBoolean
findKeyAndValue(const K& a, K& retKey, V& retval) const; 
RWBoolean
findValue(const K& a, K& retVal) const; 
void
insertKeyAndValue(const K& k, const V& v); 
RWBoolean
isEmpty() const; 
RWBoolean
remove(const K& k); 
RWBoolean
remove(const K& k V& retVal);