BioCMAMC-ST
Mixture::SpecieTable Class Reference

#include <species_descriptor.hpp>

Public Member Functions

std::size_t n_species () const
 SpecieTable (std::initializer_list< Specie > values)
template<class Archive>
void serialize (Archive &archive)
 SpecieTable (std::size_t n)
 SpecieTable ()=default
std::optional< std::reference_wrapper< const Specie > > add (Specie &&s)
std::optional< std::reference_wrapper< const Specie > > get (std::string_view name) const
std::optional< size_t > index_of (std::string_view name) const
bool has (std::string_view name) const
auto henry () const
auto species_list () const

Private Attributes

std::vector< Speciem_table

Friends

std::ostream & operator<< (std::ostream &os, const SpecieTable &table)

Constructor & Destructor Documentation

◆ SpecieTable() [1/3]

Mixture::SpecieTable::SpecieTable ( std::initializer_list< Specie > values)
Here is the caller graph for this function:

◆ SpecieTable() [2/3]

Mixture::SpecieTable::SpecieTable ( std::size_t n)
explicit
Here is the call graph for this function:

◆ SpecieTable() [3/3]

Mixture::SpecieTable::SpecieTable ( )
default

Member Function Documentation

◆ add()

std::optional< std::reference_wrapper< const Specie > > Mixture::SpecieTable::add ( Specie && s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get()

std::optional< std::reference_wrapper< const Specie > > Mixture::SpecieTable::get ( std::string_view name) const
nodiscard
Here is the call graph for this function:

◆ has()

bool Mixture::SpecieTable::has ( std::string_view name) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ henry()

auto Mixture::SpecieTable::henry ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ index_of()

std::optional< size_t > Mixture::SpecieTable::index_of ( std::string_view name) const
nodiscard
Here is the caller graph for this function:

◆ n_species()

std::size_t Mixture::SpecieTable::n_species ( ) const
nodiscard

◆ serialize()

template<class Archive>
void Mixture::SpecieTable::serialize ( Archive & archive)
inline

◆ species_list()

auto Mixture::SpecieTable::species_list ( ) const
inlinenodiscard

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const SpecieTable & table )
friend

Member Data Documentation

◆ m_table

std::vector<Specie> Mixture::SpecieTable::m_table
private

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