CatapultServer  v0.5.0.1 (Elephant)
catapult::tree::LeafTreeNode Class Reference

Represents a leaf tree node. More...

Collaboration diagram for catapult::tree::LeafTreeNode:

Public Member Functions

 LeafTreeNode (const TreeNodePath &path, const Hash256 &value)
 Creates a leaf node with path and value. More...
 
const TreeNodePathpath () const
 Gets the node path. More...
 
const Hash256value () const
 Gets the node value. More...
 
const Hash256hash () const
 Gets the hash representation of this node. More...
 

Private Attributes

TreeNodePath m_path
 
Hash256 m_value
 
Hash256 m_hash
 

Detailed Description

Represents a leaf tree node.

Constructor & Destructor Documentation

◆ LeafTreeNode()

catapult::tree::LeafTreeNode::LeafTreeNode ( const TreeNodePath path,
const Hash256 value 
)

Creates a leaf node with path and value.

Member Function Documentation

◆ hash()

const Hash256 & catapult::tree::LeafTreeNode::hash ( ) const

Gets the hash representation of this node.

Here is the caller graph for this function:

◆ path()

const TreeNodePath & catapult::tree::LeafTreeNode::path ( ) const

Gets the node path.

Here is the caller graph for this function:

◆ value()

const Hash256 & catapult::tree::LeafTreeNode::value ( ) const

Gets the node value.

Here is the caller graph for this function:

Member Data Documentation

◆ m_hash

Hash256 catapult::tree::LeafTreeNode::m_hash
private

◆ m_path

TreeNodePath catapult::tree::LeafTreeNode::m_path
private

◆ m_value

Hash256 catapult::tree::LeafTreeNode::m_value
private

The documentation for this class was generated from the following files: