BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
op_Graph_Vertex_Owner.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef OP_GRAPH_VERTEX_OWNER_HPP
13#define OP_GRAPH_VERTEX_OWNER_HPP
14
15
16#include "cl_Graph_Vertex.hpp"
17
18namespace belfem
19{
20
21//------------------------------------------------------------------------------
22
23 // comparison object
24 inline struct OpVertexOwner
25 {
26 inline bool
27 operator()( const graph::Vertex * aA, const graph::Vertex * aB )
28 {
29 return aA->owner() < aB->owner();
30 }
32
33//------------------------------------------------------------------------------
34}
35
36#endif //OP_GRAPH_VERTEX_OWNER_HPP
Graph node with an adjacency list; the vertex type the graph algorithms operate on.
Definition cl_Graph_Vertex.hpp:32
virtual proc_t owner() const
Definition cl_Graph_Vertex.hpp:250
USER GUIDES:
Definition cl_Capacitor.cpp:16
struct belfem::OpVertexOwner opVertexOwner
Definition op_Graph_Vertex_Owner.hpp:25
bool operator()(const graph::Vertex *aA, const graph::Vertex *aB)
Definition op_Graph_Vertex_Owner.hpp:27