TheAlgorithms/C++ 1.0.0
All the 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.

Definition at line 34 of file reverse_binary_tree.cpp.

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

Definition at line 41 of file reverse_binary_tree.cpp.

41 {
42 data = _data;
43 left = nullptr;
44 right = nullptr;
45 }

Member Data Documentation

◆ data

int64_t operations_on_datastructures::reverse_binary_tree::Node::data

The value of the Node.

Definition at line 35 of file reverse_binary_tree.cpp.

◆ left

Node* operations_on_datastructures::reverse_binary_tree::Node::left

The Node's left child.

Definition at line 36 of file reverse_binary_tree.cpp.

◆ right

Node* operations_on_datastructures::reverse_binary_tree::Node::right

The Node's right child.

Definition at line 37 of file reverse_binary_tree.cpp.


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