Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Top-level namespace of the Bayeux/materials module library. More...
Classes | |
class | chemical_symbol |
Utilities for chemical symbols. More... | |
class | compound_entry |
Material compound entry. More... | |
class | element |
The description of an element. More... | |
class | factory |
Factory for isotopes, elements and materials. More... | |
class | iso_entry |
Isotope composition entry. More... | |
class | isotope |
A simple class to handle known isotopes (ZAI) and their basic properties (mass & decays). More... | |
class | manager |
The manager object for isotopes, elements and materials. More... | |
class | material |
The description of a material. More... | |
class | materials_driver |
Driver for materials. More... | |
struct | materials_driver_params |
Parameters for the material driver. More... | |
class | refractive_index |
Compute the refractive index or the extinction coefficient for a given medium. More... | |
class | smart_ref |
A handler object that is used as a smart reference for an object of which it can have the responsibility of the deletion. More... | |
struct | version |
Describe the materials API version and features. More... | |
Typedefs | |
typedef std::map< std::string, smart_ref< isotope > > | isotope_dict_type |
typedef std::map< std::string, smart_ref< element > > | element_dict_type |
typedef std::map< std::string, smart_ref< material > > | material_dict_type |
typedef std::map< std::string, iso_entry > | isotope_weight_map_type |
Dictionary of isotope composition entries. More... | |
typedef std::map< std::string, compound_entry > | composition_map_type |
Dictionary of material compounds. More... | |
Functions | |
std::string | get_resource_dir (bool overriden_env=false) |
std::string | get_resource (const std::string &rname, bool overriden_env=false) |
Top-level namespace of the Bayeux/materials module library.
The namespace of the Bayeux/materials module library.
Top-level namespace of the Bayeux/materials module library
typedef std::map<std::string, compound_entry> materials::composition_map_type |
Dictionary of material compounds.
typedef std::map<std::string, smart_ref<element> > materials::element_dict_type |
typedef std::map<std::string, smart_ref<isotope> > materials::isotope_dict_type |
typedef std::map<std::string, iso_entry> materials::isotope_weight_map_type |
Dictionary of isotope composition entries.
typedef std::map<std::string, smart_ref<material> > materials::material_dict_type |
std::string materials::get_resource | ( | const std::string & | rname, |
bool | overriden_env = false |
||
) |
Return URL, i.e. a path, to named resource By default the encoded resource root, determined at compile time is used to search for the resource. This can be overriden by setting the MATERIALS_RESOURCE_DIR environment variable to a path holding custom resources.
rname | name of resource, given as a path relative to resource root. |
overriden_env | flag to allow path overriding by the MATERIALS_RESOURCE_DIR environment variable. |
std::string materials::get_resource_dir | ( | bool | overriden_env = false | ) |
Return URL, i.e. a path, to the base directory where resource files are installed
overriden_env | If set this flag trigger the search for the environment variable MATERIALS_RESOURCE_DIR as a directory path on the filesystem as an alternative base directory for resources in place of the standard installation path |