Classes | Namespaces | Macros
feature-abstract.hh File Reference
#include <dynamic-graph/linear-algebra.h>
#include <dynamic-graph/all-signals.h>
#include <dynamic-graph/entity.h>
#include <sot/core/flags.hh>
#include <sot/core/pool.hh>
#include "sot/core/api.hh"
#include <string>
Include dependency graph for feature-abstract.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dynamicgraph::sot::FeatureAbstract
 This class gives the abstract definition of a feature. More...
 
class  dynamicgraph::sot::FeatureReferenceHelper< FeatureSpecialized >
 

Namespaces

 dynamicgraph
 
 dynamicgraph::sot
 

Macros

#define DECLARE_NO_REFERENCE
 
#define DECLARE_REFERENCE_FUNCTIONS(FeatureSpecialized)
 

Macro Definition Documentation

◆ DECLARE_NO_REFERENCE

#define DECLARE_NO_REFERENCE
Value:
virtual void setReference(FeatureAbstract *) {} \
virtual const FeatureAbstract *getReferenceAbstract(void) const { \
return NULL; \
} \
virtual FeatureAbstract *getReferenceAbstract(void) { return NULL; } \
virtual void addDependenciesFromReference(void) {} \
virtual void removeDependenciesFromReference(void) {} \
/* To force a ; */ bool NO_REFERENCE

Definition at line 275 of file feature-abstract.hh.

◆ DECLARE_REFERENCE_FUNCTIONS

#define DECLARE_REFERENCE_FUNCTIONS (   FeatureSpecialized)
Value:
typedef FeatureReferenceHelper<FeatureSpecialized> SP; \
virtual void setReference(FeatureAbstract *sdes) { \
if (sdes == NULL) { \
/* UNSET */ \
if (SP::isReferenceSet()) removeDependenciesFromReference(); \
SP::unsetReference(); \
} else { \
/* SET */ \
SP::setReference(sdes); \
if (SP::isReferenceSet()) addDependenciesFromReference(); \
} \
} \
virtual const FeatureAbstract *getReferenceAbstract(void) const { \
return SP::getReference(); \
} \
virtual FeatureAbstract *getReferenceAbstract(void) { \
return (FeatureAbstract *)SP::getReference(); \
} \
bool isReferenceSet(void) const { return SP::isReferenceSet(); } \
virtual void addDependenciesFromReference(void); \
virtual void removeDependenciesFromReference(void)

Definition at line 251 of file feature-abstract.hh.



sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:32