Wildmeshing Toolkit
wmtk::components::multimesh::NamedMultiMesh::Node Struct Reference

Public Member Functions

 Node (Node &&)=default
 
 Node ()=default
 
 Node (const Node &o)
 
Nodeoperator= (const Node &o)
 
void set_names (const nlohmann::json &js)
 
void get_name_tokens (const std::span< const int64_t > &t, std::vector< std::string_view > &toks) const
 
void update_child_names ()
 

Public Attributes

std::string name
 
std::vector< std::unique_ptr< Node > > m_children
 
std::map< std::string, int64_t > m_child_indexer
 

Friends

void to_json (nlohmann::json &nlohmann_json_j, const NamedMultiMesh::Node &nlohmann_json_t)
 

Detailed Description

Definition at line 11 of file NamedMultiMesh.cpp.

Constructor & Destructor Documentation

◆ Node() [1/3]

wmtk::components::multimesh::NamedMultiMesh::Node::Node ( Node &&  )
default

◆ Node() [2/3]

wmtk::components::multimesh::NamedMultiMesh::Node::Node ( )
default

◆ Node() [3/3]

wmtk::components::multimesh::NamedMultiMesh::Node::Node ( const Node o)
inline

Definition at line 15 of file NamedMultiMesh.cpp.

References m_children.

Member Function Documentation

◆ get_name_tokens()

void wmtk::components::multimesh::NamedMultiMesh::Node::get_name_tokens ( const std::span< const int64_t > &  t,
std::vector< std::string_view > &  toks 
) const
inline

Definition at line 62 of file NamedMultiMesh.cpp.

References m_children, and name.

◆ operator=()

Node& wmtk::components::multimesh::NamedMultiMesh::Node::operator= ( const Node o)
inline

Definition at line 24 of file NamedMultiMesh.cpp.

References m_children, and update_child_names().

Here is the call graph for this function:

◆ set_names()

void wmtk::components::multimesh::NamedMultiMesh::Node::set_names ( const nlohmann::json js)
inline

Definition at line 39 of file NamedMultiMesh.cpp.

References m_children, and update_child_names().

Here is the call graph for this function:

◆ update_child_names()

void wmtk::components::multimesh::NamedMultiMesh::Node::update_child_names ( )
inline

Definition at line 76 of file NamedMultiMesh.cpp.

References m_child_indexer, m_children, and name.

Referenced by wmtk::components::multimesh::NamedMultiMesh::append_child_mesh_names(), operator=(), and set_names().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ to_json

void to_json ( nlohmann::json nlohmann_json_j,
const NamedMultiMesh::Node nlohmann_json_t 
)
friend

Definition at line 83 of file NamedMultiMesh.cpp.

Member Data Documentation

◆ m_child_indexer

std::map<std::string, int64_t> wmtk::components::multimesh::NamedMultiMesh::Node::m_child_indexer

◆ m_children

◆ name


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