OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
boost_variant_accessor< RETURN_TYPE > Class Template Reference

#include <TargetValueConverters.h>

+ Inheritance diagram for boost_variant_accessor< RETURN_TYPE >:
+ Collaboration diagram for boost_variant_accessor< RETURN_TYPE >:

Public Member Functions

const RETURN_TYPE * operator() (RETURN_TYPE const &operand) const
 
const RETURN_TYPE * operator() (void *operand) const
 
template<typename T >
const RETURN_TYPE * operator() (T const &operand) const
 

Detailed Description

template<typename RETURN_TYPE>
class boost_variant_accessor< RETURN_TYPE >

Definition at line 27 of file TargetValueConverters.h.

Member Function Documentation

template<typename RETURN_TYPE>
const RETURN_TYPE* boost_variant_accessor< RETURN_TYPE >::operator() ( RETURN_TYPE const &  operand) const
inline

Definition at line 29 of file TargetValueConverters.h.

29 { return &operand; }
template<typename RETURN_TYPE>
const RETURN_TYPE* boost_variant_accessor< RETURN_TYPE >::operator() ( void *  operand) const
inline

Definition at line 31 of file TargetValueConverters.h.

31 { return nullptr; }
template<typename RETURN_TYPE>
template<typename T >
const RETURN_TYPE* boost_variant_accessor< RETURN_TYPE >::operator() ( T const &  operand) const
inline

Definition at line 34 of file TargetValueConverters.h.

34  {
35  throw std::runtime_error("Unexpected data type");
36  }

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