|
tfel
|
#include "TFEL/Raise.hxx"Classes | |
| struct | tfel::utilities::internals::DataConvertorImpl< T, true > |
| struct | tfel::utilities::internals::DataConvertor< T > |
| an helper class (in C++-11, no if constexpr, so we rely on template specialisation) More... | |
| struct | tfel::utilities::internals::DataConvertor< double > |
| an helper class (in C++-11, no if constexpr, so we rely on template specialisation) More... | |
| struct | tfel::utilities::internals::DataConvertor< std::vector< T > > |
| partial specialisation for std::vector More... | |
| struct | tfel::utilities::internals::DataConvertor< std::map< std::string, T > > |
| partial specialisation for std::map More... | |
Namespaces | |
| namespace | tfel |
| the namespace tfel encloses all the TFEL project. This namespace is empty. | |
Functions | |
| template<typename T> | |
| T | tfel::utilities::convert (const Data &) |
| extract a value of the given type from a Data structure | |
| template<typename T> | |
| bool | tfel::utilities::is_convertible (const Data &) |
| template<typename ResultType> | |
| bool | tfel::utilities::is (const DataMap &, std::string_view) |
| template<typename ResultType> | |
| const ResultType & | tfel::utilities::get (const DataMap &, std::string_view) |
| template<typename ResultType> | |
| ResultType | tfel::utilities::get_if (const DataMap &, std::string_view, const ResultType &) |
| T tfel::utilities::convert | ( | const Data & | d | ) |
extract a value of the given type from a Data structure
| [in] | d | data |
| const ResultType & tfel::utilities::get | ( | const DataMap & | m, |
| std::string_view | n ) |
| ResultType | expected type of the data |
| [in] | m | data map |
| [in] | n | name |
| if | the data does not exists or does not have the good type. |
| ResultType tfel::utilities::get_if | ( | const DataMap & | m, |
| std::string_view | n, | ||
| const ResultType & | v ) |
| ResultType | expected type of the data |
| [in] | m | data map |
| [in] | n | name |
| [in] | v | default value |
| if | the data exists but does not have the good type. |
| bool tfel::utilities::is | ( | const DataMap & | m, |
| std::string_view | n ) |
| [in] | m | data map |
| [in] | n | name |
| if | the data does not exists |
| bool tfel::utilities::is_convertible | ( | const Data & | d | ) |
| [in] | d | data |