hpp::manipulation::graph::Validation Class Reference

Check that graph components are valid. More...

#include <hpp/manipulation/graph/validation.hh>

Public Member Functions

 Validation (const core::ProblemPtr_t &problem)
 
void clear ()
 
bool hasWarnings () const
 
bool hasErrors () const
 
virtual std::ostream & print (std::ostream &os) const
 
bool validate (const GraphComponentPtr_t &comp)
 Validate a graph component. More...
 
bool validateState (const StatePtr_t &state)
 Validate a state. More...
 
bool validateEdge (const EdgePtr_t &edge)
 Validate an edge. More...
 
bool validateGraph (const GraphPtr_t &graph)
 Validate an graph. More...
 

Detailed Description

Check that graph components are valid.

A stringified validation report can be obtained via Validation::print or operator<< (std::ostream&, const Validation&).

Constructor & Destructor Documentation

◆ Validation()

hpp::manipulation::graph::Validation::Validation ( const core::ProblemPtr_t problem)
inline

Member Function Documentation

◆ 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()

bool hpp::manipulation::graph::Validation::validate ( const GraphComponentPtr_t comp)

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.