Main MRPT website > C++ reference
MRPT logo
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
mrpt::utils Namespace Reference

Detailed Description

Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.

Namespaces

 detail
 
 metaprogramming
 A set of utility objects for metaprogramming with STL algorithms.
 
 net
 A set of useful routines for networking.
 

Classes

class  bimap
 A bidirectional version of std::map, declared as bimap<KEY,VALUE> and which actually contains two std::map's, one for keys and another for values. More...
 
class  CCanvas
 This virtual class defines the interface of any object accepting drawing primitives on it. More...
 
class  CClientTCPSocket
 A TCP socket that can be connected to a TCP server, implementing MRPT's CStream interface for passing objects as well as generic read/write methods. More...
 
class  CConfigFile
 This class allows loading and storing values and vectors of different types from ".ini" files easily. More...
 
class  CConfigFileBase
 This class allows loading and storing values and vectors of different types from a configuration text, which can be implemented as a ".ini" file, a memory-stored string, etc... More...
 
class  CConfigFileMemory
 This class implements a config file-like interface over a memory-stored string list. More...
 
class  CConsoleRedirector
 By creating an object of this class, all the output to std::cout (and std::cerr) will be redirected to a text file, and optionally also shown on the console. More...
 
class  CDebugOutputCapable
 This base class provides a common printf-like method to send debug information to std::cout, with the purpose of allowing its redirection to other streams if desired. More...
 
class  CDynamicGrid
 A 2D grid of dynamic size which stores any kind of data at each cell. More...
 
class  CEnhancedMetaFile
 This class represents a Windows Enhanced Meta File (EMF) for generating and saving graphics. More...
 
class  CExceptionEOF
 Used in mrpt::utils::CStream. More...
 
class  CExceptionExternalImageNotFound
 Used in mrpt::utils::CImage. More...
 
class  CFileGZInputStream
 Transparently opens a compressed "gz" file and reads uncompressed data from it. More...
 
class  CFileInputStream
 This CStream derived class allow using a file as a read-only, binary stream. More...
 
class  CFileOutputStream
 This CStream derived class allow using a file as a write-only, binary stream. More...
 
class  CFileStream
 This CStream derived class allow using a file as a read/write binary stream, creating it if the file didn't exist. More...
 
struct  ci_less
 A case-insensitive comparator struct for usage within STL containers, eg: map<string,string,ci_less> More...
 
class  CImage
 A class for storing images as grayscale or RGB bitmaps. More...
 
struct  CImagePtr
 
class  circular_buffer
 A circular buffer of fixed size (defined at construction-time), implemented with a std::vector as the underlying storage. More...
 
struct  CLASSINIT
 Auxiliary structure used for CObject-based RTTI. More...
 
class  CListOfClasses
 A list (actually based on a std::set) of MRPT classes, capable of keeping any class registered by the mechanism of CSerializable classes. More...
 
class  CLoadableOptions
 This is a virtual base class for sets of options than can be loaded from and/or saved to configuration plain-text files. More...
 
class  CLog
 A decorator of CStringList special for keeping logs. More...
 
class  CMappedImage
 This class encapsulates a MRPT Image and allows the sampling of individual pixels with sub-pixel accuracy and with a change of coordinates (eg, meters). More...
 
class  CMemoryChunk
 A memory buffer (implements CStream) which can be itself serialized. More...
 
struct  CMemoryChunkPtr
 
class  CMemoryStream
 This CStream derived class allow using a memory buffer as a CStream. More...
 
class  CMessage
 A class that contain generic messages, that can be sent and received from a "CClientTCPSocket" object. More...
 
class  CMHPropertiesValuesList
 An arbitrary list of "annotations", or named attributes, each being an instance of any CSerializable object (Multi-hypotheses version). More...
 
struct  CMHPropertiesValuesListPtr
 
class  CMRPTException
 The base for MRPT-especific exceptions. More...
 
class  CObject
 The virtual base class of all MRPT classes with a unified RTTI system. More...
 
class  CObjectPtr
 A smart pointer to a CObject object. More...
 
class  CObservable
 Inherit from this class for those objects capable of being observed by a CObserver class. More...
 
class  CObserver
 Inherit from this class to get notified about events from any CObservable object after subscribing to it. More...
 
struct  copiable_NULL_ptr
 A wrapper class for pointers that, if copied with the "=" operator, should be set to NULL in the new copy. More...
 
struct  copiable_NULL_ptr_basic
 A wrapper class for pointers that, if copied with the "=" operator, should be set to NULL in the copy. More...
 
class  CProbabilityDensityFunction
 A generic template for probability density distributions (PDFs). More...
 
struct  CProfilerProxy
 
class  CPropertiesValuesList
 An arbitrary list of "annotations", or named attributes, each being an instance of any CSerializable object. More...
 
struct  CPropertiesValuesListPtr
 
class  CReferencedMemBlock
 Represents a memory block (via "void*") that can be shared between several objects through copy operator (=). More...
 
class  CRobotSimulator
 This class can be used to simulate the kinematics and dynamics of a differential driven planar mobile robot, including odometry errors and dynamics limitations. More...
 
class  CSerializable
 The virtual base class which provides a unified interface for all persistent objects in MRPT. More...
 
struct  CSerializablePtr
 
class  CServerTCPSocket
 A TCP socket that can be wait for client connections to enter. More...
 
class  CSimpleDatabase
 This class impements a very simple database system. More...
 
struct  CSimpleDatabasePtr
 
class  CSimpleDatabaseTable
 This class implements the tables of databases. More...
 
struct  CSimpleDatabaseTablePtr
 
class  CStartUpClassesRegister
 A helper class that automatically register at start up a custom function to register all the CObject-derived classes in a given MRPT library or user application. More...
 
class  CStdOutStream
 This CStdOutStream derived class allow printing to standard out, normally the console text output. More...
 
class  CStream
 This base class is used to provide a unified interface to files,memory buffers,..Please see the derived classes. More...
 
class  CStringList
 A class for storing a list of text lines. More...
 
struct  CStringListPtr
 
class  CTextFileLinesParser
 A class for parsing text files, returning each non-empty and non-comment line, along its line number. More...
 
class  CThreadSafeQueue
 A thread-safe template queue for object passing between threads; for a template argument of T, the objects being passed in the queue are "T*". More...
 
class  CTicTac
 This class implements a high-performance stopwatch. More...
 
class  CTimeLogger
 A versatile "profiler" that logs the time spent within each pair of calls to enter(X)-leave(X), among other stats. More...
 
struct  CTimeLoggerEntry
 A safe way to call enter() and leave() of a mrpt::utils::CTimeLogger upon construction and destruction of this auxiliary object, making sure that leave() will be called upon exceptions, etc. More...
 
class  CTypeSelector
 This class represents a std::string derived class which is also CSerializable. More...
 
struct  CTypeSelectorPtr
 
class  CUncopiable
 The base class of classes that cannot be copied: compile-time errors will be issued on any copy operation. More...
 
struct  ignored_copy_ptr
 A wrapper class for pointers whose copy operations from other objects of the same type are ignored, that is, doing "a=b;" has no effect neiter on "a" or "b". More...
 
class  list_searchable
 This class implements a STL container with features of both, a std::set and a std::list. More...
 
class  map_as_vector
 A STL-like container which looks and behaves (almost exactly) like a std::map<> but is implemented as a linear std::vector<> indexed by KEY. More...
 
struct  map_traits_map_as_vector
 Traits for using a mrpt::utils::map_as_vector<> (dense, fastest representation) More...
 
struct  map_traits_stdmap
 Traits for using a std::map<> (sparse representation) More...
 
class  mrptEvent
 The basic event type for the observer-observable pattern in MRPT. More...
 
class  mrptEventOnDestroy
 An event sent by any CObservable object (automatically) just before being destroyed and telling its observers to unsubscribe. More...
 
struct  non_copiable_ptr
 A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtime if a copy is attempted. More...
 
struct  non_copiable_ptr_basic
 A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtime if a copy is attempted. More...
 
class  PLY_Exporter
 A virtual base class that implements the capability of exporting 3D point clouds and faces to a file in the Stanford PLY format. More...
 
class  PLY_Importer
 A virtual base class that implements the capability of importing 3D point clouds and faces from a file in the Stanford PLY format. More...
 
class  PointCloudAdapter
 An adapter to different kinds of point cloud object. More...
 
class  PointCloudAdapter< CObservation3DRangeScan >
 Specialization mrpt::utils::PointCloudAdapter<CObservation3DRangeScan> More...
 
class  PointCloudAdapter< mrpt::opengl::CPointCloud >
 Specialization mrpt::utils::PointCloudAdapter<mrpt::opengl::CPointCloud> More...
 
class  PointCloudAdapter< mrpt::opengl::CPointCloudColoured >
 Specialization mrpt::utils::PointCloudAdapter<mrpt::opengl::CPointCloudColoured> More...
 
class  PointCloudAdapter< mrpt::slam::CColouredPointsMap >
 Specialization mrpt::utils::PointCloudAdapter<mrpt::slam::CColouredPointsMap> More...
 
class  PointCloudAdapter< mrpt::slam::CPointsMap >
 Specialization mrpt::utils::PointCloudAdapter<mrpt::slam::CPointsMap> More...
 
class  PointCloudAdapter< mrpt::slam::CSimplePointsMap >
 Specialization mrpt::utils::PointCloudAdapter<mrpt::slam::CSimplePointsMap> More...
 
class  PointCloudAdapter< mrpt::slam::CWeightedPointsMap >
 Specialization mrpt::utils::PointCloudAdapter<mrpt::slam::CWeightedPointsMap> More...
 
class  PointCloudAdapter< pcl::PointCloud< pcl::PointXYZ > >
 Specialization mrpt::utils::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZ> > for an XYZ point cloud (without RGB) More...
 
class  PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGB > >
 Specialization mrpt::utils::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZRGB> > for an XYZ point cloud with RGB. More...
 
class  PointCloudAdapter< pcl::PointCloud< pcl::PointXYZRGBA > >
 Specialization mrpt::utils::PointCloudAdapter<pcl::PointCloud<pcl::PointXYZRGBA> > for an XYZ point cloud with RGB. More...
 
struct  safe_ptr
 A wrapper class for pointers that can be safely copied with "=" operator without problems. More...
 
struct  safe_ptr_basic
 A wrapper class for pointers that can be safely copied with "=" operator without problems. More...
 
class  TCamera
 Structure to hold the parameters of a pinhole camera model. More...
 
struct  TCameraPtr
 
struct  TColor
 A RGB color - 8bit. More...
 
struct  TColorf
 A RGB color - floats in the range [0,1]. More...
 
struct  TEnumType
 A helper class that can convert an enum value into its textual representation, and viceversa. More...
 
struct  TEnumTypeFiller
 Only specializations of this class are defined for each enum type of interest. More...
 
struct  TEnumTypeFiller< bayes::TKFMethod >
 
struct  TEnumTypeFiller< hwdrivers::CKinect::TVideoChannel >
 
struct  TEnumTypeFiller< mrpt::srba::TCovarianceRecoveryPolicy >
 
struct  TEnumTypeFiller< mrpt::srba::TEdgeCreationPolicy >
 
struct  TEnumTypeFiller< poses::CPose3DInterpolator::TInterpolatorMethod >
 
struct  TEnumTypeFiller< reactivenav::CHolonomicND::TSituations >
 
struct  TEnumTypeFiller< reactivenav::THolonomicMethod >
 
struct  TEnumTypeFiller< slam::CGridMapAligner::TAlignerMethod >
 
struct  TEnumTypeFiller< slam::CHeightGridMap2D::TMapRepresentation >
 
struct  TEnumTypeFiller< slam::CMultiMetricMap::TOptions::TMapSelectionForLikelihood >
 
struct  TEnumTypeFiller< slam::CObservation3DRangeScan::TIntensityChannelID >
 
struct  TEnumTypeFiller< slam::CRandomFieldGridMap2D::TMapRepresentation >
 
struct  TEnumTypeFiller< slam::TDataAssociationMethod >
 
struct  TEnumTypeFiller< slam::TDataAssociationMetric >
 
struct  TMatchingPair
 A structure for holding correspondences between two sets of points or points-like entities in 2D or 3D. More...
 
class  TMatchingPairList
 A list of TMatchingPair. More...
 
struct  TParameters
 For usage when passing a dynamic number of (numeric) arguments to a function, by name. More...
 
struct  TPixelCoord
 A pair (x,y) of pixel coordinates (integer resolution). More...
 
struct  TPixelCoordf
 A pair (x,y) of pixel coordinates (subpixel resolution). More...
 
struct  TPropertyValueIDTriplet
 Internal triplet for each property in utils::CMHPropertiesValuesList. More...
 
struct  TRuntimeClassId
 A structure that holds runtime class type information. More...
 
class  TStereoCamera
 Structure to hold the parameters of a pinhole stereo camera model. More...
 
struct  TStereoCameraPtr
 
struct  TTypeName
 A template to obtain the type of its argument as a string at compile time. More...
 
struct  TTypeName< mrpt::graphs::CNetworkOfPoses< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS > >
 
struct  TTypeName< mrpt::math::CArrayDouble< N > >
 
struct  TTypeName< mrpt::math::CArrayFloat< N > >
 
struct  TTypeName< mrpt::math::CArrayNumeric< T, N > >
 
struct  TTypeName< mrpt::math::CMatrixFixedNumeric< T, N, M > >
 
struct  TTypeName< mrpt::math::CMatrixTemplateNumeric< T > >
 
struct  TTypeName< mrpt::opengl::CLight >
 
struct  TTypeName< std::pair< T1, T2 > >
 

Typedefs

typedef CCanvas CMRPTCanvas
 Deprecated name. More...
 
typedef int TFileOpenModes
 File open modes are used in CFileStream Posible values are: More...
 
typedef int TImageChannels
 For use in mrpt::utils::CImage. More...
 
typedef CImage CMRPTImage
 Deprecated name (but don't remove this typedef to enable class registration for loading ancient datasets) More...
 
typedef CThreadSafeQueue< CMessageCMessageQueue
 A thread-safe class for message passing between threads. More...
 
typedef safe_ptr_basic< void > void_ptr
 
typedef non_copiable_ptr_basic< void > void_ptr_noncopy
 
typedef TMatchingPairTMatchingPairPtr
 
typedef TParameters< double > TParametersDouble
 See the generic template mrpt::utils::TParameters. More...
 
typedef TParameters< std::string > TParametersString
 See the generic template mrpt::utils::TParameters. More...
 
typedef TPixelCoord TImageSize
 A type for image sizes. More...
 
typedef unsigned long POINTER_TYPE
 For performing type casting from a pointer to its numeric value. More...
 
typedef uint64_t TNodeID
 The type for node IDs in graphs of different types. More...
 
typedef std::pair< TNodeID, TNodeIDTPairNodeIDs
 A pair of node IDs. More...
 

Enumerations

enum  { fomRead = 1, fomWrite = 2, fomAppend = 4 }
 
enum  TInterpolationMethod { IMG_INTERP_NN = 0, IMG_INTERP_LINEAR =1, IMG_INTERP_CUBIC =2, IMG_INTERP_AREA =3 }
 Interpolation methods for images. More...
 
enum  TConstructorFlags_CImage { UNINITIALIZED_IMAGE = 0, FAST_REF_OR_CONVERT_TO_GRAY = 1 }
 For usage in one of the CImage constructors. More...
 
enum  TColormap { cmGRAYSCALE = 0, cmJET }
 Different colormaps. More...
 

Functions

template<class T >
square (const T x)
 Inline function for the square of a number. More...
 
double DEG2RAD (const double x)
 Degrees to radians. More...
 
float DEG2RAD (const float x)
 Degrees to radians. More...
 
float DEG2RAD (const int x)
 Degrees to radians. More...
 
double RAD2DEG (const double x)
 Radians to degrees. More...
 
float RAD2DEG (const float x)
 Radians to degrees. More...
 
template<typename T >
int sign (T x)
 Returns the sign of X as "1" or "-1". More...
 
template<typename T >
int signWithZero (T x)
 Returns the sign of X as "0", "1" or "-1". More...
 
template<typename T >
int round (const T value)
 Returns the closer integer (int) to x. More...
 
template<typename T >
long round_long (const T value)
 Returns the closer integer (long) to x. More...
 
template<typename T >
abs_diff (const T a, const T b)
 Efficient and portable evaluation of the absolute difference of two unsigned integer values (but will also work for signed and floating point types) More...
 
template<typename T >
const T min3 (const T &A, const T &B, const T &C)
 
template<typename T >
const T max3 (const T &A, const T &B, const T &C)
 
template<typename T >
int fix (T x)
 Rounds toward zero. More...
 
template<class R , class P >
R * getAs (stlplus::smart_ptr_clone< P > &o)
 Utility to get a cast'ed pointer from a smart pointer. More...
 
template<class R , class P >
const R * getAs (const stlplus::smart_ptr_clone< P > &o)
 Utility to get a cast'ed pointer from a smart pointer. More...
 
template<class T >
void reverseBytesInPlace (T &v_in_out)
 Reverse the order of the bytes of a given type (useful for transforming btw little/big endian) More...
 
template<class T >
void reverseBytes (const T &v_in, T &v_out)
 Reverse the order of the bytes of a given type (useful for transforming btw little/big endian) More...
 
template<typename T , typename K >
void keep_min (T &var, const K test_val)
 If the second argument is below the first one, set the first argument to this lower value. More...
 
template<typename T , typename K >
void keep_max (T &var, const K test_val)
 If the second argument is above the first one, set the first argument to this higher value. More...
 
template<class T >
void delete_safe (T *&ptr)
 Calls "delete" to free an object only if the pointer is not NULL, then set the pointer to NULL. More...
 
template<class T >
void vector_strong_clear (std::vector< T > &v)
 Like calling a std::vector<>'s clear() method, but really forcing deallocating the memory. More...
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, CImagePtr &pObj)
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, CMemoryChunkPtr &pObj)
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, CMHPropertiesValuesListPtr &pObj)
 
void BASE_IMPEXP hsv2rgb (float h, float s, float v, float &r, float &g, float &b)
 Transform HSV color components to RGB, all of them in the range [0,1]. More...
 
void BASE_IMPEXP rgb2hsv (float r, float g, float b, float &h, float &s, float &v)
 Transform RGB color components to HSV, all of them in the range [0,1]. More...
 
void BASE_IMPEXP colormap (const TColormap &color_map, const float color_index, float &r, float &g, float &b)
 Transform a float number in the range [0,1] into RGB components. More...
 
void BASE_IMPEXP jet2rgb (const float color_index, float &r, float &g, float &b)
 Computes the RGB color components (range [0,1]) for the corresponding color index in the range [0,1] using the MATLAB 'jet' colormap. More...
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, CPropertiesValuesListPtr &pObj)
 
uint16_t BASE_IMPEXP compute_CRC16 (const std::vector< uint8_t > &data, const uint16_t gen_pol=0x8005)
 Computes the CRC16 checksum of a block of data. More...
 
uint16_t BASE_IMPEXP compute_CRC16 (const uint8_t *data, const size_t len, const uint16_t gen_pol=0x8005)
 Computes the CRC16 checksum of a block of data. More...
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, CSimpleDatabasePtr &pObj)
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, CSimpleDatabaseTablePtr &pObj)
 
CStream BASE_IMPEXPoperator<< (CStream &s, const char *a)
 
CStream BASE_IMPEXPoperator<< (CStream &s, const std::string &str)
 
CStream BASE_IMPEXPoperator<< (CStream &s, const vector_float &a)
 
CStream BASE_IMPEXPoperator<< (CStream &s, const vector_double &a)
 
CStream BASE_IMPEXPoperator<< (CStream &, const vector_int &a)
 
CStream BASE_IMPEXPoperator<< (CStream &, const vector_uint &a)
 
CStream BASE_IMPEXPoperator<< (CStream &, const vector_word &a)
 
CStream BASE_IMPEXPoperator<< (CStream &, const vector_signed_word &a)
 
CStream BASE_IMPEXPoperator<< (CStream &, const vector_long &a)
 
CStream BASE_IMPEXPoperator<< (CStream &, const vector_byte &a)
 
CStream BASE_IMPEXPoperator<< (CStream &, const vector_signed_byte &a)
 
CStream BASE_IMPEXPoperator<< (CStream &, const vector_bool &a)
 
CStream BASE_IMPEXPoperator<< (CStream &, const std::vector< std::string > &)
 
CStream BASE_IMPEXPoperator<< (CStream &, const std::vector< size_t > &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, char *a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, std::string &str)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_double &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_float &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_int &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_uint &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_word &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_signed_word &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_long &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_byte &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_signed_byte &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, vector_bool &a)
 
CStream BASE_IMPEXPoperator>> (CStream &in, std::vector< std::string > &a)
 
CStream BASE_IMPEXPoperator>> (CStream &s, std::vector< float > &a)
 
CStream BASE_IMPEXPoperator>> (CStream &s, std::vector< double > &a)
 
CStream BASE_IMPEXPoperator<< (CStream &s, const std::vector< float > &a)
 
CStream BASE_IMPEXPoperator<< (CStream &s, const std::vector< double > &a)
 
CStream BASE_IMPEXPoperator>> (CStream &s, std::vector< size_t > &a)
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, CStringListPtr &pObj)
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, CTypeSelectorPtr &pObj)
 
std::string BASE_IMPEXP md5 (const std::string &str)
 Computes the md5 of a block of data. More...
 
std::string BASE_IMPEXP md5 (const mrpt::vector_byte &str)
 Computes the md5 of a block of data. More...
 
std::string BASE_IMPEXP md5 (const unsigned char *data, const size_t len)
 Computes the md5 of a block of data. More...
 
 MRPTSTL_SERIALIZABLE_SEQ_CONTAINER (std::vector) MRPTSTL_SERIALIZABLE_SEQ_CONTAINER(std
 Template method to serialize a STL pair. More...
 
template<class T1 , class T2 >
CStreamoperator>> (CStream &in, std::pair< T1, T2 > &obj)
 Template method to deserialize a STL pair. More...
 
template<class T , class CONTAINER >
size_t find_in_vector (const T &value, const CONTAINER &vect)
 Returns the index of the value "T" in the container "vect" (std::vector,std::deque,etc), or string::npos if not found. More...
 
template<class T >
std::list< T >::iterator erase_return_next (std::list< T > &cont, typename std::list< T >::iterator &it)
 Calls the standard "erase" method of a STL container, but also returns an iterator to the next element in the container (or end if none) More...
 
template<class K , class V >
std::map< K, V >::iterator erase_return_next (std::map< K, V > &cont, typename std::map< K, V >::iterator &it)
 
template<class K , class V >
std::multimap< K, V >::iterator erase_return_next (std::multimap< K, V > &cont, typename std::multimap< K, V >::iterator &it)
 
template<class T >
std::set< T >::iterator erase_return_next (std::set< T > &cont, typename std::set< T >::iterator &it)
 
template<typename T >
std::string sprintf_vector (const char *fmt, const std::vector< T > &V)
 Generates a string for a vector in the format [A,B,C,...] to std::cout, and the fmt string for each vector element. More...
 
template<typename Derived >
std::string sprintf_vector (const char *fmt, const Eigen::MatrixBase< Derived > &V)
 
template<typename T >
void printf_vector (const char *fmt, const std::vector< T > &V)
 Prints a vector in the format [A,B,C,...] to std::cout, and the fmt string for each vector element. More...
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, TCameraPtr &pObj)
 
bool BASE_IMPEXP operator== (const mrpt::utils::TCamera &a, const mrpt::utils::TCamera &b)
 
bool BASE_IMPEXP operator!= (const mrpt::utils::TCamera &a, const mrpt::utils::TCamera &b)
 
std::ostream BASE_IMPEXPoperator<< (std::ostream &o, const TColor &c)
 
CStream BASE_IMPEXPoperator<< (CStream &o, const TColor &c)
 
CStream BASE_IMPEXPoperator>> (CStream &i, TColor &c)
 
std::ostream BASE_IMPEXPoperator<< (std::ostream &o, const TColorf &c)
 
CStream BASE_IMPEXPoperator<< (CStream &o, const TColorf &c)
 
CStream BASE_IMPEXPoperator>> (CStream &i, TColorf &c)
 
bool BASE_IMPEXP operator< (const TMatchingPair &a, const TMatchingPair &b)
 A comparison operator, for sorting lists of TMatchingPair's, first order by this_idx, if equals, by other_idx. More...
 
bool BASE_IMPEXP operator== (const TMatchingPair &a, const TMatchingPair &b)
 A comparison operator. More...
 
bool BASE_IMPEXP operator== (const TMatchingPairList &a, const TMatchingPairList &b)
 A comparison operator. More...
 
std::ostream BASE_IMPEXPoperator<< (std::ostream &o, const TPixelCoordf &p)
 Prints TPixelCoordf as "(x,y)". More...
 
std::ostream BASE_IMPEXPoperator<< (std::ostream &o, const TPixelCoord &p)
 Prints TPixelCoord as "(x,y)". More...
 
::mrpt::utils::CStreamoperator>> (mrpt::utils::CStream &in, TStereoCameraPtr &pObj)
 
int BASE_IMPEXP run_unittests (int argc, char **argv)
 Run all the unit tests in mrpt::core classes. More...
 
Non-streaming serialization functions
std::string BASE_IMPEXP ObjectToString (const CSerializable *o)
 Used to pass MRPT objects into a CORBA-like object (strings). More...
 
void BASE_IMPEXP StringToObject (const std::string &str, CSerializablePtr &obj)
 Used to pass CORBA-like objects (strings) into a MRPT object. More...
 
void BASE_IMPEXP ObjectToOctetVector (const CSerializable *o, vector_byte &out_vector)
 Converts (serializes) an MRPT object into an array of bytes. More...
 
void BASE_IMPEXP OctetVectorToObject (const vector_byte &in_data, CSerializablePtr &obj)
 Converts back (de-serializes) a sequence of binary data into a MRPT object, without prior information about the object's class. More...
 
void BASE_IMPEXP ObjectToRawString (const CSerializable *o, std::string &out_str)
 Converts (serializes) an MRPT object into an array of bytes within a std::string, without codifying to avoid NULL characters. More...
 
void BASE_IMPEXP RawStringToObject (const std::string &in_str, CSerializablePtr &obj)
 Converts back (de-serializes) a sequence of binary data within a std::string into a MRPT object, without prior information about the object's class. More...
 

Variables

class BASE_IMPEXP CStream
 
class BASE_IMPEXP CSerializable
 
struct BASE_IMPEXP CSerializablePtr
 
class BASE_IMPEXP CMessage
 

RTTI classes and functions

typedef safe_ptr< TRuntimeClassIdTRuntimeClassIdPtr
 A wrapper class for a "TRuntimeClassId *", well-defined with respect to copy operators and constructors. More...
 
class BASE_IMPEXP CObject
 
void BASE_IMPEXP registerClass (const mrpt::utils::TRuntimeClassId *pNewClass)
 Register a class into the MRPT internal list of "CSerializable" descendents. More...
 
void BASE_IMPEXP registerClassCustomName (const char *customName, const TRuntimeClassId *pNewClass)
 Mostly for internal use within mrpt sources, to handle exceptional cases with multiple serialization names for backward compatibility (CMultiMetricMaps, CImage,...) More...
 
std::vector< const mrpt::utils::TRuntimeClassId * > BASE_IMPEXP getAllRegisteredClasses ()
 Returns a list with all the classes registered in the system through mrpt::utils::registerClass. More...
 
const TRuntimeClassId BASE_IMPEXPfindRegisteredClass (const std::string &className)
 Return info about a given class by its name, or NULL if the class is not registered. More...
 

Auxiliary stuff for the global profiler used in MRPT_START / MRPT_END macros.

CTimeLogger BASE_IMPEXP global_profiler
 
void BASE_IMPEXP global_profiler_enter (const char *func_name) MRPT_NO_THROWS
 
void BASE_IMPEXP global_profiler_leave (const char *func_name) MRPT_NO_THROWS
 

Typedef Documentation

◆ CMRPTCanvas

Deprecated name.

Definition at line 345 of file CCanvas.h.

◆ CMRPTImage

Deprecated name (but don't remove this typedef to enable class registration for loading ancient datasets)

Definition at line 985 of file CImage.h.

◆ POINTER_TYPE

typedef unsigned long mrpt::utils::POINTER_TYPE

For performing type casting from a pointer to its numeric value.

Definition at line 134 of file base/include/mrpt/utils/types.h.

◆ TFileOpenModes

File open modes are used in CFileStream Posible values are:

  • fomRead
  • fomWrite (creates the file if it didn't exist, otherwise truncates it).
  • fomAppend (creates the file if it didn't exist)

Definition at line 30 of file CFileStream.h.

◆ TImageChannels

For use in mrpt::utils::CImage.

Definition at line 38 of file CImage.h.

◆ TImageSize

A type for image sizes.

Definition at line 49 of file TPixelCoord.h.

◆ TMatchingPairPtr

Definition at line 55 of file TMatchingPair.h.

◆ TNodeID

typedef uint64_t mrpt::utils::TNodeID

The type for node IDs in graphs of different types.

Definition at line 137 of file base/include/mrpt/utils/types.h.

◆ TPairNodeIDs

A pair of node IDs.

Definition at line 138 of file base/include/mrpt/utils/types.h.

◆ TParametersDouble

See the generic template mrpt::utils::TParameters.

Definition at line 109 of file TParameters.h.

◆ TParametersString

See the generic template mrpt::utils::TParameters.

Definition at line 110 of file TParameters.h.

◆ void_ptr

Definition at line 245 of file safe_pointers.h.

◆ void_ptr_noncopy

Definition at line 246 of file safe_pointers.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
fomRead 
fomWrite 
fomAppend 

Definition at line 31 of file CFileStream.h.

◆ TColormap

Different colormaps.

See also
mrpt::vision::colormap
Enumerator
cmGRAYSCALE 
cmJET 

Definition at line 44 of file color_maps.h.

◆ TConstructorFlags_CImage

For usage in one of the CImage constructors.

Enumerator
UNINITIALIZED_IMAGE 
FAST_REF_OR_CONVERT_TO_GRAY 

Definition at line 43 of file CImage.h.

Function Documentation

◆ abs_diff()

template<typename T >
T mrpt::utils::abs_diff ( const T  a,
const T  b 
)
inline

Efficient and portable evaluation of the absolute difference of two unsigned integer values (but will also work for signed and floating point types)

Definition at line 145 of file bits.h.

◆ colormap()

void BASE_IMPEXP mrpt::utils::colormap ( const TColormap color_map,
const float  color_index,
float &  r,
float &  g,
float &  b 
)

Transform a float number in the range [0,1] into RGB components.

Different colormaps are available.

◆ compute_CRC16() [1/2]

uint16_t BASE_IMPEXP mrpt::utils::compute_CRC16 ( const std::vector< uint8_t > &  data,
const uint16_t  gen_pol = 0x8005 
)

Computes the CRC16 checksum of a block of data.

◆ compute_CRC16() [2/2]

uint16_t BASE_IMPEXP mrpt::utils::compute_CRC16 ( const uint8_t *  data,
const size_t  len,
const uint16_t  gen_pol = 0x8005 
)

Computes the CRC16 checksum of a block of data.

◆ DEG2RAD() [1/3]

double mrpt::utils::DEG2RAD ( const double  x)
inline

Degrees to radians.

Definition at line 73 of file bits.h.

References M_PI.

◆ DEG2RAD() [2/3]

float mrpt::utils::DEG2RAD ( const float  x)
inline

Degrees to radians.

Definition at line 75 of file bits.h.

References M_PIf.

◆ DEG2RAD() [3/3]

float mrpt::utils::DEG2RAD ( const int  x)
inline

Degrees to radians.

Definition at line 77 of file bits.h.

References M_PIf.

◆ delete_safe()

template<class T >
void mrpt::utils::delete_safe ( T *&  ptr)

Calls "delete" to free an object only if the pointer is not NULL, then set the pointer to NULL.

Definition at line 197 of file bits.h.

◆ fix()

template<typename T >
int mrpt::utils::fix ( x)
inline

Rounds toward zero.

Definition at line 154 of file bits.h.

◆ getAs() [1/2]

template<class R , class P >
R* mrpt::utils::getAs ( stlplus::smart_ptr_clone< P > &  o)
inline

Utility to get a cast'ed pointer from a smart pointer.

Definition at line 162 of file bits.h.

◆ getAs() [2/2]

template<class R , class P >
const R* mrpt::utils::getAs ( const stlplus::smart_ptr_clone< P > &  o)
inline

Utility to get a cast'ed pointer from a smart pointer.

Definition at line 166 of file bits.h.

◆ global_profiler_enter()

void BASE_IMPEXP mrpt::utils::global_profiler_enter ( const char *  func_name)

◆ global_profiler_leave()

void BASE_IMPEXP mrpt::utils::global_profiler_leave ( const char *  func_name)

◆ hsv2rgb()

void BASE_IMPEXP mrpt::utils::hsv2rgb ( float  h,
float  s,
float  v,
float &  r,
float &  g,
float &  b 
)

Transform HSV color components to RGB, all of them in the range [0,1].

See also
rgb2hsv

◆ jet2rgb()

void BASE_IMPEXP mrpt::utils::jet2rgb ( const float  color_index,
float &  r,
float &  g,
float &  b 
)

Computes the RGB color components (range [0,1]) for the corresponding color index in the range [0,1] using the MATLAB 'jet' colormap.

See also
colormap

◆ keep_max()

template<typename T , typename K >
void mrpt::utils::keep_max ( T &  var,
const K  test_val 
)
inline

◆ keep_min()

template<typename T , typename K >
void mrpt::utils::keep_min ( T &  var,
const K  test_val 
)
inline

If the second argument is below the first one, set the first argument to this lower value.

Definition at line 185 of file bits.h.

Referenced by mrpt::opengl::graph_tools::graph_visualize(), mrpt::opengl::COctreePointRenderer< CPointCloudColoured >::octree_recursive_render(), and mrpt::opengl::COctreePointRenderer< Derived >::TNode::update_bb().

◆ max3()

template<typename T >
const T mrpt::utils::max3 ( const T &  A,
const T &  B,
const T &  C 
)
inline

Definition at line 150 of file bits.h.

◆ md5() [1/3]

std::string BASE_IMPEXP mrpt::utils::md5 ( const std::string &  str)

Computes the md5 of a block of data.

◆ md5() [2/3]

std::string BASE_IMPEXP mrpt::utils::md5 ( const mrpt::vector_byte str)

Computes the md5 of a block of data.

◆ md5() [3/3]

std::string BASE_IMPEXP mrpt::utils::md5 ( const unsigned char *  data,
const size_t  len 
)

Computes the md5 of a block of data.

◆ min3()

template<typename T >
const T mrpt::utils::min3 ( const T &  A,
const T &  B,
const T &  C 
)
inline

Definition at line 149 of file bits.h.

◆ ObjectToOctetVector()

void BASE_IMPEXP mrpt::utils::ObjectToOctetVector ( const CSerializable o,
vector_byte out_vector 
)

Converts (serializes) an MRPT object into an array of bytes.

Parameters
oThe object to be serialized.
out_vectorThe vector which at return will contain the data. Size will be set automatically.
See also
OctetVectorToObject, ObjectToString

◆ ObjectToRawString()

void BASE_IMPEXP mrpt::utils::ObjectToRawString ( const CSerializable o,
std::string &  out_str 
)

Converts (serializes) an MRPT object into an array of bytes within a std::string, without codifying to avoid NULL characters.

This is therefore more efficient than ObjectToString

Parameters
oThe object to be serialized.
out_vectorThe string which at return will contain the data. Size will be set automatically.
See also
RawStringToObject, ObjectToOctetVector

◆ ObjectToString()

std::string BASE_IMPEXP mrpt::utils::ObjectToString ( const CSerializable o)

Used to pass MRPT objects into a CORBA-like object (strings).

See doc about "Integration with BABEL".

Parameters
oThe object to be serialized.
Returns
The string containing the binay version of object.
See also
StringToObject, Integration with BABEL

◆ OctetVectorToObject()

void BASE_IMPEXP mrpt::utils::OctetVectorToObject ( const vector_byte in_data,
CSerializablePtr obj 
)

Converts back (de-serializes) a sequence of binary data into a MRPT object, without prior information about the object's class.

Parameters
in_dataThe serialized input data representing the object.
objThe newly created object will be stored in this smart pointer.
Exceptions
NoneOn any internal exception, this function returns a NULL pointer.
See also
ObjectToOctetVector, StringToObject

◆ operator!=()

bool BASE_IMPEXP mrpt::utils::operator!= ( const mrpt::utils::TCamera a,
const mrpt::utils::TCamera b 
)

◆ operator<()

bool BASE_IMPEXP mrpt::utils::operator< ( const TMatchingPair a,
const TMatchingPair b 
)

A comparison operator, for sorting lists of TMatchingPair's, first order by this_idx, if equals, by other_idx.

◆ operator<<() [1/22]

std::ostream BASE_IMPEXP& mrpt::utils::operator<< ( std::ostream &  o,
const TPixelCoordf p 
)

Prints TPixelCoordf as "(x,y)".

◆ operator<<() [2/22]

std::ostream BASE_IMPEXP& mrpt::utils::operator<< ( std::ostream &  o,
const TColor c 
)

◆ operator<<() [3/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream o,
const TColor c 
)

◆ operator<<() [4/22]

std::ostream BASE_IMPEXP& mrpt::utils::operator<< ( std::ostream &  o,
const TPixelCoord p 
)

Prints TPixelCoord as "(x,y)".

◆ operator<<() [5/22]

std::ostream BASE_IMPEXP& mrpt::utils::operator<< ( std::ostream &  o,
const TColorf c 
)

◆ operator<<() [6/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream o,
const TColorf c 
)

◆ operator<<() [7/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream s,
const char *  a 
)

◆ operator<<() [8/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream s,
const std::string &  str 
)

◆ operator<<() [9/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream s,
const vector_float a 
)

◆ operator<<() [10/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream s,
const vector_double a 
)

◆ operator<<() [11/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const vector_int a 
)

◆ operator<<() [12/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const vector_uint a 
)

◆ operator<<() [13/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const vector_word a 
)

◆ operator<<() [14/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const vector_signed_word a 
)

◆ operator<<() [15/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const vector_long a 
)

◆ operator<<() [16/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const vector_byte a 
)

◆ operator<<() [17/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const vector_signed_byte a 
)

◆ operator<<() [18/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const vector_bool a 
)

◆ operator<<() [19/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const std::vector< std::string > &   
)

◆ operator<<() [20/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream ,
const std::vector< size_t > &  a 
)

◆ operator<<() [21/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream s,
const std::vector< float > &  a 
)

◆ operator<<() [22/22]

CStream BASE_IMPEXP& mrpt::utils::operator<< ( CStream s,
const std::vector< double > &  a 
)

◆ operator==() [1/3]

bool BASE_IMPEXP mrpt::utils::operator== ( const TMatchingPair a,
const TMatchingPair b 
)

A comparison operator.

◆ operator==() [2/3]

bool BASE_IMPEXP mrpt::utils::operator== ( const TMatchingPairList a,
const TMatchingPairList b 
)

A comparison operator.

◆ operator==() [3/3]

bool BASE_IMPEXP mrpt::utils::operator== ( const mrpt::utils::TCamera a,
const mrpt::utils::TCamera b 
)

◆ operator>>() [1/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
CTypeSelectorPtr pObj 
)

◆ operator>>() [2/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
CStringListPtr pObj 
)

◆ operator>>() [3/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
CSimpleDatabasePtr pObj 
)

◆ operator>>() [4/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
TStereoCameraPtr pObj 
)

◆ operator>>() [5/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
CPropertiesValuesListPtr pObj 
)

◆ operator>>() [6/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
CSimpleDatabaseTablePtr pObj 
)

◆ operator>>() [7/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
CMemoryChunkPtr pObj 
)

◆ operator>>() [8/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
TCameraPtr pObj 
)

◆ operator>>() [9/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
CMHPropertiesValuesListPtr pObj 
)

◆ operator>>() [10/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream i,
TColor c 
)

◆ operator>>() [11/28]

::mrpt::utils::CStream& mrpt::utils::operator>> ( mrpt::utils::CStream in,
CImagePtr pObj 
)

◆ operator>>() [12/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream i,
TColorf c 
)

◆ operator>>() [13/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
char *  a 
)

◆ operator>>() [14/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
std::string &  str 
)

◆ operator>>() [15/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_double a 
)

◆ operator>>() [16/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_float a 
)

◆ operator>>() [17/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_int a 
)

◆ operator>>() [18/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_uint a 
)

◆ operator>>() [19/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_word a 
)

◆ operator>>() [20/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_signed_word a 
)

◆ operator>>() [21/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_long a 
)

◆ operator>>() [22/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_byte a 
)

◆ operator>>() [23/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_signed_byte a 
)

◆ operator>>() [24/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
vector_bool a 
)

◆ operator>>() [25/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream in,
std::vector< std::string > &  a 
)

◆ operator>>() [26/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream s,
std::vector< float > &  a 
)

◆ operator>>() [27/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream s,
std::vector< double > &  a 
)

◆ operator>>() [28/28]

CStream BASE_IMPEXP& mrpt::utils::operator>> ( CStream s,
std::vector< size_t > &  a 
)

◆ RAD2DEG() [1/2]

double mrpt::utils::RAD2DEG ( const double  x)
inline

Radians to degrees.

Definition at line 79 of file bits.h.

References M_PI.

◆ RAD2DEG() [2/2]

float mrpt::utils::RAD2DEG ( const float  x)
inline

Radians to degrees.

Definition at line 81 of file bits.h.

References M_PIf.

◆ RawStringToObject()

void BASE_IMPEXP mrpt::utils::RawStringToObject ( const std::string &  in_str,
CSerializablePtr obj 
)

Converts back (de-serializes) a sequence of binary data within a std::string into a MRPT object, without prior information about the object's class.

Parameters
in_dataThe serialized input data representing the object.
objThe newly created object will be stored in this smart pointer.
Exceptions
NoneOn any internal exception, this function returns a NULL pointer.
See also
ObjectToRawString

◆ reverseBytes()

template<class T >
void mrpt::utils::reverseBytes ( const T &  v_in,
T &  v_out 
)
inline

Reverse the order of the bytes of a given type (useful for transforming btw little/big endian)

Definition at line 176 of file bits.h.

References reverseBytesInPlace().

◆ reverseBytesInPlace()

template<class T >
void mrpt::utils::reverseBytesInPlace ( T &  v_in_out)
inline

Reverse the order of the bytes of a given type (useful for transforming btw little/big endian)

Definition at line 169 of file bits.h.

Referenced by reverseBytes().

◆ rgb2hsv()

void BASE_IMPEXP mrpt::utils::rgb2hsv ( float  r,
float  g,
float  b,
float &  h,
float &  s,
float &  v 
)

Transform RGB color components to HSV, all of them in the range [0,1].

See also
hsv2rgb

◆ round()

template<typename T >
int mrpt::utils::round ( const T  value)
inline

◆ round_long()

template<typename T >
long mrpt::utils::round_long ( const T  value)
inline

Returns the closer integer (long) to x.

Definition at line 122 of file bits.h.

References t().

Referenced by mrpt::math::round_10power().

◆ run_unittests()

int BASE_IMPEXP mrpt::utils::run_unittests ( int  argc,
char **  argv 
)

Run all the unit tests in mrpt::core classes.

◆ sign()

template<typename T >
int mrpt::utils::sign ( x)
inline

◆ signWithZero()

template<typename T >
int mrpt::utils::signWithZero ( x)
inline

Returns the sign of X as "0", "1" or "-1".

Definition at line 96 of file bits.h.

References sign().

◆ square()

template<class T >
T mrpt::utils::square ( const T  x)
inline

◆ StringToObject()

void BASE_IMPEXP mrpt::utils::StringToObject ( const std::string &  str,
CSerializablePtr obj 
)

Used to pass CORBA-like objects (strings) into a MRPT object.

Parameters
strAn string generated with ObjectToString
objA currently empty pointer, where a pointer to the newly created object will be stored.
Exceptions
NoneOn any internal exception, this function returns NULL.
See also
ObjectToString, Integration with BABEL

◆ vector_strong_clear()

template<class T >
void mrpt::utils::vector_strong_clear ( std::vector< T > &  v)
inline

Like calling a std::vector<>'s clear() method, but really forcing deallocating the memory.

Definition at line 206 of file bits.h.

Variable Documentation

◆ CMessage

Definition at line 23 of file CStream.h.

◆ CSerializable

Definition at line 21 of file CStream.h.

◆ CSerializablePtr

Definition at line 22 of file CStream.h.

◆ CStream

Definition at line 28 of file math_frwds.h.

◆ global_profiler

CTimeLogger BASE_IMPEXP mrpt::utils::global_profiler



Page generated by Doxygen 1.8.14 for MRPT 1.1.0 SVN: at lun oct 28 00:54:49 CET 2019 Hosted on:
SourceForge.net Logo