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  ConverterToAndFromBytes
struct  CurrentBibliography
struct  FileLogger
struct  Histogram
struct  IdxCompare
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  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)
template<typename T >
size_t argMax (const typename PointMatcher< T >::Vector &v)
static Bibliography bibliography ()
template<typename T >
computeDensity (const typename PointMatcher< T >::Matrix &NN)
template<typename T >
PointMatcher< T >::Vector computeNormal (const typename PointMatcher< T >::Vector &eigenVa, const typename PointMatcher< T >::Matrix &eigenVe)
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 Target >
Target lexical_cast_scalar_to_string (const char *&arg)
 Overloaded function for convenience.
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.
template<class T >
constexpr T pow (const T base, const std::size_t exponent)
template<typename DataType , typename MatrixRef >
std::istream & readVtkData (bool readBinary, MatrixRef into, std::istream &in)
template<typename MatrixRef >
std::istream & readVtkData (std::string dataType, bool readBinary, MatrixRef into, std::istream &in)
std::istream & safeGetLine (std::istream &is, std::string &t)
 Replaces getline for handling windows style CR/LF line endings.
template<typename T >
PointMatcher< T >::Vector serializeEigVec (const typename PointMatcher< T >::Matrix &eigenVe)
void setLogger (std::shared_ptr< Logger > newLogger)
 Set a new logger, protected by a mutex.
template<typename T >
PointMatcher< T >::Vector sortEigenValues (const typename PointMatcher< T >::Vector &eigenVa)
template<typename T >
std::vector< size_t > sortIndexes (const typename PointMatcher< T >::Vector &v)
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.
template<typename Matrix >
std::ostream & writeVtkData (bool writeBinary, const Matrix &data, std::ostream &out)

Variables

const bool isBigEndian = *reinterpret_cast<const unsigned char*>(&one) == static_cast<unsigned char>(0)
 true if platform is big endian
std::shared_ptr< Loggerlogger
 the current logger
boost::mutex loggerMutex
 mutex to protect access to logging
const int oneBigEndian = isBigEndian ? 1 : 1 << 8 * (sizeof(int) - 1)
 is always a big endian independent of the platforms endianness

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 117 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 44 of file Functions.h.

template<typename T >
size_t PointMatcherSupport::argMax ( const typename PointMatcher< T >::Vector &  v)

Definition at line 142 of file utils.h.

Definition at line 66 of file Bibliography.cpp.

template<typename T >
T PointMatcherSupport::computeDensity ( const typename PointMatcher< T >::Matrix &  NN)

Definition at line 106 of file utils.h.

template<typename T >
PointMatcher<T>::Vector PointMatcherSupport::computeNormal ( const typename PointMatcher< T >::Vector &  eigenVa,
const typename PointMatcher< T >::Matrix &  eigenVe 
)

Definition at line 123 of file utils.h.

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

Definition at line 50 of file Bibliography.cpp.

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

Return always false.

Definition at line 77 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 57 of file Bibliography.cpp.

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

Definition at line 332 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 76 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 83 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 54 of file Parametrizable.h.

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

Overloaded function for convenience.

Definition at line 68 of file Parametrizable.h.

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

Definition at line 53 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 51 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 62 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 69 of file Parametrizable.cpp.

template<class T >
constexpr T PointMatcherSupport::pow ( const T  base,
const std::size_t  exponent 
) [inline]

Definition at line 47 of file utils.h.

template<typename DataType , typename MatrixRef >
std::istream& PointMatcherSupport::readVtkData ( bool  readBinary,
MatrixRef  into,
std::istream &  in 
)

Definition at line 108 of file IOFunctions.h.

template<typename MatrixRef >
std::istream& PointMatcherSupport::readVtkData ( std::string  dataType,
bool  readBinary,
MatrixRef  into,
std::istream &  in 
)

Definition at line 137 of file IOFunctions.h.

std::istream & PointMatcherSupport::safeGetLine ( std::istream &  is,
std::string &  t 
)

Replaces getline for handling windows style CR/LF line endings.

Definition at line 7 of file IOFunctions.cpp.

template<typename T >
PointMatcher<T>::Vector PointMatcherSupport::serializeEigVec ( const typename PointMatcher< T >::Matrix &  eigenVe)

Definition at line 91 of file utils.h.

void PointMatcherSupport::setLogger ( std::shared_ptr< Logger >  newLogger)

Set a new logger, protected by a mutex.

Definition at line 98 of file Logger.cpp.

template<typename T >
PointMatcher<T>::Vector PointMatcherSupport::sortEigenValues ( const typename PointMatcher< T >::Vector &  eigenVa)

Definition at line 81 of file utils.h.

template<typename T >
std::vector<size_t> PointMatcherSupport::sortIndexes ( const typename PointMatcher< T >::Vector &  v)

Definition at line 66 of file utils.h.

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

Definition at line 313 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 92 of file Parametrizable.h.

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

Throw a runtime_error exception if fileName cannot be opened.

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

template<typename Matrix >
std::ostream& PointMatcherSupport::writeVtkData ( bool  writeBinary,
const Matrix &  data,
std::ostream &  out 
)

Definition at line 81 of file IOFunctions.h.


Variable Documentation

const bool PointMatcherSupport::isBigEndian = *reinterpret_cast<const unsigned char*>(&one) == static_cast<unsigned char>(0)

true if platform is big endian

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

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.

const int PointMatcherSupport::oneBigEndian = isBigEndian ? 1 : 1 << 8 * (sizeof(int) - 1)

is always a big endian independent of the platforms endianness

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



libpointmatcher
Author(s):
autogenerated on Thu Jun 20 2019 19:51:34