Represents a tree node.
More...
◆ TreeNode() [1/3]
catapult::tree::TreeNode::TreeNode |
( |
| ) |
|
Creates an empty tree node.
◆ TreeNode() [2/3]
catapult::tree::TreeNode::TreeNode |
( |
const LeafTreeNode & |
node | ) |
|
|
explicit |
Creates a tree node from a leaf node.
◆ TreeNode() [3/3]
Creates a tree node from a branch node.
◆ asBranchNode()
const BranchTreeNode & catapult::tree::TreeNode::asBranchNode |
( |
| ) |
const |
Gets a branch node interface to this node.
◆ asLeafNode()
const LeafTreeNode & catapult::tree::TreeNode::asLeafNode |
( |
| ) |
const |
Gets a leaf node interface to this node.
◆ copy()
TreeNode catapult::tree::TreeNode::copy |
( |
| ) |
const |
Creates a copy of this node.
◆ empty()
bool catapult::tree::TreeNode::empty |
( |
| ) |
const |
Returns true
if this node represents an empty node.
◆ hash()
const Hash256 & catapult::tree::TreeNode::hash |
( |
| ) |
const |
Gets the hash representation of this node.
◆ isBranch()
bool catapult::tree::TreeNode::isBranch |
( |
| ) |
const |
Returns true
if this node represents a branch node.
◆ isLeaf()
bool catapult::tree::TreeNode::isLeaf |
( |
| ) |
const |
Returns true
if this node represents a leaf node.
◆ path()
const TreeNodePath & catapult::tree::TreeNode::path |
( |
| ) |
const |
◆ setPath()
void catapult::tree::TreeNode::setPath |
( |
const TreeNodePath & |
path | ) |
|
◆ m_emptyHash
Hash256 catapult::tree::TreeNode::m_emptyHash |
|
private |
◆ m_emptyPath
◆ m_pBranchNode
std::unique_ptr<BranchTreeNode> catapult::tree::TreeNode::m_pBranchNode |
|
private |
◆ m_pLeafNode
std::unique_ptr<LeafTreeNode> catapult::tree::TreeNode::m_pLeafNode |
|
private |
The documentation for this class was generated from the following files: