Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
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
virtual std::string get_raw_tex_symbol () const
Public Member Functions inherited from shamrock::solvergraph::IEdge
 IEdge (const IEdge &)=delete
IEdge & operator= (const IEdge &)=delete
 would duplicate the uuid
 IEdge (IEdge &&) noexcept=default
 would duplicate the uuid
IEdge & operator= (IEdge &&) noexcept=default
std::string get_label () const
std::string get_tex_symbol () const
u64 get_uuid () const
 Get the UUID of the edge.
Public Member Functions inherited from shamrock::solvergraph::IFreeable
virtual ~IFreeable ()
 Virtual destructor.

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: