All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
YAML::convert< std::shared_ptr< T > > Struct Template Reference

Specializatio of YAML::convert for std::shared_ptr, this is used to redirect the serialization of a derived class to the specialization of the serialization for a base class, for example all subclasses of Component can use the Component serialization specialization, currently each redirection has to be implemented separately, there is probably a way to do this automatically. More...

#include <SurgSim/Framework/FrameworkConvert.h>

Static Public Member Functions

static YAML::Node encode (const typename std::enable_if< std::is_base_of< SurgSim::Framework::Component, T >::value, std::shared_ptr< T > >::type rhs)
 
static bool decode (const Node &node, typename std::enable_if< std::is_base_of< SurgSim::Framework::Component, T >::value, std::shared_ptr< T > >::type &rhs)
 

Detailed Description

template<class T>
struct YAML::convert< std::shared_ptr< T > >

Specializatio of YAML::convert for std::shared_ptr, this is used to redirect the serialization of a derived class to the specialization of the serialization for a base class, for example all subclasses of Component can use the Component serialization specialization, currently each redirection has to be implemented separately, there is probably a way to do this automatically.

Template Parameters
Tclass that should be converted from a shared ptr

Member Function Documentation

template<class T >
bool YAML::convert< std::shared_ptr< T > >::decode ( const Node &  node,
typename std::enable_if< std::is_base_of< SurgSim::Framework::Component, T >::value, std::shared_ptr< T > >::type &  rhs 
)
static
template<class T >
YAML::Node YAML::convert< std::shared_ptr< T > >::encode ( const typename std::enable_if< std::is_base_of< SurgSim::Framework::Component, T >::value, std::shared_ptr< T > >::type  rhs)
static

The documentation for this struct was generated from the following files: