Classes | Typedefs | Functions | Variables
PointMatcherSupport Namespace Reference

Functions and classes that are not dependant on scalar type are defined in this namespace. More...

Classes

struct  InvalidElement
 An exception thrown when one tries to instanciate an element that does not exist in the registrar. More...
struct  InvalidModuleType
 An exception thrown when one tries to use a module type that does not exist. More...
struct  Logger
 The logger interface, used to output warnings and informations. More...
struct  Parametrizable
 The superclass of classes that are constructed using generic parameters. This class provides the parameter storage and fetching mechanism. More...
struct  Registrar
 A factor for subclasses of Interface. More...
struct  SharedPtrVector
 A vector of std::shared_ptr<S> that behaves like a std::vector<S> More...
struct  TransformationError
 An expection thrown when a transformation has invalid parameters. More...

Typedefs

typedef std::map< std::string,
std::vector< std::string > > 
CsvElements
 Data from a CSV file.
typedef boost::timer timer

Functions

template<typename T >
static T anyabs (const T &v)
bool FalseLexicalComparison (std::string, std::string)
 Return always false.
template<typename Target , typename Source >
Target lexical_cast (const Source &arg)
 General case of lexical cast, use boost.
template<>
float lexical_cast (const std::string &arg)
 Special case of lexical cast to float, use lexical_cast_scalar_to_string.
template<typename Target >
Target lexical_cast_scalar_to_string (const std::string &arg)
 A lexical casting function that is an improvements over boost::lexical_cast that can handle "inf", "-inf", "Nan" for float and doubles.
template<typename T >
static T normalizeAngle (T v)
std::ostream & operator<< (std::ostream &o, const Parametrizable::ParameterDoc &p)
 Dump the documentation of this parameter to a stream.
std::ostream & operator<< (std::ostream &o, const Parametrizable::ParametersDoc &p)
 Dump the documentation of these parameters to a stream.
void setLogger (Logger *newLogger)
 Set a new logger, protected by a mutex.
template<typename S >
std::string toParam (const S &value)
 Return the a string value using lexical_cast.
void validateFile (const std::string &fileName)
 Throw a runtime_error exception if fileName cannot be opened.

Variables

std::shared_ptr< Loggerlogger
 the current logger
boost::mutex loggerMutex
 mutex to protect access to logging

Detailed Description

Functions and classes that are not dependant on scalar type are defined in this namespace.


Typedef Documentation

typedef std::map<std::string, std::vector<std::string> > PointMatcherSupport::CsvElements

Data from a CSV file.

Definition at line 123 of file PointMatcher.h.

Definition at line 78 of file Timer.h.


Function Documentation

template<typename T >
static T PointMatcherSupport::anyabs ( const T &  v) [inline, static]

Definition at line 42 of file Functions.h.

bool PointMatcherSupport::FalseLexicalComparison ( std::string  ,
std::string   
)

Return always false.

Definition at line 68 of file Parametrizable.cpp.

template<typename Target , typename Source >
Target PointMatcherSupport::lexical_cast ( const Source &  arg) [inline]

General case of lexical cast, use boost.

Definition at line 66 of file Parametrizable.h.

template<>
double PointMatcherSupport::lexical_cast ( const std::string &  arg) [inline]

Special case of lexical cast to float, use lexical_cast_scalar_to_string.

Definition at line 73 of file Parametrizable.h.

template<typename Target >
Target PointMatcherSupport::lexical_cast_scalar_to_string ( const std::string &  arg) [inline]

A lexical casting function that is an improvements over boost::lexical_cast that can handle "inf", "-inf", "Nan" for float and doubles.

Definition at line 52 of file Parametrizable.h.

template<typename T >
static T PointMatcherSupport::normalizeAngle ( v) [inline, static]

Definition at line 51 of file Functions.h.

std::ostream& PointMatcherSupport::operator<< ( std::ostream &  o,
const Parametrizable::ParameterDoc &  p 
)

Dump the documentation of this parameter to a stream.

Definition at line 49 of file Parametrizable.cpp.

std::ostream& PointMatcherSupport::operator<< ( std::ostream &  o,
const Parametrizable::ParametersDoc &  p 
)

Dump the documentation of these parameters to a stream.

Definition at line 60 of file Parametrizable.cpp.

void PointMatcherSupport::setLogger ( Logger *  newLogger)

Set a new logger, protected by a mutex.

Definition at line 98 of file Logger.cpp.

template<typename S >
std::string PointMatcherSupport::toParam ( const S &  value)

Return the a string value using lexical_cast.

Definition at line 82 of file Parametrizable.h.

void PointMatcherSupport::validateFile ( const std::string &  fileName)

Throw a runtime_error exception if fileName cannot be opened.

Definition at line 340 of file IO.cpp.


Variable Documentation

std::shared_ptr< Logger > PointMatcherSupport::logger

the current logger

Logger pointer.

Definition at line 42 of file Logger.cpp.

mutex to protect access to logging

Mutex to protect creation and deletion of logger.

Definition at line 41 of file Logger.cpp.



libpointmatcher
Author(s): Stéphane Magnenat, François Pomerleau
autogenerated on Thu Jan 2 2014 11:16:06