synfig-core  1.0.3
Public Member Functions | Public Attributes | List of all members
named_type< T > Struct Template Reference

#include <named_type.h>

Public Member Functions

 named_type (std::string const &name)
std::string name () const

Public Attributes

std::string _name
value

Detailed Description

template<typename T>
struct named_type< T >

Class for the arguments with name since the Boost library doesn't support named arguments, just hardcoded "arg". The arguments with a description of the expected argument are clearer and hence this class.

See Also
https://svn.boost.org/trac/boost/ticket/4781

Constructor & Destructor Documentation

template<typename T>
named_type< T >::named_type ( std::string const &  name)
inline

Member Function Documentation

template<typename T>
std::string named_type< T >::name ( ) const
inline

Member Data Documentation

template<typename T>
std::string named_type< T >::_name

Referenced by named_type< T >::name().

template<typename T>
T named_type< T >::value

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