structure describing the current state of a study
More...
#include </home/runner/work/tfel/tfel/mtest/include/MTest/StudyCurrentState.hxx>
|
|
std::map< std::string, StudyParameter > | parameters |
| | study parameters
|
|
std::map< std::string, std::shared_ptr< StructureCurrentState > > | s |
| | current state of the structures indexed by the structure's names
|
|
std::map< std::string, std::shared_ptr< Evolution > > | evs |
| | evolutions
|
|
std::vector< bool > | failure_criterion_status |
| | failure criteria status
|
structure describing the current state of a study
◆ addEvolution()
| void mtest::StudyCurrentState::addEvolution |
( |
const std::string & | , |
|
|
std::shared_ptr< Evolution > | ) |
add a new evolution
- Parameters
-
| [in] | n | : name of the evolution |
| [in] | e | : evolution |
◆ checkParameterType()
template<typename T>
| bool mtest::StudyCurrentState::checkParameterType |
( |
const std::string & | n | ) |
const |
|
nodiscard |
- Returns
- true if the study parameter with the specified name has the specified type
- Template Parameters
-
- Parameters
-
| [in] | n | : the requested name |
- Note
- an exception is thrown if no data of the specified name is found or if the object type has not the requested type
◆ containsEvolution()
| bool mtest::StudyCurrentState::containsEvolution |
( |
const std::string & | | ) |
const |
|
nodiscard |
- Parameters
-
| [in] | n | : name of the evolution |
◆ containsParameter()
| bool mtest::StudyCurrentState::containsParameter |
( |
const std::string & | | ) |
const |
|
nodiscard |
◆ getEvolution() [1/2]
| Evolution & mtest::StudyCurrentState::getEvolution |
( |
const std::string & | | ) |
|
|
nodiscard |
- Returns
- the evolution with the given name
- Parameters
-
| [in] | n | : name of the evolution |
◆ getEvolution() [2/2]
| const Evolution & mtest::StudyCurrentState::getEvolution |
( |
const std::string & | | ) |
const |
|
nodiscard |
- Returns
- the evolution with the given name
- Parameters
-
| [in] | n | : name of the evolution |
◆ getFailureCriterionStatus()
| bool mtest::StudyCurrentState::getFailureCriterionStatus |
( |
const std::size_t | | ) |
const |
|
nodiscard |
- Returns
- the status of a failure criterion
- Parameters
-
| [in] | i | index of the failure criterion |
◆ getFailureStatus()
| bool mtest::StudyCurrentState::getFailureStatus |
( |
| ) |
const |
|
nodiscard |
- Returns
- if any of the failure criterion is true
◆ getNumberOfFailureCriterionStatus()
| std::size_t mtest::StudyCurrentState::getNumberOfFailureCriterionStatus |
( |
| ) |
const |
|
nodiscardnoexcept |
- Returns
- the number of failure criterion status
◆ getParameter() [1/2]
template<typename T>
| const T & mtest::StudyCurrentState::getParameter |
( |
const std::string & | n | ) |
const |
|
nodiscard |
- Returns
- the object holded by the study parameter with the specified name
- Template Parameters
-
- Parameters
-
| [in] | n | : the requested name |
- Note
- an exception is thrown if no data of the specified name is found or if the object type has not the requested type
◆ getParameter() [2/2]
template<typename T>
| T & mtest::StudyCurrentState::getParameter |
( |
const std::string & | n, |
|
|
const bool | b = false ) |
|
nodiscard |
- Returns
- the object holded by the study parameter with the specified name
- Template Parameters
-
- Parameters
-
| [in] | n | : the requested name |
| [in] | b | : create the object if it does not exists |
- Note
- an exception is thrown if no data of the specified name is found or if the object type has not the requested type
◆ getStructureCurrentState() [1/2]
- Returns
- the state associated with a structure
- Parameters
-
◆ getStructureCurrentState() [2/2]
| const StructureCurrentState & mtest::StudyCurrentState::getStructureCurrentState |
( |
const std::string & | | ) |
const |
|
nodiscard |
- Returns
- the state associated with a structure
- Parameters
-
◆ initialize()
allocate memory
- Parameters
-
◆ setFailureCriterionStatus()
| void mtest::StudyCurrentState::setFailureCriterionStatus |
( |
const std::size_t | , |
|
|
const bool | ) |
set the status of a failure criterion
- Parameters
-
| [in] | i | index of the failure criterion |
| [in] | status | new status |
◆ setNumberOfFailureCriterionStatus()
| void mtest::StudyCurrentState::setNumberOfFailureCriterionStatus |
( |
const std::size_t | | ) |
|
set the number of failure criterion status
- Parameters
-
| [in] | n | number of the failure criteria |
- Note
- the newly allocated status are initialized to false
◆ setParameter()
template<typename T>
| T & mtest::StudyCurrentState::setParameter |
( |
const std::string & | n, |
|
|
const T & | v ) |
set a parameter
- Template Parameters
-
- Parameters
-
| [in] | n | : parameter name |
| [in] | v | : parameter value |
- Note
- an exception is thrown if a data of the specified name is found
◆ throwAlreadyDeclaredParameterException()
| void mtest::StudyCurrentState::throwAlreadyDeclaredParameterException |
( |
const std::string & | | ) |
|
|
staticprotected |
throw an exception stating that a parameter with the given name has been found
- Parameters
-
◆ throwUnknownParameterException()
| void mtest::StudyCurrentState::throwUnknownParameterException |
( |
const std::string & | | ) |
|
|
staticprotected |
throw an exception stating that no parameter with the given name has been found
- Parameters
-
◆ update()
| void mtest::StudyCurrentState::update |
( |
const real | | ) |
|
update the state: values at the end of the time step becomes the values at the beginning of the next time step
- Parameters
-
The documentation for this struct was generated from the following files: