humoto
|
Violations corresponding to a hierarchy of Constraints.
Definition at line 235 of file violations.h.
#include <violations.h>
Public Member Functions | |
void | initialize (const std::size_t number_of_levels, const std::vector< std::size_t > &number_of_constraints) |
Initialize violations. More... | |
void | log (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="violations") const |
Log violations. More... | |
const ViolationsConstraints & | operator[] (const std::size_t level_index) const |
Access violations of a given level (const) More... | |
ViolationsConstraints & | operator[] (const std::size_t level_index) |
Access violations of a given level. More... | |
void | reset () |
Reset. More... | |
void | setZero (const std::size_t level_index) |
Set violations of all constraints on the given level. More... | |
std::size_t | size () const |
Size. More... | |
Private Attributes | |
std::vector< ViolationsConstraints > | data_ |
|
inline |
Initialize violations.
[in] | number_of_levels | number of levels |
[in] | number_of_constraints | number of constraints for each level |
Definition at line 308 of file violations.h.
|
inline |
Log violations.
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Definition at line 328 of file violations.h.
|
inline |
Access violations of a given level (const)
[in] | level_index | index of the level |
Definition at line 249 of file violations.h.
|
inline |
Access violations of a given level.
[in] | level_index | index of the level |
Definition at line 263 of file violations.h.
|
inline |
Reset.
Definition at line 296 of file violations.h.
|
inline |
Set violations of all constraints on the given level.
[in] | level_index | index of the level |
Definition at line 275 of file violations.h.
|
inline |
|
private |
Definition at line 238 of file violations.h.