Public Types | Public Member Functions | Protected Attributes | List of all members
g2o::ParameterContainer Class Reference

map id to parameters More...

#include <parameter_container.h>

Inheritance diagram for g2o::ParameterContainer:
Inheritance graph
[legend]

Public Types

typedef std::map< int, Parameter * > BaseClass
 

Public Member Functions

bool addParameter (Parameter *p)
 add parameter to the container More...
 
void clear ()
 
ParameterdetachParameter (int id)
 remove a parameter from the container, i.e., the user now owns the pointer More...
 
ParametergetParameter (int id)
 return a parameter based on its ID More...
 
bool isMainStorage () const
 
 ParameterContainer (bool isMainStorage_=true)
 
virtual bool read (std::istream &is, const std::map< std::string, std::string > *renamedMap=0)
 read parameters from a stream More...
 
virtual bool write (std::ostream &os) const
 write the data to a stream More...
 
virtual ~ParameterContainer ()
 

Protected Attributes

bool _isMainStorage
 

Detailed Description

map id to parameters

Definition at line 41 of file parameter_container.h.

Member Typedef Documentation

Definition at line 44 of file parameter_container.h.

Constructor & Destructor Documentation

g2o::ParameterContainer::ParameterContainer ( bool  isMainStorage_ = true)

create a container for the parameters.

Parameters
isMainStorage_pointers to the parameters are owned by this container, i.e., freed in its constructor

Definition at line 42 of file parameter_container.cpp.

g2o::ParameterContainer::~ParameterContainer ( )
virtual

Definition at line 56 of file parameter_container.cpp.

Member Function Documentation

bool g2o::ParameterContainer::addParameter ( Parameter p)

add parameter to the container

Definition at line 60 of file parameter_container.cpp.

void g2o::ParameterContainer::clear ( )

Definition at line 47 of file parameter_container.cpp.

Parameter * g2o::ParameterContainer::detachParameter ( int  id)

remove a parameter from the container, i.e., the user now owns the pointer

Definition at line 77 of file parameter_container.cpp.

Parameter * g2o::ParameterContainer::getParameter ( int  id)

return a parameter based on its ID

Definition at line 70 of file parameter_container.cpp.

bool g2o::ParameterContainer::isMainStorage ( ) const
inline

Definition at line 62 of file parameter_container.h.

bool g2o::ParameterContainer::read ( std::istream &  is,
const std::map< std::string, std::string > *  renamedMap = 0 
)
virtual

read parameters from a stream

Definition at line 97 of file parameter_container.cpp.

bool g2o::ParameterContainer::write ( std::ostream &  os) const
virtual

write the data to a stream

Definition at line 86 of file parameter_container.cpp.

Member Data Documentation

bool g2o::ParameterContainer::_isMainStorage
protected

Definition at line 69 of file parameter_container.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