g2o
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for g2o::HyperGraph::Vertex:
Collaboration graph
[legend]

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 EdgeSetedges () const
 returns the set of hyper-edges that are leaving/entering in this vertex
 
EdgeSetedges ()
 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.

46: _id(id) {}

◆ ~Vertex()

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

Reimplemented in g2o::OptimizableGraph::Vertex.

Definition at line 48 of file hyper_graph.cpp.

48{}

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.

159{ return _edges; }

◆ edges() [2/2]

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

◆ 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.

160{ return HGET_VERTEX; }
HGET_VERTEX
Definition hyper_graph.h:59

References HGET_VERTEX.

◆ id()

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

◆ setId()

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

Reimplemented in g2o::OptimizableGraph::Vertex.

Definition at line 155 of file hyper_graph.h.

155{ _id = newId; }

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

Member Data Documentation

◆ _edges

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

Definition at line 164 of file hyper_graph.h.

◆ _id

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

Definition at line 163 of file hyper_graph.h.


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