Version: 1.0
Public Member Functions | Public Attributes | List of all members
BinaryDrag< T >::node Struct Reference

Defines a node of the BinaryDrag. More...

#include <drag.h>

Public Member Functions

 node ()
 
 node (T d)
 
 node (T d, node *l, node *r)
 
bool isleaf () const
 

Public Attributes

data
 
nodeleft = nullptr
 
noderight = nullptr
 

Detailed Description

template<typename T>
struct BinaryDrag< T >::node

Defines a node of the BinaryDrag.

Definition at line 31 of file drag.h.

Constructor & Destructor Documentation

◆ node() [1/3]

template<typename T >
BinaryDrag< T >::node::node ( )
inline

Definition at line 37 of file drag.h.

◆ node() [2/3]

template<typename T >
BinaryDrag< T >::node::node ( d)
inline

Definition at line 38 of file drag.h.

◆ node() [3/3]

template<typename T >
BinaryDrag< T >::node::node ( d,
node l,
node r 
)
inline

Definition at line 39 of file drag.h.

Member Function Documentation

◆ isleaf()

template<typename T >
bool BinaryDrag< T >::node::isleaf ( ) const
inline

Definition at line 42 of file drag.h.

Member Data Documentation

◆ data

template<typename T >
T BinaryDrag< T >::node::data

Definition at line 33 of file drag.h.

◆ left

template<typename T >
node* BinaryDrag< T >::node::left = nullptr

Definition at line 34 of file drag.h.

◆ right

template<typename T >
node * BinaryDrag< T >::node::right = nullptr

Definition at line 34 of file drag.h.


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