g2o
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 More...
 
virtual ~Vertex ()
 
int id () const
 returns the id More...
 
virtual void setId (int newId)
 
const EdgeSetedges () const
 returns the set of hyper-edges that are leaving/entering in this vertex More...
 
EdgeSetedges ()
 returns the set of hyper-edges that are leaving/entering in this vertex More...
 
virtual HyperGraphElementType elementType () const
 
- Public Member Functions inherited from g2o::HyperGraph::HyperGraphElement
virtual ~HyperGraphElement ()
 
HyperGraphElementclone () const
 

Protected Attributes

int _id
 
EdgeSet _edges
 

Detailed Description

abstract Vertex, your types must derive from that one

Definition at line 142 of file hyper_graph.h.

Constructor & Destructor Documentation

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

creates a vertex having an ID specified by the argument

Definition at line 43 of file hyper_graph.cpp.

43  : _id(id)
44  {
45  }
g2o::HyperGraph::Vertex::~Vertex ( )
virtual

Reimplemented in g2o::OptimizableGraph::Vertex.

Definition at line 47 of file hyper_graph.cpp.

48  {
49  }

Member Function Documentation

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

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

Definition at line 153 of file hyper_graph.h.

153 {return _edges;}
virtual HyperGraphElementType g2o::HyperGraph::Vertex::elementType ( ) const
inlinevirtual

returns the type of the graph element, see HyperGraphElementType

Implements g2o::HyperGraph::HyperGraphElement.

Definition at line 154 of file hyper_graph.h.

References HGET_VERTEX.

154 { return HGET_VERTEX;}
HGET_VERTEX
Definition: hyper_graph.h:63
int g2o::HyperGraph::Vertex::id ( ) const
inline
virtual void g2o::HyperGraph::Vertex::setId ( int  newId)
inlinevirtual

Reimplemented in g2o::OptimizableGraph::Vertex.

Definition at line 149 of file hyper_graph.h.

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

149 { _id=newId; }

Member Data Documentation

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

Definition at line 157 of file hyper_graph.h.

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

Definition at line 156 of file hyper_graph.h.


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