ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | Public Attributes | List of all members
meta::caching::splay_cache< Key, Value >::node Struct Reference

One node in the splay tree contains pointers to children and the templated (key, value) pair. More...

Public Member Functions

 node (const Key &new_key, const Value &new_value)
 Constructs a new leaf node with the given key and value pair. More...
 

Public Attributes

node * left
 pointer to the left child
 
node * right
 pointer to the right child
 
Key key
 the key
 
Value value
 the value
 

Detailed Description

template<class Key, class Value>
struct meta::caching::splay_cache< Key, Value >::node

One node in the splay tree contains pointers to children and the templated (key, value) pair.

Constructor & Destructor Documentation

template<class Key , class Value >
meta::caching::splay_cache< Key, Value >::node::node ( const Key &  new_key,
const Value &  new_value 
)
inline

Constructs a new leaf node with the given key and value pair.

Parameters
new_keyThe desired key
new_valueThe desired value

The documentation for this struct was generated from the following file: