The superclass of classes that are constructed using generic parameters. This class provides the parameter storage and fetching mechanism. More...
#include <Parametrizable.h>
Classes | |
struct | InvalidParameter |
An exception thrown when one tries to fetch the value of an unexisting parameter. More... | |
struct | ParameterDoc |
The documentation of a parameter. More... | |
Public Types | |
typedef bool(* | LexicalComparison )(std::string a, std::string b) |
A function that returns whether a is smaller than b. | |
typedef std::string | Parameter |
alias | |
typedef std::map< std::string, Parameter > | Parameters |
Parameters stored as a map of string->string. | |
typedef std::vector< ParameterDoc > | ParametersDoc |
The documentation of all parameters. | |
typedef std::set< std::string > | ParametersUsed |
Parameters whose value has been read. | |
Public Member Functions | |
template<typename S > | |
S | get (const std::string ¶mName) |
Return the value of paramName, lexically-casted to S. | |
std::string | getParamValueString (const std::string ¶mName) |
Get the value of a parameter, as a string. | |
Parametrizable () | |
Construct a documentation of parameters from a description in the source. | |
Parametrizable (const std::string &className, const ParametersDoc paramsDoc, const Parameters ¶ms) | |
Construct with documented parameters. | |
virtual | ~Parametrizable () |
Virtual destructor, do nothing. | |
Static Public Member Functions | |
template<typename S > | |
static bool | Comp (std::string a, std::string b) |
Return whether a < b, lexically casted to S. | |
Public Attributes | |
const std::string | className |
name of the class | |
Parameters | parameters |
parameters with their values encoded in string | |
const ParametersDoc | parametersDoc |
documentation of parameters | |
ParametersUsed | parametersUsed |
parameters whose value has actually been read | |
Friends | |
std::ostream & | operator<< (std::ostream &o, const Parametrizable &p) |
Dump the documentation of this object to a stream. |
The superclass of classes that are constructed using generic parameters. This class provides the parameter storage and fetching mechanism.
Definition at line 98 of file Parametrizable.h.
typedef bool(* PointMatcherSupport::Parametrizable::LexicalComparison)(std::string a, std::string b) |
A function that returns whether a is smaller than b.
Definition at line 107 of file Parametrizable.h.
typedef std::string PointMatcherSupport::Parametrizable::Parameter |
alias
Definition at line 155 of file Parametrizable.h.
typedef std::map<std::string, Parameter> PointMatcherSupport::Parametrizable::Parameters |
Parameters stored as a map of string->string.
Reimplemented in OctreeGridDataPointsFilter< T >, CovarianceSamplingDataPointsFilter< T >, NormalSpaceDataPointsFilter< T >, VoxelGridDataPointsFilter< T >, CutAtDescriptorThresholdDataPointsFilter< T >, RandomSamplingDataPointsFilter< T >, SurfaceNormalDataPointsFilter< T >, PointToPlaneWithCovErrorMinimizer< T >, PointToPointWithCovErrorMinimizer< T >, PointToPlaneErrorMinimizer< T >, BoundingBoxDataPointsFilter< T >, DistanceLimitDataPointsFilter< T >, ElipsoidsDataPointsFilter< T >, FixStepSamplingDataPointsFilter< T >, GestaltDataPointsFilter< T >, MaxDensityDataPointsFilter< T >, MaxDistDataPointsFilter< T >, MaxPointCountDataPointsFilter< T >, MaxQuantileOnAxisDataPointsFilter< T >, MinDistDataPointsFilter< T >, ObservationDirectionDataPointsFilter< T >, OrientNormalsDataPointsFilter< T >, RemoveSensorBiasDataPointsFilter< T >, SamplingSurfaceNormalDataPointsFilter< T >, ShadowDataPointsFilter< T >, SimpleSensorNoiseDataPointsFilter< T >, and PointToPointErrorMinimizer< T >.
Definition at line 156 of file Parametrizable.h.
typedef std::vector<ParameterDoc> PointMatcherSupport::Parametrizable::ParametersDoc |
The documentation of all parameters.
Reimplemented in OctreeGridDataPointsFilter< T >, CovarianceSamplingDataPointsFilter< T >, NormalSpaceDataPointsFilter< T >, VoxelGridDataPointsFilter< T >, CutAtDescriptorThresholdDataPointsFilter< T >, RandomSamplingDataPointsFilter< T >, SurfaceNormalDataPointsFilter< T >, PointToPlaneWithCovErrorMinimizer< T >, PointToPlaneErrorMinimizer< T >, PointToPointWithCovErrorMinimizer< T >, BoundingBoxDataPointsFilter< T >, DistanceLimitDataPointsFilter< T >, ElipsoidsDataPointsFilter< T >, FixStepSamplingDataPointsFilter< T >, GestaltDataPointsFilter< T >, MaxDensityDataPointsFilter< T >, MaxDistDataPointsFilter< T >, MaxPointCountDataPointsFilter< T >, MaxQuantileOnAxisDataPointsFilter< T >, MinDistDataPointsFilter< T >, ObservationDirectionDataPointsFilter< T >, OrientNormalsDataPointsFilter< T >, RemoveSensorBiasDataPointsFilter< T >, SamplingSurfaceNormalDataPointsFilter< T >, ShadowDataPointsFilter< T >, SimpleSensorNoiseDataPointsFilter< T >, and PointToPointErrorMinimizer< T >.
Definition at line 144 of file Parametrizable.h.
typedef std::set<std::string> PointMatcherSupport::Parametrizable::ParametersUsed |
Parameters whose value has been read.
Definition at line 157 of file Parametrizable.h.
Construct a documentation of parameters from a description in the source.
Construct an unknown class without parameters
Definition at line 165 of file Parametrizable.cpp.
PointMatcherSupport::Parametrizable::Parametrizable | ( | const std::string & | className, |
const ParametersDoc | paramsDoc, | ||
const Parameters & | params | ||
) |
Construct with documented parameters.
Definition at line 170 of file Parametrizable.cpp.
PointMatcherSupport::Parametrizable::~Parametrizable | ( | ) | [virtual] |
Virtual destructor, do nothing.
Definition at line 195 of file Parametrizable.cpp.
static bool PointMatcherSupport::Parametrizable::Comp | ( | std::string | a, |
std::string | b | ||
) | [inline, static] |
Return whether a < b, lexically casted to S.
Definition at line 111 of file Parametrizable.h.
S PointMatcherSupport::Parametrizable::get | ( | const std::string & | paramName | ) | [inline] |
Return the value of paramName, lexically-casted to S.
Definition at line 172 of file Parametrizable.h.
std::string PointMatcherSupport::Parametrizable::getParamValueString | ( | const std::string & | paramName | ) |
Get the value of a parameter, as a string.
Definition at line 199 of file Parametrizable.cpp.
std::ostream& operator<< | ( | std::ostream & | o, |
const Parametrizable & | p | ||
) | [friend] |
Dump the documentation of this object to a stream.
Definition at line 62 of file Parametrizable.cpp.
const std::string PointMatcherSupport::Parametrizable::className |
name of the class
Definition at line 159 of file Parametrizable.h.
parameters with their values encoded in string
Definition at line 161 of file Parametrizable.h.
documentation of parameters
Definition at line 160 of file Parametrizable.h.
parameters whose value has actually been read
Definition at line 162 of file Parametrizable.h.