15 template <
class GRAPH_T>
    18 template <
class GRAPH_T>
    21 template <
class GRAPH_T>
    25     this->getAsString(&str, oneline);
    29 template <
class GRAPH_T>
    31     std::string* str, 
bool oneline )
 const    33     ASSERTMSG_(str, 
"Given string pointer is not valid");
    40         ss << 
"Hypothesis #" << 
id << endl;
    41         ss << from << 
" => " << to << endl;
    46         ss << 
"Hypothesis #" << 
id << 
"| ";
    47         ss << from << 
" => " << to << 
"| ";
    48         ss << edge.getMeanVal().asString();
    49         ss << 
"|goodness: " << goodness;
    50         ss << 
"|valid: " << is_valid;
    57 template <
class GRAPH_T>
    60     return (this->from == other.
from && this->to == other.
to);
    63 template <
class GRAPH_T>
    67     return (this->from == from_in && this->to == to_in);
    70 template <
class GRAPH_T>
    74     out_edge->copyFrom(edge);
    77 template <
class GRAPH_T>
    83 template <
class GRAPH_T>
    86     edge.copyFrom(in_edge);
    89 template <
class GRAPH_T>
    93     edge.inverse(*out_edge);
    96 template <
class GRAPH_T>
   100     this->getInverseEdge(&inverse_edge);
   105 template <
class GRAPH_T>
   115     this->edge.copyFrom(edge_tmp);
   118 template <
class GRAPH_T>
   121     return this->
id < other.
id;
 constraint_t getEdge() const
 
void inverseHypothesis()
Reverse the hypothesis. 
 
typename GRAPH_T::constraint_t constraint_t
Handy typedefs. 
 
#define ASSERT_(f)
Defines an assertion mechanism. 
 
Internal functions for MRPT. 
 
~THypothesis()
Destructor. 
 
mrpt::graphs::TNodeID from
Starting node of the hypothesis. 
 
bool operator<(const self_t &other) const
Handy operator for using THypothesis in std::set. 
 
#define ASSERTMSG_(f, __ERROR_MSG)
Defines an assertion mechanism. 
 
THypothesis()
Constructor. 
 
bool hasEnds(const mrpt::graphs::TNodeID from, const mrpt::graphs::TNodeID to) const
Check if the start, end nodes are the ones given. 
 
mrpt::graphs::TNodeID to
Ending node of the hypothesis. 
 
void setEdge(const constraint_t &edge)
Setter method for the underlying edge. 
 
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities. 
 
constraint_t getInverseEdge() const
 
size_t id
ID of the current hypothesis. 
 
An edge hypothesis between two nodeIDs. 
 
bool sameEndsWith(const self_t &other) const
Compare the start and end nodes of two hypothesis. 
 
std::string getAsString(bool oneline=true) const
Return a string representation of the object at hand.