Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
Loading...
Searching...
No Matches
operations_on_datastructures::reverse_binary_tree::Node Struct Reference

A Node struct that represents a single node in a Binary Tree. More...

Collaboration diagram for operations_on_datastructures::reverse_binary_tree::Node:
[legend]

Public Member Functions

 Node (int64_t _data)
 Creates a new Node with some initial data.
 

Public Attributes

int64_t data
 The value of the Node.
 
Nodeleft
 The Node's left child.
 
Noderight
 The Node's right child.
 

Detailed Description

A Node struct that represents a single node in a Binary Tree.

Constructor & Destructor Documentation

◆ Node()

operations_on_datastructures::reverse_binary_tree::Node::Node ( int64_t _data)
inlineexplicit

Creates a new Node with some initial data.

< Set value of Node data

< Initialize left child to NULL

< Initialize right child to NULL

41 {
42 data = _data; ///< Set value of Node data
43 left = nullptr; ///< Initialize left child to NULL
44 right = nullptr; ///< Initialize right child to NULL
45 }
Node * right
The Node's right child.
Definition reverse_binary_tree.cpp:37
int64_t data
The value of the Node.
Definition reverse_binary_tree.cpp:35

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