dynamic-graph  4.1.0-8-gdab7-dirty
Dynamic graph library
SignalCast< T > Class Template Reference

#include <dynamic-graph/signal-cast-helper.h>

Static Public Member Functions

static T cast (std::istringstream &)
 
static boost::any cast_ (std::istringstream &stringValue)
 
static void disp (const T &, std::ostream &)
 
static void disp_ (const boost::any &t, std::ostream &os)
 
static void trace (const T &t, std::ostream &os)
 
static void trace_ (const boost::any &t, std::ostream &os)
 

Detailed Description

template<class T>
class dynamicgraph::SignalCast< T >

This class is only used to group together static functions who differ by a template parameter. It is never actually instanced (the private constructor makes sure of that). Typical use of this class is to add the caster in the dg graph: dynamicgraph::SignalCastRegisterer sotCastRegisterer_TYPE (typeid(TYPE), SignalCast<TYPE>::disp_, SignalCast<TYPE>::cast_, SignalCast<TYPE>::trace_);

NMSD: I don't really understand the use of this additional class. IMHO (comme on dit), it should be possible to rewrite the same-spec macros using specialization of the template class DefaultCastRegisterer. No?

Definition at line 80 of file signal-cast-helper.h.


The documentation for this class was generated from the following file: