Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Euclidian_Node< Node_Info > Class Template Reference

#include <tpl_euclidian_graph.H>

Inheritance diagram for Aleph::Euclidian_Node< Node_Info >:
[legend]
Collaboration diagram for Aleph::Euclidian_Node< Node_Info >:
[legend]

Public Types

typedef Node_Info Item_Type
 
typedef Euclidian_Node Node
 
typedef Node_Info Node_Type
 
- Public Types inherited from Aleph::Graph_Node< Node_Info >
using Base = GTNodeCommon< Node_Info >
 
using Node_Info = Node_Info
 
- Public Types inherited from GTNodeCommon< NodeInfo >
using Item_Type = NodeInfo
 
using Node = GTNodeCommon
 Common alias for set types.
 
using Node_Type = NodeInfo
 The node.
 

Public Member Functions

 Euclidian_Node ()
 
 Euclidian_Node (const Node_Info &info)
 
 Euclidian_Node (const Point &_position)
 
 Euclidian_Node (const Node_Info &info, const Point &_position)
 
 Euclidian_Node (Euclidian_Node *node)
 
Pointget_position ()
 
const Pointget_position () const
 
- Public Member Functions inherited from Aleph::Graph_Node< Node_Info >
 Graph_Node (const Node_Info &info) noexcept
 The type of data stored in the node.
 
 Graph_Node (Node_Info &&info=Node_Info()) noexcept
 Move or rvalue constructor.
 
 Graph_Node (const Graph_Node &node) noexcept
 
 Graph_Node (Graph_Node *node)
 Copy constructor from a node pointer.
 
Graph_Nodeoperator= (const Graph_Node &node)
 
- Public Member Functions inherited from GTNodeCommon< NodeInfo >
 GTNodeCommon () noexcept=default
 another alias for set type
 
 GTNodeCommon (const NodeInfo &info)
 Copy constructor from info value.
 
 GTNodeCommon (NodeInfo &&info)
 Move constructor from info value.
 
 GTNodeCommon (const GTNodeCommon &other)
 Copy constructor.
 
 GTNodeCommon (GTNodeCommon &&other) noexcept
 Move constructor.
 
GTNodeCommonoperator= (const GTNodeCommon &other)
 Copy assignment operator.
 
GTNodeCommonoperator= (GTNodeCommon &&other) noexcept
 Move assignment operator.
 
NodeInfoget_info () noexcept
 Return a modifiable reference to the data contained in the node.
 
const NodeInfoget_info () const noexcept
 Return a constant reference to the data contained in the node.
 
unsigned int state () const noexcept
 Return the state's value.
 
void set_state (unsigned int s) noexcept
 Set the state to value s
 

Private Attributes

Point position
 

Additional Inherited Members

- Public Attributes inherited from Aleph::Graph_Node< Node_Info >
Dlink arc_list
 
- Public Attributes inherited from GTNodeCommon< NodeInfo >
Graph_Attr attrs
 Attributes of node.
 
NodeInfo node_info
 
size_t num_arcs = 0
 data associated to the node. Access it with get_info()
 

Detailed Description

template<typename Node_Info>
class Aleph::Euclidian_Node< Node_Info >

Definition at line 95 of file tpl_euclidian_graph.H.

Member Typedef Documentation

◆ Item_Type

◆ Node

◆ Node_Type

Definition at line 102 of file tpl_euclidian_graph.H.

Constructor & Destructor Documentation

◆ Euclidian_Node() [1/5]

Definition at line 108 of file tpl_euclidian_graph.H.

◆ Euclidian_Node() [2/5]

Definition at line 114 of file tpl_euclidian_graph.H.

◆ Euclidian_Node() [3/5]

Definition at line 120 of file tpl_euclidian_graph.H.

◆ Euclidian_Node() [4/5]

template<typename Node_Info >
Aleph::Euclidian_Node< Node_Info >::Euclidian_Node ( const Node_Info info,
const Point _position 
)
inline

Definition at line 126 of file tpl_euclidian_graph.H.

◆ Euclidian_Node() [5/5]

Member Function Documentation

◆ get_position() [1/2]

template<typename Node_Info >
Point & Aleph::Euclidian_Node< Node_Info >::get_position ( )
inline

Definition at line 138 of file tpl_euclidian_graph.H.

References Aleph::Euclidian_Node< Node_Info >::position.

Referenced by TEST_F(), TEST_F(), and TEST_F().

◆ get_position() [2/2]

template<typename Node_Info >
const Point & Aleph::Euclidian_Node< Node_Info >::get_position ( ) const
inline

Member Data Documentation

◆ position


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