This class provides the C++ bindings for C cgul_hash_node
objects. The main purpose of this class is to convert the C-style function calls and exception handling in cgul_hash_node
into C++-style function calls and exception handling. This class must not be extended.
Return the next older node. Together with get_younger()
, this method lets you traverse the hash in chronological order. If there is no older node, this method returns NULL
.
The following example shows how to iterate over the entire hash in reverse chronological order. Notice that you have to start with the youngest node when calling get_older()
:
cgul_hash_node_cxx* n = h->get_youngest();
for ( ; n ; n = n->get_older()) {
...
}
- Returns
- older node
References cgul_hash_node__get_older().
Return the next younger node. Together with get_older()
, this method lets you traverse the hash in chronological order. If there is no younger node, this method returns NULL
.
The following example shows how to iterate over the entire hash in chronological order. Notice that you have to start with the oldest node when calling get_younger()
:
cgul_hash_node_cxx* n = h->get_oldest();
for ( ; n ; n = n->get_younger()) {
...
}
- Returns
- younger node
References cgul_hash_node__get_younger().