TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
Loading...
Searching...
No Matches
operations_on_datastructures::circular_linked_list::Node Struct Reference

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

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

Public Member Functions

 Node (int64_t _data)
 Creates a new Node with some initial data.
 
 Node (int64_t _data, Node *_next)
 Creates a new Node with initial data and a successor.
 

Public Attributes

int64_t data
 The value of the Node.
 
Nodenext
 The Node's successor.
 

Detailed Description

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

Definition at line 32 of file circular_linked_list.cpp.

Constructor & Destructor Documentation

◆ Node() [1/2]

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

Creates a new Node with some initial data.

Parameters
_dataValue of Node

< Set value of Node data

< Initialize successor

Definition at line 39 of file circular_linked_list.cpp.

39 {
40 data = _data;
41 next = nullptr;
42 }

◆ Node() [2/2]

operations_on_datastructures::circular_linked_list::Node::Node ( int64_t _data,
Node * _next )
inlineexplicit

Creates a new Node with initial data and a successor.

Parameters
_dataValue of Node
_nextPointer to the next Node

< Set value of Node data

< Initialize successor

Definition at line 48 of file circular_linked_list.cpp.

48 {
49 data = _data;
50 next = _next;
51 }

Member Data Documentation

◆ data

int64_t operations_on_datastructures::circular_linked_list::Node::data

The value of the Node.

Definition at line 33 of file circular_linked_list.cpp.

◆ next

Node* operations_on_datastructures::circular_linked_list::Node::next

The Node's successor.

Definition at line 34 of file circular_linked_list.cpp.


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