Main MRPT website > C++ reference for MRPT 1.5.5
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
mrpt::hmtslam::THypothesisIDSet Class Reference

Detailed Description

A set of hypothesis IDs, used for arcs and nodes in multi-hypothesis hybrid maps.

See Also
THypothesisID, CHierarchicalMHMap

Definition at line 78 of file HMT_SLAM_common.h.

#include <mrpt/hmtslam/HMT_SLAM_common.h>

Inheritance diagram for mrpt::hmtslam::THypothesisIDSet:
Inheritance graph

Public Member Functions

voidoperator new (size_t size)
 
voidoperator new[] (size_t size)
 
void operator delete (void *ptr) throw ()
 
void operator delete[] (void *ptr) throw ()
 
void operator delete (void *memory, void *ptr) throw ()
 
voidoperator new (size_t size, const std::nothrow_t &) throw ()
 
void operator delete (void *ptr, const std::nothrow_t &) throw ()
 
 THypothesisIDSet ()
 Default constructor. More...
 
 THypothesisIDSet (const THypothesisID &val)
 Constructor with one initial element. More...
 
virtual ~THypothesisIDSet ()
 
bool has (const THypothesisID &val) const
 Returns true if the hypothesis is into the set. More...
 
void debugDump () const
 Dump to console. More...
 
virtual mxArraywriteToMatlab () const
 Introduces a pure virtual method responsible for writing to a mxArray Matlab object, typically a MATLAB struct whose contents are documented in each derived class. More...
 
mrpt::utils::CObjectPtr duplicateGetSmartPtr () const
 Returns a copy of the object, indepently of its class, as a smart pointer (the newly created object will exist as long as any copy of this smart pointer). More...
 
CObjectclone () const
 Cloning interface for smart pointers. More...
 

Static Public Member Functions

static voidoperator new (size_t size, void *ptr)
 

Public Attributes

keys
 STL member. More...
 

Static Public Attributes

static const
mrpt::utils::TRuntimeClassId 
classCObject
 
RTTI stuff
static const
mrpt::utils::TRuntimeClassId 
classCSerializable
 

Protected Member Functions

CSerializable virtual methods
void writeToStream (mrpt::utils::CStream &out, int *getVersion) const
 Introduces a pure virtual method responsible for writing to a CStream. More...
 
void readFromStream (mrpt::utils::CStream &in, int version)
 Introduces a pure virtual method responsible for loading from a CStream This can not be used directly be users, instead use "stream >> object;" for reading it from a stream or "stream >> object_ptr;" if the class is unknown apriori. More...
 

RTTI stuff

typedef THypothesisIDSetPtr Ptr
 
typedef THypothesisIDSetPtr ConstPtr
 
static mrpt::utils::CLASSINIT _init_THypothesisIDSet
 
static mrpt::utils::TRuntimeClassId classTHypothesisIDSet
 
static const
mrpt::utils::TRuntimeClassId
classinfo
 
static const
mrpt::utils::TRuntimeClassId
_GetBaseClass ()
 
virtual const
mrpt::utils::TRuntimeClassId
GetRuntimeClass () const
 Returns information about the class of an object in runtime. More...
 
virtual mrpt::utils::CObjectduplicate () const
 Returns a copy of the object, indepently of its class. More...
 
static mrpt::utils::CObjectCreateObject ()
 
static THypothesisIDSetPtr Create ()
 

Member Typedef Documentation

typedef THypothesisIDSetPtr mrpt::hmtslam::THypothesisIDSet::ConstPtr

Definition at line 81 of file HMT_SLAM_common.h.

typedef THypothesisIDSetPtr mrpt::hmtslam::THypothesisIDSet::Ptr

A typedef for the associated smart pointer

Definition at line 81 of file HMT_SLAM_common.h.

Constructor & Destructor Documentation

mrpt::hmtslam::THypothesisIDSet::THypothesisIDSet ( )
inline

Default constructor.

Definition at line 86 of file HMT_SLAM_common.h.

mrpt::hmtslam::THypothesisIDSet::THypothesisIDSet ( const THypothesisID val)
inline

Constructor with one initial element.

Definition at line 92 of file HMT_SLAM_common.h.

virtual mrpt::hmtslam::THypothesisIDSet::~THypothesisIDSet ( )
inlinevirtual

Definition at line 97 of file HMT_SLAM_common.h.

Member Function Documentation

static const mrpt::utils::TRuntimeClassId* mrpt::hmtslam::THypothesisIDSet::_GetBaseClass ( )
staticprotected
CObject* mrpt::utils::CObject::clone ( ) const
inlineinherited

Cloning interface for smart pointers.

Definition at line 143 of file CObject.h.

static THypothesisIDSetPtr mrpt::hmtslam::THypothesisIDSet::Create ( )
static
static mrpt::utils::CObject* mrpt::hmtslam::THypothesisIDSet::CreateObject ( )
static
void mrpt::hmtslam::THypothesisIDSet::debugDump ( ) const

Dump to console.

virtual mrpt::utils::CObject* mrpt::hmtslam::THypothesisIDSet::duplicate ( ) const
virtual

Returns a copy of the object, indepently of its class.

Implements mrpt::utils::CObject.

mrpt::utils::CObjectPtr mrpt::utils::CObject::duplicateGetSmartPtr ( ) const
inlineinherited

Returns a copy of the object, indepently of its class, as a smart pointer (the newly created object will exist as long as any copy of this smart pointer).

Definition at line 140 of file CObject.h.

Referenced by mrpt::obs::CRawlog::addActions(), mrpt::slam::CIncrementalMapPartitioner::addMapFrame(), and mrpt::obs::CRawlog::addObservations().

virtual const mrpt::utils::TRuntimeClassId* mrpt::hmtslam::THypothesisIDSet::GetRuntimeClass ( ) const
virtual

Returns information about the class of an object in runtime.

Reimplemented from mrpt::utils::CSerializable.

bool mrpt::hmtslam::THypothesisIDSet::has ( const THypothesisID val) const
inline

Returns true if the hypothesis is into the set.

Definition at line 103 of file HMT_SLAM_common.h.

References COMMON_TOPOLOG_HYP, and mrpt::utils::find().

void mrpt::hmtslam::THypothesisIDSet::operator delete ( void ptr)
throw (
)
inline

Definition at line 81 of file HMT_SLAM_common.h.

void mrpt::hmtslam::THypothesisIDSet::operator delete ( void memory,
void ptr 
)
throw (
)
inline

Definition at line 81 of file HMT_SLAM_common.h.

void mrpt::hmtslam::THypothesisIDSet::operator delete ( void ptr,
const std::nothrow_t &   
)
throw (
)
inline

Definition at line 81 of file HMT_SLAM_common.h.

void mrpt::hmtslam::THypothesisIDSet::operator delete[] ( void ptr)
throw (
)
inline

Definition at line 81 of file HMT_SLAM_common.h.

void* mrpt::hmtslam::THypothesisIDSet::operator new ( size_t  size)
inline

Definition at line 81 of file HMT_SLAM_common.h.

static void* mrpt::hmtslam::THypothesisIDSet::operator new ( size_t  size,
void ptr 
)
inlinestatic

Definition at line 81 of file HMT_SLAM_common.h.

void* mrpt::hmtslam::THypothesisIDSet::operator new ( size_t  size,
const std::nothrow_t &   
)
throw (
)
inline

Definition at line 81 of file HMT_SLAM_common.h.

void* mrpt::hmtslam::THypothesisIDSet::operator new[] ( size_t  size)
inline

Definition at line 81 of file HMT_SLAM_common.h.

void THypothesisIDSet::readFromStream ( mrpt::utils::CStream in,
int  version 
)
protectedvirtual

Introduces a pure virtual method responsible for loading from a CStream This can not be used directly be users, instead use "stream >> object;" for reading it from a stream or "stream >> object_ptr;" if the class is unknown apriori.

Parameters
inThe input binary stream where the object data must read from.
versionThe version of the object stored in the stream: use this version number in your code to know how to read the incoming data.
Exceptions
std::exceptionOn any error, see CStream::ReadBuffer
See Also
CStream

Implements mrpt::utils::CSerializable.

Definition at line 42 of file THypothesisIDSet.cpp.

References mrpt::utils::clear(), and MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION.

virtual mxArray* mrpt::utils::CSerializable::writeToMatlab ( ) const
inlinevirtualinherited

Introduces a pure virtual method responsible for writing to a mxArray Matlab object, typically a MATLAB struct whose contents are documented in each derived class.

Returns
A new mxArray (caller is responsible of memory freeing) or NULL is class does not support conversion to MATLAB.

Definition at line 79 of file CSerializable.h.

void THypothesisIDSet::writeToStream ( mrpt::utils::CStream out,
int getVersion 
) const
protectedvirtual

Introduces a pure virtual method responsible for writing to a CStream.

This can not be used directly be users, instead use "stream << object;" for writing it to a stream.

Parameters
outThe output binary stream where object must be dumped.
getVersionIf NULL, the object must be dumped. If not, only the version of the object dump must be returned in this pointer. This enables the versioning of objects dumping and backward compatibility with previously stored data.
Exceptions
std::exceptionOn any error, see CStream::WriteBuffer
See Also
CStream

Implements mrpt::utils::CSerializable.

Definition at line 24 of file THypothesisIDSet.cpp.

References begin().

Member Data Documentation

mrpt::utils::CLASSINIT mrpt::hmtslam::THypothesisIDSet::_init_THypothesisIDSet
staticprotected

Definition at line 81 of file HMT_SLAM_common.h.

const mrpt::utils::TRuntimeClassId mrpt::utils::CObject::classCObject
staticinherited

Definition at line 128 of file CObject.h.

const mrpt::utils::TRuntimeClassId mrpt::utils::CSerializable::classCSerializable
staticinherited

Definition at line 42 of file CSerializable.h.

const mrpt::utils::TRuntimeClassId* mrpt::hmtslam::THypothesisIDSet::classinfo
static

Definition at line 81 of file HMT_SLAM_common.h.

mrpt::utils::TRuntimeClassId mrpt::hmtslam::THypothesisIDSet::classTHypothesisIDSet
static

Definition at line 81 of file HMT_SLAM_common.h.

K std::set< K >::keys
inherited

STL member.




Page generated by Doxygen 1.8.6 for MRPT 1.5.5 Git: e06b63d Fri Dec 1 14:41:11 2017 +0100 at sáb dic 2 13:00:21 CET 2017