SAGA C++ API 1.5.3

saga::detail::hold_any Class Reference

@ namespace internals More...

#include <hold_any.hpp>

List of all members.

Public Member Functions

template<typename T >
 hold_any (T const &x)
 hold_any ()
 hold_any (hold_any const &x)
 ~hold_any ()
hold_anyassign (hold_any const &x)
template<typename T >
hold_anyassign (T const &x)
template<typename T >
hold_anyinit ()
template<typename T >
hold_anyoperator= (T const &x)
hold_anyswap (hold_any &x)
std::type_info const & type () const
template<typename T >
T const & cast () const
bool empty () const
void reset ()

Friends

template<typename T >
T * any_cast (hold_any *)
template<typename T >
T * any_cast (hold_any *, boost::mpl::true_)
template<typename T >
T * any_cast (hold_any *, boost::mpl::false_)

Detailed Description

@ namespace internals


Constructor & Destructor Documentation

template<typename T >
saga::detail::hold_any::hold_any ( T const &  x) [inline]
saga::detail::hold_any::hold_any ( ) [inline]
saga::detail::hold_any::hold_any ( hold_any const &  x) [inline]
saga::detail::hold_any::~hold_any ( ) [inline]

Member Function Documentation

hold_any& saga::detail::hold_any::assign ( hold_any const &  x) [inline]

References reset().

Referenced by operator=().

template<typename T >
hold_any& saga::detail::hold_any::assign ( T const &  x) [inline]

References reset().

template<typename T >
hold_any& saga::detail::hold_any::init ( ) [inline]

References reset().

Referenced by saga::detail::any_cast().

template<typename T >
hold_any& saga::detail::hold_any::operator= ( T const &  x) [inline]

References assign().

hold_any& saga::detail::hold_any::swap ( hold_any x) [inline]
std::type_info const& saga::detail::hold_any::type ( ) const [inline]

Referenced by saga::detail::any_cast(), and cast().

template<typename T >
T const& saga::detail::hold_any::cast ( ) const [inline]

References type().

bool saga::detail::hold_any::empty ( ) const [inline]

Referenced by saga::detail::any_cast().

void saga::detail::hold_any::reset ( ) [inline]

Referenced by assign(), and init().


Friends And Related Function Documentation

template<typename T >
T* any_cast ( hold_any operand) [friend]
template<typename T >
T* any_cast ( hold_any operand,
boost::mpl::true_   
) [friend]
template<typename T >
T* any_cast ( hold_any operand,
boost::mpl::false_   
) [friend]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines