12#ifndef BELFEM_CL_GRAPH_NODE_HPP
13#define BELFEM_CL_GRAPH_NODE_HPP
113 flag(
const uint8_t aIndex = 0 );
118 unflag(
const uint8_t aIndex = 0 );
161 "Vertex Index %d out of bounds, which must be less than %d",
175 "Vertex Index %d out of bounds, which must be less than %d",
275 BELFEM_ASSERT( aIndex < 8,
"Flag index %u out of bounds (must be < 8)",
276 (
unsigned int ) aIndex );
277 mFlags |= ( 1 << aIndex );
285 BELFEM_ASSERT( aIndex < 8,
"Flag index %u out of bounds (must be < 8)",
286 (
unsigned int ) aIndex );
287 mFlags &= ~( 1 << aIndex );
295 BELFEM_ASSERT( aIndex < 8,
"Flag index %u out of bounds (must be < 8)",
296 (
unsigned int ) aIndex );
297 return mFlags & ( 1 << aIndex );
#define BELFEM_ASSERT(aCheck,...)
Definition assert.hpp:244
id_t id() const
Definition cl_Graph_Vertex.hpp:218
virtual index_t index() const
Definition cl_Graph_Vertex.hpp:234
index_t level() const
Definition cl_Graph_Vertex.hpp:258
void insert_vertex(Vertex *aVertex)
Definition cl_Graph_Vertex.hpp:312
virtual Vertex * vertex(const uint aIndex)
Definition cl_Graph_Vertex.hpp:158
void set_id(const id_t aID)
Definition cl_Graph_Vertex.hpp:210
void set_level(const index_t aLevel)
Definition cl_Graph_Vertex.hpp:265
virtual auto vertex(const uint aIndex) const -> decltype(this)
Definition cl_Graph_Vertex.hpp:171
Vertex ** mVertices
Definition cl_Graph_Vertex.hpp:58
virtual proc_t owner() const
Definition cl_Graph_Vertex.hpp:250
void increment_vertex_counter()
Definition cl_Graph_Vertex.hpp:303
virtual void flag(const uint8_t aIndex=0)
Definition cl_Graph_Vertex.hpp:273
virtual void set_index(const index_t aIndex)
Definition cl_Graph_Vertex.hpp:226
virtual void reset_element_container()
Definition cl_Graph_Vertex.cpp:90
virtual bool is_flagged(const uint8_t aIndex=0) const
Definition cl_Graph_Vertex.hpp:293
uint32_t mVertexCounter
Definition cl_Graph_Vertex.hpp:55
virtual void set_owner(const proc_t aOwner)
Definition cl_Graph_Vertex.hpp:242
virtual void init_element_container()
Definition cl_Graph_Vertex.cpp:82
virtual void unflag(const uint8_t aIndex=0)
Definition cl_Graph_Vertex.hpp:283
void reset_vertex_container()
Definition cl_Graph_Vertex.cpp:69
void sort_vertices()
sorts the vertices according to their index
Definition cl_Graph_Vertex.cpp:101
void init_vertex_container()
Definition cl_Graph_Vertex.cpp:32
void reverse_vertices()
Definition cl_Graph_Vertex.cpp:122
uint number_of_vertices() const
Definition cl_Graph_Vertex.hpp:321
Definition cl_Graph_Vertex.cpp:21
USER GUIDES:
Definition cl_Capacitor.cpp:16
Cell< graph::Vertex * > Graph
Definition cl_Graph_Vertex.hpp:329
constexpr id_t gNoID
Definition typedefs.hpp:58
unsigned int uint
Definition typedefs.hpp:30
unsigned int id_t
Definition typedefs.hpp:41
int proc_t
Definition commtypes.hpp:29
constexpr index_t gNoIndex
Definition typedefs.hpp:57
constexpr proc_t gNoOwner
Definition typedefs.hpp:59
uint32_t index_t
Definition typedefs.hpp:52