| CatapultServer
    v0.5.0.1 (Elephant)
    | 
Builder for creating a merkle hash. More...
| Public Member Functions | |
| MerkleHashBuilder (size_t capacity=0) | |
| Creates a new merkle hash builder with the specified initial capacity.  More... | |
| void | update (const Hash256 &hash) | 
| Adds hash to the merkle hash.  More... | |
| void | final (Hash256 &hash) | 
| Finalizes the merkle hash into hash.  More... | |
| void | final (std::vector< Hash256 > &tree) | 
| Finalizes the complete merkle tree into tree.  More... | |
| Static Public Member Functions | |
| static size_t | TreeSize (size_t leafCount) | 
| Calculates the number of nodes in a merkle tree with leafCount leaves.  More... | |
| Private Attributes | |
| std::vector< Hash256 > | m_hashes | 
Builder for creating a merkle hash.
| 
 | explicit | 
Creates a new merkle hash builder with the specified initial capacity.
| void catapult::crypto::MerkleHashBuilder::final | ( | Hash256 & | hash | ) | 
Finalizes the merkle hash into hash.

| void catapult::crypto::MerkleHashBuilder::final | ( | std::vector< Hash256 > & | tree | ) | 
Finalizes the complete merkle tree into tree.

| 
 | static | 
Calculates the number of nodes in a merkle tree with leafCount leaves.

| void catapult::crypto::MerkleHashBuilder::update | ( | const Hash256 & | hash | ) | 
Adds hash to the merkle hash.

| 
 | private |