gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
Trie< Key, Value >::Node Struct Reference

#include <trie.hh>

Public Member Functions

bool matches (Key test)
 
 Node (Key _key, Key _mask, Value *_val)
 
void clear ()
 
void dump (std::ostream &os, int level)
 

Public Attributes

Key key
 
Key mask
 
Value * value
 
Nodeparent
 
Nodekids [2]
 

Detailed Description

template<class Key, class Value>
struct Trie< Key, Value >::Node

Definition at line 57 of file trie.hh.

Constructor & Destructor Documentation

◆ Node()

template<class Key , class Value >
Trie< Key, Value >::Node::Node ( Key  _key,
Key  _mask,
Value *  _val 
)
inline

Definition at line 73 of file trie.hh.

References Trie< Key, Value >::Node::kids.

Member Function Documentation

◆ clear()

template<class Key , class Value >
void Trie< Key, Value >::Node::clear ( )
inline

◆ dump()

template<class Key , class Value >
void Trie< Key, Value >::Node::dump ( std::ostream &  os,
int  level 
)
inline

◆ matches()

template<class Key , class Value >
bool Trie< Key, Value >::Node::matches ( Key  test)
inline

Definition at line 63 of file trie.hh.

References Trie< Key, Value >::Node::key, and Trie< Key, Value >::Node::mask.

Member Data Documentation

◆ key

template<class Key , class Value >
Key Trie< Key, Value >::Node::key

Definition at line 59 of file trie.hh.

Referenced by Trie< Key, Value >::Node::dump(), and Trie< Key, Value >::Node::matches().

◆ kids

template<class Key , class Value >
Node* Trie< Key, Value >::Node::kids[2]

◆ mask

template<class Key , class Value >
Key Trie< Key, Value >::Node::mask

Definition at line 60 of file trie.hh.

Referenced by Trie< Key, Value >::Node::dump(), and Trie< Key, Value >::Node::matches().

◆ parent

template<class Key , class Value >
Node* Trie< Key, Value >::Node::parent

Definition at line 70 of file trie.hh.

Referenced by Trie< Key, Value >::Node::dump().

◆ value

template<class Key , class Value >
Value* Trie< Key, Value >::Node::value

Definition at line 68 of file trie.hh.

Referenced by Trie< Key, Value >::Node::dump().


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

Generated on Wed Sep 30 2020 14:02:33 for gem5 by doxygen 1.8.17