|
CbmRoot
|
A composite of optional A, B and C. More...
Public Member Functions | |
| template<class Visitor> | |
| void | ForEachValue (Visitor &&visitor) |
| A for-each method, which is applied to each VARIABLE. | |
| template<class Visitor> | |
| void | ForEachValue (Visitor &&visitor) const |
| A for-each method, which is applied to each VARIABLE. | |
| template<class Visitor> | |
| void | ForEachVariable (Visitor &&visitor) |
| A for-each method, which is applied to a VALUE stored in each variable. | |
| template<class Visitor> | |
| void | ForEachVariable (Visitor &&visitor) const |
| A for-each method, which is applied to a VALUE stored in each variable. | |
Public Attributes | |
| std::optional< A > | fA |
| std::optional< B > | fB |
| std::optional< C > | fC |
Static Private Attributes | |
| static constexpr auto | kLooper = cbm::util::StructLooper(&Composite::fA, &Composite::fB, &Composite::fC) |
|
inline |
A for-each method, which is applied to each VARIABLE.
| visitor | A callable visitor |
Definition at line 84 of file _GTestStructLooper.cxx.
References kLooper.
Referenced by CompositeApplication::GetNumberOfStationsWithHits(), CompositeApplication::GetPropertySum(), and CompositeApplication::SetProperty().
|
inline |
A for-each method, which is applied to each VARIABLE.
| visitor | A callable visitor |
Definition at line 93 of file _GTestStructLooper.cxx.
References kLooper.
|
inline |
A for-each method, which is applied to a VALUE stored in each variable.
| visitor | A callable visitor |
Definition at line 102 of file _GTestStructLooper.cxx.
References kLooper.
Referenced by CompositeApplication::GetNofNonNullopt().
|
inline |
A for-each method, which is applied to a VALUE stored in each variable.
| visitor | A callable visitor |
Definition at line 111 of file _GTestStructLooper.cxx.
References kLooper.
| std::optional<A> Composite::fA |
Definition at line 116 of file _GTestStructLooper.cxx.
| std::optional<B> Composite::fB |
Definition at line 117 of file _GTestStructLooper.cxx.
| std::optional<C> Composite::fC |
Definition at line 118 of file _GTestStructLooper.cxx.
|
staticconstexprprivate |
Definition at line 121 of file _GTestStructLooper.cxx.
Referenced by ForEachValue(), ForEachValue(), ForEachVariable(), and ForEachVariable().