teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | List of all members
teditor::Any< Types > Struct Template Reference

struct Impl /// More...

#include <any.hpp>

Public Member Functions

 Any ()
 
 Any (const Any< Types... > &old)
 
 Any (Any< Types... > &&old)
 
 ~Any ()
 
Any< Types... > & operator= (Any< Types... > &&old)
 
Any< Types... > & operator= (Any< Types... > old)
 
template<typename T >
bool is () const
 
bool valid () const
 
template<typename T >
T & get ()
 
template<typename T >
void set (const T &in)
 

Detailed Description

template<typename... Types>
struct teditor::Any< Types >

struct Impl ///

Data structure to help store any of the pre-defined data types. Such a thing will be useful, for eg, to support storing json objects

Constructor & Destructor Documentation

◆ Any() [1/3]

template<typename... Types>
teditor::Any< Types >::Any ( )
inline

◆ Any() [2/3]

template<typename... Types>
teditor::Any< Types >::Any ( const Any< Types... > &  old)
inline

◆ Any() [3/3]

template<typename... Types>
teditor::Any< Types >::Any ( Any< Types... > &&  old)
inline

◆ ~Any()

template<typename... Types>
teditor::Any< Types >::~Any ( )
inline

Member Function Documentation

◆ get()

template<typename... Types>
template<typename T >
T& teditor::Any< Types >::get ( )
inline

◆ is()

template<typename... Types>
template<typename T >
bool teditor::Any< Types >::is ( ) const
inline

◆ operator=() [1/2]

template<typename... Types>
Any<Types...>& teditor::Any< Types >::operator= ( Any< Types... > &&  old)
inline

◆ operator=() [2/2]

template<typename... Types>
Any<Types...>& teditor::Any< Types >::operator= ( Any< Types... >  old)
inline

◆ set()

template<typename... Types>
template<typename T >
void teditor::Any< Types >::set ( const T &  in)
inline

◆ valid()

template<typename... Types>
bool teditor::Any< Types >::valid ( ) const
inline

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