OmniSciDB  04ee39c94c
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 28 of file TargetValueConverters.h.

Member Function Documentation

◆ operator()() [1/3]

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

Definition at line 30 of file TargetValueConverters.h.

30 { return &operand; }

◆ operator()() [2/3]

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

Definition at line 32 of file TargetValueConverters.h.

32 { return nullptr; }

◆ operator()() [3/3]

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

Definition at line 35 of file TargetValueConverters.h.

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

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