Test manager class. More...
Classes | |
| struct | FailureInfo_t |
| Data structure to document failure of a single action. More... | |
Public Types | |
| typedef T | Data_t |
| typedef TestManagerClass< Data_t > | This_t |
| typedef std::vector< Data_t > | Vector_t |
| typedef lar::sparse_vector < Data_t > | SparseVector_t |
| typedef actions::BaseAction < Data_t > | Action_t |
Public Member Functions | |
| TestManagerClass (std::ostream &output_stream=std::cout) | |
| Constructor, specify an output stream. More... | |
| size_t | current_vector_size () const |
| Returns the current size of the STL vector. More... | |
| bool | validate () const |
| Checks if the sparse vector is valid. More... | |
| bool | match () const |
| unsigned int | check () |
| void | run (const Action_t &action) |
| unsigned int | perform (const Action_t &action, bool autoCorrect=true) |
| Perform the specified action and evaluate the result. More... | |
| int | quiet (int nq=0) |
| unsigned int | operator() (const Action_t &action) |
| void | recover () |
| Set the sparse vector as a copy of the vector (lossy!) More... | |
| void | mirror () |
| Set the vector as a copy of the sparse vector. More... | |
| int | summary () const |
| Print a summary of the failures. More... | |
Public Attributes | |
| Vector_t | v {} |
| vector to operate on More... | |
| SparseVector_t | sv {} |
| sparse vector to operate on More... | |
| unsigned int | nAction {0} |
| number of actions taken so far More... | |
| unsigned int | nErrors {0} |
| number of errors accumulated More... | |
| std::vector< FailureInfo_t > | failures |
| documentation of the failures More... | |
| int | quietness {0} |
| verbosity level (larger is less verbose) More... | |
| std::ostream & | out |
| output stream More... | |
Test manager class.
Definition at line 81 of file sparse_vector_test.cc.
| typedef actions::BaseAction<Data_t> TestManagerClass< T >::Action_t |
Definition at line 87 of file sparse_vector_test.cc.
| typedef T TestManagerClass< T >::Data_t |
Definition at line 83 of file sparse_vector_test.cc.
| typedef lar::sparse_vector<Data_t> TestManagerClass< T >::SparseVector_t |
Definition at line 86 of file sparse_vector_test.cc.
| typedef TestManagerClass<Data_t> TestManagerClass< T >::This_t |
Definition at line 84 of file sparse_vector_test.cc.
| typedef std::vector<Data_t> TestManagerClass< T >::Vector_t |
Definition at line 85 of file sparse_vector_test.cc.
|
inline |
|
inline |
Definition at line 164 of file sparse_vector_test.cc.
|
inline |
|
inline |
Definition at line 162 of file sparse_vector_test.cc.
|
inline |
Set the vector as a copy of the sparse vector.
Definition at line 231 of file sparse_vector_test.cc.
|
inline |
Definition at line 224 of file sparse_vector_test.cc.
|
inline |
Perform the specified action and evaluate the result.
| action | the action to be performed |
| autoCorrect | if on failure the sparse vector is copied from vector |
Definition at line 192 of file sparse_vector_test.cc.
|
inline |
Definition at line 221 of file sparse_vector_test.cc.
|
inline |
Set the sparse vector as a copy of the vector (lossy!)
Definition at line 228 of file sparse_vector_test.cc.
|
inline |
Definition at line 179 of file sparse_vector_test.cc.
|
inline |
Print a summary of the failures.
Definition at line 234 of file sparse_vector_test.cc.
|
inline |
Checks if the sparse vector is valid.
Definition at line 123 of file sparse_vector_test.cc.
| std::vector<FailureInfo_t> TestManagerClass< T >::failures |
documentation of the failures
Definition at line 107 of file sparse_vector_test.cc.
| unsigned int TestManagerClass< T >::nAction {0} |
number of actions taken so far
Definition at line 105 of file sparse_vector_test.cc.
| unsigned int TestManagerClass< T >::nErrors {0} |
number of errors accumulated
Definition at line 106 of file sparse_vector_test.cc.
| std::ostream& TestManagerClass< T >::out |
output stream
Definition at line 111 of file sparse_vector_test.cc.
| int TestManagerClass< T >::quietness {0} |
verbosity level (larger is less verbose)
Definition at line 109 of file sparse_vector_test.cc.
| SparseVector_t TestManagerClass< T >::sv {} |
sparse vector to operate on
Definition at line 104 of file sparse_vector_test.cc.
| Vector_t TestManagerClass< T >::v {} |
vector to operate on
Definition at line 103 of file sparse_vector_test.cc.
1.8.5