RefleX
Build DDS Applications in Modern C++ without IDL
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
reflex::match::Case< T, Tags > Class Template Reference

#include <disc_union.h>

Public Types

enum  { discriminator = detail::case_discriminator<Case>::value }
 
typedef T * case_ptr_type
 
typedef T type
 

Public Member Functions

 Case ()
 
 Case (const T &t)
 
 Case (const Case &c)
 
Caseoperator= (const Case &rhs)
 
const T & get () const
 
T & get ()
 

Static Public Member Functions

static bool matches (int discriminator)
 

Friends

bool operator== (const Case &lhs, const Case &rhs)
 

Member Typedef Documentation

template<class T , int... Tags>
typedef T* reflex::match::Case< T, Tags >::case_ptr_type
template<class T , int... Tags>
typedef T reflex::match::Case< T, Tags >::type

Member Enumeration Documentation

template<class T , int... Tags>
anonymous enum
Enumerator
discriminator 

Constructor & Destructor Documentation

template<class T , int... Tags>
reflex::match::Case< T, Tags >::Case ( )
inline
template<class T , int... Tags>
reflex::match::Case< T, Tags >::Case ( const T &  t)
inlineexplicit
template<class T , int... Tags>
reflex::match::Case< T, Tags >::Case ( const Case< T, Tags > &  c)
inline

Member Function Documentation

template<class T , int... Tags>
const T& reflex::match::Case< T, Tags >::get ( ) const
inline
template<class T , int... Tags>
T& reflex::match::Case< T, Tags >::get ( )
inline
template<class T , int... Tags>
static bool reflex::match::Case< T, Tags >::matches ( int  discriminator)
inlinestatic
template<class T , int... Tags>
Case& reflex::match::Case< T, Tags >::operator= ( const Case< T, Tags > &  rhs)
inline

Friends And Related Function Documentation

template<class T , int... Tags>
bool operator== ( const Case< T, Tags > &  lhs,
const Case< T, Tags > &  rhs 
)
friend

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