the testing class binds criterium to actions
More...
#include <crit_action.hpp>
Inherits libdar::crit_action.
|
| | testing (const criterium &input, const crit_action &go_true, const crit_action &go_false) |
| | the constructor
|
| | testing (const testing &ref) |
| | testing (testing &&ref) noexcept |
| testing & | operator= (const testing &ref) |
| testing & | operator= (testing &&ref) noexcept |
| virtual void | get_action (const cat_nomme &first, const cat_nomme &second, over_action_data &data, over_action_ea &ea) const override |
| | the inherited pure virtual method from class crit_action that must be implemented
|
| virtual crit_action * | clone () const override |
| | clone construction method
|
|
| crit_action (const crit_action &ref)=default |
|
| crit_action (crit_action &&ref) noexcept=default |
|
crit_action & | operator= (const crit_action &ref)=default |
|
crit_action & | operator= (crit_action &&ref) noexcept=default |
|
virtual | ~crit_action ()=default |
| | the destructor
|
|
| void | nullifyptr () noexcept |
|
void | free () noexcept |
|
void | copy_from (const testing &ref) |
|
void | move_from (testing &&ref) noexcept |
| bool | check () const |
| | returns false if an field is nullptr
|
the testing class binds criterium to actions
a testing class is also an action that let the user build complex testing. It is thus possible to recursively use testing inside testing
Definition at line 142 of file crit_action.hpp.
◆ testing() [1/3]
| libdar::testing::testing |
( |
const criterium & | input, |
|
|
const crit_action & | go_true, |
|
|
const crit_action & | go_false ) |
the constructor
- Parameters
-
| [in] | input | is the criterium to base the evaluation on |
| [in] | go_true | is the action to use for evaluation if the criterium states true |
| [in] | go_false | is the action to use for evaluation if the criterium states false |
References check(), and testing().
Referenced by clone(), and testing().
◆ testing() [2/3]
| libdar::testing::testing |
( |
const testing & | ref | ) |
|
|
inline |
◆ testing() [3/3]
| libdar::testing::testing |
( |
testing && | ref | ) |
|
|
inlinenoexcept |
◆ ~testing()
| libdar::testing::~testing |
( |
| ) |
|
|
inline |
◆ check()
| bool libdar::testing::check |
( |
| ) |
const |
|
private |
◆ clone()
| virtual crit_action * libdar::testing::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ get_action()
◆ nullifyptr()
| void libdar::testing::nullifyptr |
( |
| ) |
|
|
inlineprivatenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ x_go_false
| crit_action* libdar::testing::x_go_false |
|
private |
◆ x_go_true
| crit_action* libdar::testing::x_go_true |
|
private |
◆ x_input
The documentation for this class was generated from the following file: