adamantine
Public Member Functions | Private Member Functions | Private Attributes | List of all members
adamantine::Boundary Class Reference

#include <Boundary.hh>

Public Member Functions

 Boundary (boost::property_tree::ptree const &database, std::vector< dealii::types::boundary_id > const &boundary_ids)
 
unsigned int n_boundary_ids () const
 
BoundaryType get_boundary_type (dealii::types::boundary_id boundary_id) const
 
std::vector< dealii::types::boundary_id > get_boundary_ids (BoundaryType type) const
 

Private Member Functions

BoundaryType parse_boundary_line (std::string boundary_type_str)
 

Private Attributes

std::vector< BoundaryType_types
 

Detailed Description

This class parses the Boundary database and stores the BoundaryType associated with each boundary id.

Definition at line 81 of file Boundary.hh.

Constructor & Destructor Documentation

◆ Boundary()

adamantine::Boundary::Boundary ( boost::property_tree::ptree const &  database,
std::vector< dealii::types::boundary_id > const &  boundary_ids 
)

Constructor.

Definition at line 12 of file Boundary.cc.

Member Function Documentation

◆ get_boundary_ids()

std::vector< dealii::types::boundary_id > adamantine::Boundary::get_boundary_ids ( BoundaryType  type) const

Return all the boundary ids associated with the given BoundaryType

Definition at line 73 of file Boundary.cc.

◆ get_boundary_type()

BoundaryType adamantine::Boundary::get_boundary_type ( dealii::types::boundary_id  boundary_id) const
inline

Return the BoundaryType associated with the given boundary id.

Definition at line 120 of file Boundary.hh.

◆ n_boundary_ids()

unsigned int adamantine::Boundary::n_boundary_ids ( ) const
inline

Return the number of boundary ids associated with the Geometry.

Definition at line 118 of file Boundary.hh.

◆ parse_boundary_line()

BoundaryType adamantine::Boundary::parse_boundary_line ( std::string  boundary_type_str)
private

Return the BoundaryType associated with the given string.

Definition at line 87 of file Boundary.cc.

Member Data Documentation

◆ _types

std::vector<BoundaryType> adamantine::Boundary::_types
private

Vector of all the BoundaryType present in the Geometry.

Definition at line 110 of file Boundary.hh.