idol
A C++ Framework for Optimization
Loading...
Searching...
No Matches
idol::Node< NodeInfoT > Class Template Reference
Collaboration diagram for idol::Node< NodeInfoT >:
Collaboration graph

Public Member Functions

 Node (NodeInfoT *t_ptr_to_info, unsigned int t_id, const Node< NodeInfoT > &t_parent)
 
 Node (const Node &)=default
 
 Node (Node &&) noexcept=default
 
Nodeoperator= (const Node &)=default
 
Nodeoperator= (Node &&) noexcept=default
 
unsigned int id () const
 
unsigned int level () const
 
const NodeInfoT & info () const
 
NodeInfoT & info ()
 
const Node< NodeInfoT > & parent () const
 

Static Public Member Functions

static Node< NodeInfoT > create_root_node ()
 
static Node< NodeInfoT > create_detached_node (NodeInfoT *t_ptr_to_info)
 

Detailed Description

template<class NodeInfoT>
class idol::Node< NodeInfoT >

Definition at line 16 of file Node.h.

Constructor & Destructor Documentation

◆ Node()

template<class NodeInfoT >
idol::Node< NodeInfoT >::Node ( NodeInfoT *  t_ptr_to_info,
unsigned int  t_id,
const Node< NodeInfoT > &  t_parent 
)
inline

Definition at line 28 of file Node.h.

Member Function Documentation

◆ create_detached_node()

template<class NodeInfoT >
static Node< NodeInfoT > idol::Node< NodeInfoT >::create_detached_node ( NodeInfoT *  t_ptr_to_info)
inlinestatic

Definition at line 43 of file Node.h.

◆ create_root_node()

template<class NodeInfoT >
static Node< NodeInfoT > idol::Node< NodeInfoT >::create_root_node ( )
inlinestatic

Definition at line 41 of file Node.h.

◆ id()

template<class NodeInfoT >
unsigned int idol::Node< NodeInfoT >::id ( ) const
inline

Definition at line 45 of file Node.h.

◆ info() [1/2]

template<class NodeInfoT >
NodeInfoT & idol::Node< NodeInfoT >::info ( )
inline

Definition at line 51 of file Node.h.

◆ info() [2/2]

template<class NodeInfoT >
const NodeInfoT & idol::Node< NodeInfoT >::info ( ) const
inline

Definition at line 49 of file Node.h.

◆ level()

template<class NodeInfoT >
unsigned int idol::Node< NodeInfoT >::level ( ) const
inline

Definition at line 47 of file Node.h.

◆ parent()

template<class NodeInfoT >
const Node< NodeInfoT > & idol::Node< NodeInfoT >::parent ( ) const
inline

Definition at line 53 of file Node.h.