libpointmatcher  1.3.1
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  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.
 

Functions

void setLogger (std::shared_ptr< Logger > newLogger)
 Set a new logger, protected by a mutex.
 
void validateFile (const std::string &fileName)
 Throw a runtime_error exception if fileName cannot be opened.
 
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 Target >
Target lexical_cast_scalar_to_string (const char *&arg)
 Overloaded function for convenience.
 
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<>
double lexical_cast (const std::string &arg)
 Special case of lexical cast to float, use lexical_cast_scalar_to_string.
 
template<typename S >
std::string toParam (const S &value)
 Return the a string value using lexical_cast.
 
std::ostream & operator<< (std::ostream &o, const Parametrizable::ParametersDoc &p)
 Dump the documentation of these parameters to a stream.
 
void getNameParamsFromYAML (const YAML::Node &module, std::string &name, Parametrizable::Parameters &params)
 Retrieve name and parameters from a yaml node.
 
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 &p)
 Dump the documentation of this object to a stream.
 
bool FalseLexicalComparison (std::string, std::string)
 Return always false.
 

Variables

const bool isBigEndian = *reinterpret_cast<const unsigned char*>(&one) == static_cast<unsigned char>(0)
 
const int oneBigEndian = isBigEndian ? 1 : 1 << 8 * (sizeof(int) - 1)
 
boost::mutex loggerMutex
 mutex to protect access to logging
 
std::shared_ptr< Loggerlogger
 the current logger
 

Detailed Description

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