gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::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
 
Valuevalue
 
Nodeparent
 
Nodekids [2]
 

Detailed Description

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

Definition at line 60 of file trie.hh.

Constructor & Destructor Documentation

◆ Node()

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

Definition at line 76 of file trie.hh.

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

Member Function Documentation

◆ clear()

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

◆ dump()

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

◆ matches()

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

Member Data Documentation

◆ key

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

◆ kids

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

◆ mask

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

◆ parent

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

Definition at line 73 of file trie.hh.

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

◆ value

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

Definition at line 71 of file trie.hh.

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


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

Generated on Tue Sep 21 2021 12:28:19 for gem5 by doxygen 1.8.17