this is a structure allowing for automatically verifying that the item has been initialized or not. The chckitm_reset() function allows to set it back to "not initialized" state.
More...
#include <state-observation/tools/definitions.hpp>
template<typename T, bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
class stateObservation::CheckedItem< T, lazy, alwaysCheck, assertion, eigenAlignedNew, additionalChecker >
this is a structure allowing for automatically verifying that the item has been initialized or not. The chckitm_reset() function allows to set it back to "not initialized" state.
- Template Parameters
-
T | is the contained type |
lazy | means that the "set" value is true all the time if NDEBUG is defined |
alwaysCheck | means that the check is always performed and throws exception if it fails. Otherwise, the check is performed only for debug warning, this has no effect if lazy is set to true |
assertion | means that an assertion will be introduced for the check. |
eigenAlignedNew | should be set to true if any alignment is required for the new operator (see eigen documentation) |
additionalChecker | defines a check function that is called in addition to the initialization check |
◆ AssertMsg
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ ExceptionPtr
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ IsSet
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ CheckedItem() [1/3]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
The parameter initialize sets whether the isSet() parameter is initialized to false.
◆ CheckedItem() [2/3]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ CheckedItem() [3/3]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
stateObservation::CheckedItem< T, lazy, alwaysCheck, assertion, eigenAlignedNew, additionalChecker >::CheckedItem |
( |
const CheckedItem< T, lazy, alwaysCheck, assertion, eigenAlignedNew, additionalChecker > & |
| ) |
|
◆ ~CheckedItem()
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ chckitm_check_()
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ chckitm_getValue()
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ getRefUnchecked() [1/2]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ getRefUnchecked() [2/2]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ isSet()
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ operator const T &()
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ operator T()
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ operator()() [1/2]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ operator()() [2/2]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ operator=() [1/2]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
CheckedItem& stateObservation::CheckedItem< T, lazy, alwaysCheck, assertion, eigenAlignedNew, additionalChecker >::operator= |
( |
const CheckedItem< T, lazy, alwaysCheck, assertion, eigenAlignedNew, additionalChecker > & |
| ) |
|
|
inline |
◆ operator=() [2/2]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ reset()
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ set() [1/2]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
allows to set the initialization boolean to true and give a reference to the object with the same instruction should be used to initialize the object without using the assignment operator
◆ set() [2/2]
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
set the value of the initialization check boolean
◆ setAssertMessage()
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ setExceptionPtr()
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ assertMsg_
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ do_assert_
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ do_check_
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ do_exception_
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ exceptionPtr_
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ isSet_
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
◆ v_
template<typename T , bool lazy = false, bool alwaysCheck = false, bool assertion = true, bool eigenAlignedNew = false, typename additionalChecker = EmptyChecker>
this can throw(std::exception)
The documentation for this class was generated from the following file: