g2o
Loading...
Searching...
No Matches
Public Member Functions | List of all members
g2o::OptimizableGraph::EdgeIDCompare Struct Reference

order edges based on the internal ID, which is assigned to the edge in addEdge() More...

#include <optimizable_graph.h>

Public Member Functions

bool operator() (const Edge *e1, const Edge *e2) const
 
bool operator() (const HyperGraph::Edge *e1, const HyperGraph::Edge *e2) const
 

Detailed Description

order edges based on the internal ID, which is assigned to the edge in addEdge()

Definition at line 88 of file optimizable_graph.h.

Member Function Documentation

◆ operator()() [1/2]

bool g2o::OptimizableGraph::EdgeIDCompare::operator() ( const Edge e1,
const Edge e2 
) const
inline

Definition at line 89 of file optimizable_graph.h.

89 {
90 return e1->internalId() < e2->internalId();
91 }

References g2o::OptimizableGraph::Edge::internalId().

◆ operator()() [2/2]

bool g2o::OptimizableGraph::EdgeIDCompare::operator() ( const HyperGraph::Edge e1,
const HyperGraph::Edge e2 
) const
inline

Definition at line 92 of file optimizable_graph.h.

93 {
94 return operator()(static_cast<const Edge*>(e1),
95 static_cast<const Edge*>(e2));
96 }
bool operator()(const Edge *e1, const Edge *e2) const

The documentation for this struct was generated from the following file: