BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
belfem::graph::Vertex Class Reference

Graph node with an adjacency list; the vertex type the graph algorithms operate on. More...

#include <cl_Graph_Vertex.hpp>

Inheritance diagram for belfem::graph::Vertex:
[legend]
Collaboration diagram for belfem::graph::Vertex:
[legend]

Public Member Functions

 Vertex ()=default
virtual ~Vertex ()
void set_id (const id_t aID)
id_t id () const
virtual void set_index (const index_t aIndex)
virtual index_t index () const
virtual void set_owner (const proc_t aOwner)
virtual proc_t owner () const
index_t level () const
void set_level (const index_t aLevel)
virtual void flag (const uint8_t aIndex=0)
virtual void unflag (const uint8_t aIndex=0)
virtual bool is_flagged (const uint8_t aIndex=0) const
void increment_vertex_counter ()
void init_vertex_container ()
void init_vertex_container (const uint aSize)
void reset_vertex_container ()
void insert_vertex (Vertex *aVertex)
uint number_of_vertices () const
virtual Vertexvertex (const uint aIndex)
virtual auto vertex (const uint aIndex) const -> decltype(this)
virtual void init_element_container ()
virtual void reset_element_container ()
void sort_vertices ()
 sorts the vertices according to their index
void reverse_vertices ()

Protected Attributes

uint32_t mVertexCounter = 0
Vertex ** mVertices = nullptr

Detailed Description

Graph node with an adjacency list; the vertex type the graph algorithms operate on.

See also
Graph Module Documentation

Constructor & Destructor Documentation

◆ Vertex()

belfem::graph::Vertex::Vertex ( )
default

◆ ~Vertex()

belfem::graph::Vertex::~Vertex ( )
virtual

Reimplemented in belfem::mesh::Vertex.

Member Function Documentation

◆ flag()

void belfem::graph::Vertex::flag ( const uint8_t aIndex = 0)
inlinevirtual

Reimplemented in belfem::mesh::Facet.

◆ id()

id_t belfem::graph::Vertex::id ( ) const
inline

◆ increment_vertex_counter()

void belfem::graph::Vertex::increment_vertex_counter ( )
inline

◆ index()

index_t belfem::graph::Vertex::index ( ) const
inlinevirtual

Reimplemented in belfem::mesh::Facet.

◆ init_element_container()

void belfem::graph::Vertex::init_element_container ( )
virtual

◆ init_vertex_container() [1/2]

void belfem::graph::Vertex::init_vertex_container ( )

◆ init_vertex_container() [2/2]

void belfem::graph::Vertex::init_vertex_container ( const uint aSize)

◆ insert_vertex()

void belfem::graph::Vertex::insert_vertex ( Vertex * aVertex)
inline

◆ is_flagged()

bool belfem::graph::Vertex::is_flagged ( const uint8_t aIndex = 0) const
inlinevirtual

Reimplemented in belfem::mesh::Facet.

◆ level()

index_t belfem::graph::Vertex::level ( ) const
inline

◆ number_of_vertices()

uint belfem::graph::Vertex::number_of_vertices ( ) const
inline

◆ owner()

proc_t belfem::graph::Vertex::owner ( ) const
inlinevirtual

Reimplemented in belfem::mesh::Facet.

◆ reset_element_container()

void belfem::graph::Vertex::reset_element_container ( )
virtual

◆ reset_vertex_container()

void belfem::graph::Vertex::reset_vertex_container ( )

◆ reverse_vertices()

void belfem::graph::Vertex::reverse_vertices ( )

◆ set_id()

void belfem::graph::Vertex::set_id ( const id_t aID)
inline

◆ set_index()

void belfem::graph::Vertex::set_index ( const index_t aIndex)
inlinevirtual

Reimplemented in belfem::mesh::Facet.

◆ set_level()

void belfem::graph::Vertex::set_level ( const index_t aLevel)
inline

◆ set_owner()

void belfem::graph::Vertex::set_owner ( const proc_t aOwner)
inlinevirtual

Reimplemented in belfem::mesh::Facet.

◆ sort_vertices()

void belfem::graph::Vertex::sort_vertices ( )

sorts the vertices according to their index

sorts the connected vertices according to their index

◆ unflag()

void belfem::graph::Vertex::unflag ( const uint8_t aIndex = 0)
inlinevirtual

Reimplemented in belfem::mesh::Facet.

◆ vertex() [1/2]

virtual Vertex * belfem::graph::Vertex::vertex ( const uint aIndex)
inlinevirtual

◆ vertex() [2/2]

virtual auto belfem::graph::Vertex::vertex ( const uint aIndex) const -> decltype(this)
inlinevirtual

Member Data Documentation

◆ mVertexCounter

uint32_t belfem::graph::Vertex::mVertexCounter = 0
protected

◆ mVertices

Vertex** belfem::graph::Vertex::mVertices = nullptr
protected

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