Public Member Functions | Protected Attributes | List of all members
g2o::HyperGraph::Edge Class Reference

#include <hyper_graph.h>

Inheritance diagram for g2o::HyperGraph::Edge:
Inheritance graph
[legend]

Public Member Functions

 Edge (int id=-1)
 creates and empty edge with no vertices More...
 
virtual HyperGraphElementType elementType () const
 
int id () const
 
virtual void resize (size_t size)
 
void setId (int id)
 
void setVertex (size_t i, Vertex *v)
 
const Vertexvertex (size_t i) const
 
Vertexvertex (size_t i)
 
const VertexContainervertices () const
 
VertexContainervertices ()
 
virtual ~Edge ()
 
- Public Member Functions inherited from g2o::HyperGraph::HyperGraphElement
virtual ~HyperGraphElement ()
 

Protected Attributes

int _id
 unique id More...
 
VertexContainer _vertices
 

Detailed Description

Abstract Edge class. Your nice edge classes should inherit from that one. An hyper-edge has pointers to the vertices it connects and stores them in a vector.

Definition at line 119 of file hyper_graph.h.

Constructor & Destructor Documentation

g2o::HyperGraph::Edge::Edge ( int  id = -1)
explicit

creates and empty edge with no vertices

Definition at line 42 of file hyper_graph.cpp.

g2o::HyperGraph::Edge::~Edge ( )
virtual

Reimplemented in g2o::OptimizableGraph::Edge.

Definition at line 46 of file hyper_graph.cpp.

Member Function Documentation

virtual HyperGraphElementType g2o::HyperGraph::Edge::elementType ( ) const
inlinevirtual

returns the type of the graph element, see HyperGraphElementType

Implements g2o::HyperGraph::HyperGraphElement.

Definition at line 152 of file hyper_graph.h.

int g2o::HyperGraph::Edge::id ( ) const
inline

Definition at line 150 of file hyper_graph.h.

void g2o::HyperGraph::Edge::resize ( size_t  size)
virtual
void g2o::HyperGraph::Edge::setId ( int  id)

Definition at line 55 of file hyper_graph.cpp.

void g2o::HyperGraph::Edge::setVertex ( size_t  i,
Vertex v 
)
inline

set the ith vertex on the hyper-edge to the pointer supplied

Definition at line 148 of file hyper_graph.h.

const Vertex* g2o::HyperGraph::Edge::vertex ( size_t  i) const
inline

returns the pointer to the ith vertex connected to the hyper-edge.

Definition at line 140 of file hyper_graph.h.

Vertex* g2o::HyperGraph::Edge::vertex ( size_t  i)
inline

returns the pointer to the ith vertex connected to the hyper-edge.

Definition at line 144 of file hyper_graph.h.

const VertexContainer& g2o::HyperGraph::Edge::vertices ( ) const
inline

returns the vector of pointers to the vertices connected by the hyper-edge.

Definition at line 132 of file hyper_graph.h.

VertexContainer& g2o::HyperGraph::Edge::vertices ( )
inline

returns the vector of pointers to the vertices connected by the hyper-edge.

Definition at line 136 of file hyper_graph.h.

Member Data Documentation

int g2o::HyperGraph::Edge::_id
protected

unique id

Definition at line 155 of file hyper_graph.h.

VertexContainer g2o::HyperGraph::Edge::_vertices
protected

Definition at line 154 of file hyper_graph.h.


The documentation for this class was generated from the following files:


orb_slam2_with_maps_odom
Author(s): teng zhang
autogenerated on Fri Sep 25 2020 03:24:47