Classes | Namespaces | Macros | Functions
Parameterizable.h File Reference
#include <mrpt/expr/CRuntimeCompiledExpression.h>
#include <cstdint>
#include <optional>
#include <set>
#include <string>
#include <variant>
#include <vector>
Include dependency graph for Parameterizable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mp2p_icp::internal::InfoPerParam
 
class  mp2p_icp::Parameterizable
 
class  mp2p_icp::ParameterSource
 

Namespaces

 mp2p_icp
 
 mp2p_icp::internal
 

Macros

#define DECLARE_PARAMETER_IN_OPT(__yaml, __variable, __object)
 
#define DECLARE_PARAMETER_IN_REQ(__yaml, __variable, __object)
 
#define DECLARE_PARAMETER_OPT(__yaml, __variable)   DECLARE_PARAMETER_IN_OPT(__yaml, __variable, (*this))
 
#define DECLARE_PARAMETER_REQ(__yaml, __variable)   DECLARE_PARAMETER_IN_REQ(__yaml, __variable, (*this))
 

Functions

void mp2p_icp::AttachToParameterSource (Parameterizable &o, ParameterSource &source)
 
template<typename T >
void mp2p_icp::AttachToParameterSource (std::vector< std::shared_ptr< T >> &setObjects, ParameterSource &source)
 

Macro Definition Documentation

◆ DECLARE_PARAMETER_IN_OPT

#define DECLARE_PARAMETER_IN_OPT (   __yaml,
  __variable,
  __object 
)
Value:
__object.mp2p_icp::Parameterizable::parseAndDeclareParameter( \
__yaml.getOrDefault(#__variable, std::to_string(__variable)), \
__variable);

Definition at line 159 of file Parameterizable.h.

◆ DECLARE_PARAMETER_IN_REQ

#define DECLARE_PARAMETER_IN_REQ (   __yaml,
  __variable,
  __object 
)
Value:
if (!__yaml.has(#__variable)) \
throw std::invalid_argument(mrpt::format( \
"Required parameter `%s` not an existing key in dictionary.", \
#__variable)); \
__object.mp2p_icp::Parameterizable::parseAndDeclareParameter( \
__yaml[#__variable].as<std::string>(), __variable);

Definition at line 167 of file Parameterizable.h.

◆ DECLARE_PARAMETER_OPT

#define DECLARE_PARAMETER_OPT (   __yaml,
  __variable 
)    DECLARE_PARAMETER_IN_OPT(__yaml, __variable, (*this))

Definition at line 164 of file Parameterizable.h.

◆ DECLARE_PARAMETER_REQ

#define DECLARE_PARAMETER_REQ (   __yaml,
  __variable 
)    DECLARE_PARAMETER_IN_REQ(__yaml, __variable, (*this))

Definition at line 175 of file Parameterizable.h.



mp2p_icp
Author(s): Jose-Luis Blanco-Claraco
autogenerated on Tue Jul 2 2024 02:47:26