12#ifndef BELFEM_CL_GRAPH_NODE_HPP
13#define BELFEM_CL_GRAPH_NODE_HPP
119 flag(
const uint8_t aIndex = 0 );
124 unflag(
const uint8_t aIndex = 0 );
167 "Vertex Index %d out of bounds, which must be less than %d",
181 "Vertex Index %d out of bounds, which must be less than %d",
281 BELFEM_ASSERT( aIndex < 8,
"Flag index %u out of bounds (must be < 8)",
282 (
unsigned int ) aIndex );
283 mFlags |= ( 1 << aIndex );
291 BELFEM_ASSERT( aIndex < 8,
"Flag index %u out of bounds (must be < 8)",
292 (
unsigned int ) aIndex );
293 mFlags &= ~( 1 << aIndex );
301 BELFEM_ASSERT( aIndex < 8,
"Flag index %u out of bounds (must be < 8)",
302 (
unsigned int ) aIndex );
303 return mFlags & ( 1 << aIndex );
#define BELFEM_ASSERT(aCheck,...)
Definition assert.hpp:244
Vertex & operator=(Vertex &&)=delete
id_t id() const
Definition cl_Graph_Vertex.hpp:224
virtual index_t index() const
Definition cl_Graph_Vertex.hpp:240
index_t level() const
Definition cl_Graph_Vertex.hpp:264
void insert_vertex(Vertex *aVertex)
Definition cl_Graph_Vertex.hpp:320
virtual Vertex * vertex(const uint aIndex)
Definition cl_Graph_Vertex.hpp:164
Vertex(const Vertex &)=delete
void set_id(const id_t aID)
Definition cl_Graph_Vertex.hpp:216
void set_level(const index_t aLevel)
Definition cl_Graph_Vertex.hpp:271
virtual auto vertex(const uint aIndex) const -> decltype(this)
Definition cl_Graph_Vertex.hpp:177
Vertex ** mVertices
Definition cl_Graph_Vertex.hpp:58
virtual proc_t owner() const
Definition cl_Graph_Vertex.hpp:256
void increment_vertex_counter()
Definition cl_Graph_Vertex.hpp:311
Vertex & operator=(const Vertex &)=delete
virtual void flag(const uint8_t aIndex=0)
Definition cl_Graph_Vertex.hpp:279
virtual void set_index(const index_t aIndex)
Definition cl_Graph_Vertex.hpp:232
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:299
uint32_t mVertexCounter
Definition cl_Graph_Vertex.hpp:55
virtual void set_owner(const proc_t aOwner)
Definition cl_Graph_Vertex.hpp:248
virtual void init_element_container()
Definition cl_Graph_Vertex.cpp:82
virtual void unflag(const uint8_t aIndex=0)
Definition cl_Graph_Vertex.hpp:289
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:329
Definition cl_Graph_Vertex.cpp:21
USER GUIDES:
Definition cl_Capacitor.cpp:16
Cell< graph::Vertex * > Graph
Definition cl_Graph_Vertex.hpp:337
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
T max(const Vector< T > &aVector)
Definition fn_AR_max.hpp:24
constexpr index_t gNoIndex
Definition typedefs.hpp:57
constexpr proc_t gNoOwner
Definition typedefs.hpp:59
uint32_t index_t
Definition typedefs.hpp:52