g2o
Loading...
Searching...
No Matches
g2o::HyperGraph::Vertex Class Reference

abstract Vertex, your types must derive from that one More...

#include <hyper_graph.h>

Inheritance diagram for g2o::HyperGraph::Vertex:
Collaboration diagram for g2o::HyperGraph::Vertex:

Public Member Functions

 Vertex (int id=InvalidId)
 creates a vertex having an ID specified by the argument
virtual ~Vertex ()
int id () const
 returns the id
virtual void setId (int newId)
const EdgeSet & edges () const
 returns the set of hyper-edges that are leaving/entering in this vertex
EdgeSet & edges ()
 returns the set of hyper-edges that are leaving/entering in this vertex
virtual HyperGraphElementType elementType () const
Public Member Functions inherited from g2o::HyperGraph::HyperGraphElement
virtual ~HyperGraphElement ()

Protected Attributes

int _id
EdgeSet _edges

Detailed Description

abstract Vertex, your types must derive from that one

Definition at line 148 of file hyper_graph.h.

Constructor & Destructor Documentation

◆ Vertex()

g2o::HyperGraph::Vertex::Vertex ( int id = InvalidId)
explicit

creates a vertex having an ID specified by the argument

Definition at line 46 of file hyper_graph.cpp.

References _id, and id().

◆ ~Vertex()

g2o::HyperGraph::Vertex::~Vertex ( )
virtual

Reimplemented in g2o::OptimizableGraph::Vertex.

Definition at line 48 of file hyper_graph.cpp.

Member Function Documentation

◆ edges() [1/2]

EdgeSet & g2o::HyperGraph::Vertex::edges ( )
inline

returns the set of hyper-edges that are leaving/entering in this vertex

Definition at line 159 of file hyper_graph.h.

References _edges.

◆ edges() [2/2]

◆ elementType()

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

returns the type of the graph element, see HyperGraphElementType

Implements g2o::HyperGraph::HyperGraphElement.

Definition at line 160 of file hyper_graph.h.

References HGET_VERTEX.

◆ id()

◆ setId()

virtual void g2o::HyperGraph::Vertex::setId ( int newId)
inlinevirtual

Reimplemented in g2o::OptimizableGraph::Vertex.

Definition at line 155 of file hyper_graph.h.

References _id.

Referenced by g2o::addOdometryCalibLinksDifferential(), and g2o::HyperGraph::changeId().

Member Data Documentation

◆ _edges

EdgeSet g2o::HyperGraph::Vertex::_edges
protected

◆ _id

int g2o::HyperGraph::Vertex::_id
protected

Definition at line 163 of file hyper_graph.h.

Referenced by id(), setId(), g2o::OptimizableGraph::Vertex::setId(), and Vertex().


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