OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
This class implements key/value associations - the key and its associated value. More...
#include <pair.h>
Public Member Functions | |
Pair (int k, double v) | |
Constructor - creates the new Pair with given key k and value v. More... | |
~Pair () | |
Destructor. More... | |
void | append (Pair *p) |
Appends a given pair to itself (sets the pointer to next pair to given Pair). More... | |
int | giveKey () |
Returns the receiver key. More... | |
Pair * | giveNext () |
Returns pointer to the next pair. More... | |
double & | giveValue () |
Returns associated value. More... | |
void | printYourself () |
Prints receiver to screen. More... | |
Private Attributes | |
int | key |
Key. More... | |
double | value |
Associate value. More... | |
Pair * | next |
Pointer to the next Pair. More... | |
This class implements key/value associations - the key and its associated value.
An instance of Pair is used as an entry in a dictionary. Pair has three components - its key, its value and pointer to the next Pair in the dictionary.
Tasks:
|
inline |
|
inline |
Appends a given pair to itself (sets the pointer to next pair to given Pair).
Definition at line 68 of file pair.h.
Referenced by oofem::Dictionary::add().
|
inline |
Returns the receiver key.
Definition at line 70 of file pair.h.
Referenced by oofem::Dictionary::at(), oofem::Dictionary::formatAsString(), oofem::Dictionary::includes(), oofem::operator<<(), and oofem::Dictionary::saveContext().
|
inline |
Returns pointer to the next pair.
Definition at line 72 of file pair.h.
Referenced by oofem::Dictionary::at(), oofem::Dictionary::clear(), oofem::Dictionary::formatAsString(), oofem::Dictionary::giveSize(), oofem::Dictionary::includes(), oofem::operator<<(), oofem::Dictionary::printYourself(), and oofem::Dictionary::saveContext().
|
inline |
Returns associated value.
Definition at line 74 of file pair.h.
Referenced by oofem::Dictionary::at(), oofem::Dictionary::formatAsString(), oofem::operator<<(), and oofem::Dictionary::saveContext().
|
inline |
Prints receiver to screen.
Definition at line 76 of file pair.h.
Referenced by oofem::Dictionary::printYourself().