RetroArch
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
peg::any Class Reference

#include <peglib.h>

Collaboration diagram for peg::any:
[legend]

Classes

struct  holder
 
struct  placeholder
 

Public Member Functions

 any ()
 
 any (const any &rhs)
 
 any (any &&rhs)
 
template<typename T >
 any (const T &value)
 
anyoperator= (const any &rhs)
 
anyoperator= (any &&rhs)
 
 ~any ()
 
bool is_undefined () const
 
template<typename T , typename std::enable_if<!std::is_same< T, any >::value >::type *& = enabler>
Tget ()
 
template<typename T , typename std::enable_if< std::is_same< T, any >::value >::type *& = enabler>
Tget ()
 
template<typename T , typename std::enable_if<!std::is_same< T, any >::value >::type *& = enabler>
const Tget () const
 
template<typename T , typename std::enable_if< std::is_same< T, any >::value >::type *& = enabler>
const anyget () const
 

Private Member Functions

placeholderclone () const
 

Private Attributes

placeholdercontent_
 

Constructor & Destructor Documentation

◆ any() [1/4]

peg::any::any ( )
inline

◆ any() [2/4]

peg::any::any ( const any rhs)
inline

◆ any() [3/4]

peg::any::any ( any &&  rhs)
inline

◆ any() [4/4]

template<typename T >
peg::any::any ( const T value)
inline

◆ ~any()

peg::any::~any ( )
inline

Member Function Documentation

◆ clone()

placeholder* peg::any::clone ( ) const
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get() [1/4]

template<typename T , typename std::enable_if<!std::is_same< T, any >::value >::type *& = enabler>
T& peg::any::get ( )
inline

◆ get() [2/4]

template<typename T , typename std::enable_if< std::is_same< T, any >::value >::type *& = enabler>
T& peg::any::get ( )
inline

◆ get() [3/4]

template<typename T , typename std::enable_if<!std::is_same< T, any >::value >::type *& = enabler>
const T& peg::any::get ( ) const
inline

◆ get() [4/4]

template<typename T , typename std::enable_if< std::is_same< T, any >::value >::type *& = enabler>
const any& peg::any::get ( ) const
inline

◆ is_undefined()

bool peg::any::is_undefined ( ) const
inline

◆ operator=() [1/2]

any& peg::any::operator= ( const any rhs)
inline
Here is the call graph for this function:

◆ operator=() [2/2]

any& peg::any::operator= ( any &&  rhs)
inline

Member Data Documentation

◆ content_

placeholder* peg::any::content_
private

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