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  CurrentBibliography
struct  FileLogger
struct  Histogram
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  NullLogger
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 boost::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,
unsigned > 
BibIndices
typedef StringMapMap Bibliography
typedef std::map< std::string,
std::vector< std::string > > 
CsvElements
 Data from a CSV file.
typedef std::map< std::string,
std::string > 
StringMap
typedef std::map< std::string,
StringMap
StringMapMap
typedef std::vector< std::string > StringVector
typedef boost::timer timer

Functions

template<typename T >
static T anyabs (const T &v)
static Bibliography bibliography ()
template<typename M >
bool contains (const M &m, const typename M::key_type &k)
bool FalseLexicalComparison (std::string, std::string)
 Return always false.
template<typename M >
const M::mapped_type & get (const M &m, const typename M::key_type &k)
std::string getAndReplaceBibEntries (const std::string &text, CurrentBibliography &curBib)
void getNameParamsFromYAML (const YAML::Node &module, std::string &name, Parametrizable::Parameters &params)
 Retrieve name and parameters from a yaml node.
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 >
StringMap makeMap (const T &mapInitializer)
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 &p)
 Dump the documentation of this object 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.
static StringVector splitString (const string &text, char delim)
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

boost::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, unsigned> PointMatcherSupport::BibIndices

Definition at line 49 of file Bibliography.h.

Definition at line 48 of file Bibliography.h.

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

Data from a CSV file.

Definition at line 125 of file PointMatcher.h.

typedef std::map<std::string, std::string> PointMatcherSupport::StringMap

Definition at line 46 of file Bibliography.h.

typedef std::map<std::string, StringMap> PointMatcherSupport::StringMapMap

Definition at line 47 of file Bibliography.h.

typedef std::vector<std::string> PointMatcherSupport::StringVector

Definition at line 45 of file Bibliography.h.

typedef boost::timer PointMatcherSupport::timer

Definition at line 80 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.

Definition at line 76 of file Bibliography.cpp.

template<typename M >
bool PointMatcherSupport::contains ( const M &  m,
const typename M::key_type &  k 
)

Definition at line 52 of file Bibliography.cpp.

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

Return always false.

Definition at line 76 of file Parametrizable.cpp.

template<typename M >
const M::mapped_type& PointMatcherSupport::get ( const M &  m,
const typename M::key_type &  k 
)

Definition at line 59 of file Bibliography.cpp.

std::string PointMatcherSupport::getAndReplaceBibEntries ( const std::string &  text,
CurrentBibliography curBib 
)

Definition at line 289 of file Bibliography.cpp.

void PointMatcherSupport::getNameParamsFromYAML ( const YAML::Node module,
std::string &  name,
Parametrizable::Parameters params 
)

Retrieve name and parameters from a yaml node.

Definition at line 12 of file Registrar.cpp.

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

General case of lexical cast, use boost.

Definition at line 69 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 76 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 55 of file Parametrizable.h.

template<typename T >
StringMap PointMatcherSupport::makeMap ( const T &  mapInitializer)

Definition at line 70 of file Bibliography.cpp.

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 50 of file Parametrizable.cpp.

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

Dump the documentation of this object to a stream.

Definition at line 61 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 68 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.

static StringVector PointMatcherSupport::splitString ( const string &  text,
char  delim 
) [static]

Definition at line 270 of file Bibliography.cpp.

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

Return the a string value using lexical_cast.

Definition at line 85 of file Parametrizable.h.

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

Throw a runtime_error exception if fileName cannot be opened.

Definition at line 347 of file pointmatcher/IO.cpp.


Variable Documentation

boost::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.



upstream_src
Author(s):
autogenerated on Mon Oct 6 2014 10:27:42