Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | List of all members
shamrock::solvergraph::RankGetter Class Reference

#include <shamrock/include/shamrock/solvergraph/RankGetter.hpp>

+ Inheritance diagram for shamrock::solvergraph::RankGetter:
+ Collaboration diagram for shamrock::solvergraph::RankGetter:

Public Member Functions

 RankGetter (std::function< u32(u64)> getter_func, std::string label, std::string tex_symbol)
 
u32 get_rank_owner (u64 patch_id) const
 
void free_alloc ()
 Free allocated memory.
 
- Public Member Functions inherited from shamrock::solvergraph::IEdgeNamed
 IEdgeNamed (std::string name, std::string texsymbol)
 
virtual std::string _impl_get_dot_label () const
 
virtual std::string _impl_get_tex_symbol () const
 
- Public Member Functions inherited from shamrock::solvergraph::IEdge
std::string get_label () const
 
std::string get_tex_symbol () const
 
- Public Member Functions inherited from shambase::WithUUID< IEdge, u64 >
u64 get_uuid () const
 Get the uuid of the class.
 
 WithUUID ()
 Constructor of the class.
 
- Public Member Functions inherited from shamrock::solvergraph::IFreeable
virtual ~IFreeable ()
 Virtual destructor.
 

Additional Inherited Members

- Protected Attributes inherited from shambase::WithUUID< IEdge, u64 >
u64 uuid
 The unique identifier of the class.
 

Detailed Description

Edge to get the rank owning a patch. Could be made faster by usage of a cache, provided that we ensure its reset

Definition at line 27 of file RankGetter.hpp.

Constructor & Destructor Documentation

◆ RankGetter()

shamrock::solvergraph::RankGetter::RankGetter ( std::function< u32(u64)>  getter_func,
std::string  label,
std::string  tex_symbol 
)
inline

Definition at line 33 of file RankGetter.hpp.

Member Function Documentation

◆ free_alloc()

void shamrock::solvergraph::RankGetter::free_alloc ( )
inlinevirtual

Free allocated memory.

Implements shamrock::solvergraph::IFreeable.

Definition at line 39 of file RankGetter.hpp.

◆ get_rank_owner()

u32 shamrock::solvergraph::RankGetter::get_rank_owner ( u64  patch_id) const
inline

Definition at line 37 of file RankGetter.hpp.


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