Check that graph components are valid.
More...
#include <hpp/manipulation/graph/validation.hh>
Check that graph components are valid.
A stringified validation report can be obtained via Validation::print or operator<< (std::ostream&, const Validation&).
◆ Validation()
◆ clear()
void hpp::manipulation::graph::Validation::clear |
( |
| ) |
|
|
inline |
◆ hasErrors()
bool hpp::manipulation::graph::Validation::hasErrors |
( |
| ) |
const |
|
inline |
◆ hasWarnings()
bool hpp::manipulation::graph::Validation::hasWarnings |
( |
| ) |
const |
|
inline |
◆ print()
virtual std::ostream& hpp::manipulation::graph::Validation::print |
( |
std::ostream & |
os | ) |
const |
|
virtual |
◆ validate()
Validate a graph component.
It dynamically casts in order to call the right function among the validation method below.
- Returns
- true if the component could not be proven infeasible.
- Note
- Even if true is returned, the report can contain warnings.
◆ validateEdge()
bool hpp::manipulation::graph::Validation::validateEdge |
( |
const EdgePtr_t & |
edge | ) |
|
Validate an edge.
- Returns
- true if the edge could not be proven infeasible.
- Note
- Even if true is returned, the report can contain warnings.
◆ validateGraph()
bool hpp::manipulation::graph::Validation::validateGraph |
( |
const GraphPtr_t & |
graph | ) |
|
Validate an graph.
- Returns
- true if no component of the graph could not be proven infeasible.
- Note
- Even if true is returned, the report can contain warnings.
◆ validateState()
bool hpp::manipulation::graph::Validation::validateState |
( |
const StatePtr_t & |
state | ) |
|
Validate a state.
- Returns
- true if the state could not be proven infeasible.
- Note
- Even if true is returned, the report can contain warnings.