NGen
Loading...
Searching...
No Matches
Partitions_Parser Class Reference

#include <Partition_Parser.hpp>

+ Collaboration diagram for Partitions_Parser:

Public Member Functions

 Partitions_Parser (const std::string &file_path)
 
 Partitions_Parser (const boost::property_tree::ptree tree)
 
virtual ~Partitions_Parser ()
 
void parse_partition_file ()
 
PartitionData get_partition_struct (int part_id)
 
int get_mpi_rank (int part_id)
 

Public Attributes

std::vector< PartitionDatapartition_ranks
 

Private Attributes

int mpi_world_rank
 
std::unordered_set< std::string > catchment_ids
 
std::unordered_set< std::string > nexus_ids
 
std::vector< std::tuple< int, std::string, std::string > > remote_connections
 
std::tuple< int, std::string, std::string > remote_tuple
 
boost::property_tree::ptree tree
 

Constructor & Destructor Documentation

◆ Partitions_Parser() [1/2]

Partitions_Parser::Partitions_Parser ( const std::string & file_path)
inline

References tree.

◆ Partitions_Parser() [2/2]

Partitions_Parser::Partitions_Parser ( const boost::property_tree::ptree tree)
inline

References tree.

◆ ~Partitions_Parser()

virtual Partitions_Parser::~Partitions_Parser ( )
inlinevirtual

Member Function Documentation

◆ get_mpi_rank()

int Partitions_Parser::get_mpi_rank ( int part_id)
inline

◆ get_partition_struct()

PartitionData Partitions_Parser::get_partition_struct ( int part_id)
inline

References partition_ranks.

◆ parse_partition_file()

Member Data Documentation

◆ catchment_ids

std::unordered_set<std::string> Partitions_Parser::catchment_ids
private

Referenced by parse_partition_file().

◆ mpi_world_rank

int Partitions_Parser::mpi_world_rank
private

Referenced by get_mpi_rank().

◆ nexus_ids

std::unordered_set<std::string> Partitions_Parser::nexus_ids
private

Referenced by parse_partition_file().

◆ partition_ranks

std::vector<PartitionData> Partitions_Parser::partition_ranks

◆ remote_connections

std::vector<std::tuple<int, std::string, std::string> > Partitions_Parser::remote_connections
private

◆ remote_tuple

std::tuple<int, std::string, std::string> Partitions_Parser::remote_tuple
private

◆ tree

boost::property_tree::ptree Partitions_Parser::tree
private

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