sprint 1-alpha
Public Member Functions | Public Attributes
sprint::ref_any Struct Reference

#include <ref_any.h>

List of all members.

Public Member Functions

template<class T >
 ref_any (T *p)
 bind object to T*
template<class T >
 ref_any (T *p, int len)
 bind object to a memory buffer
template<class T >
bool is () const
template<class T >
get () const
template<class T >
void set (const T &s) const

Public Attributes

Type type
 type of parameter using sprint::rtti
void * mem
 pointer to memory
unsigned int size
 size of memory (used only for String)

Detailed Description

A generic container for reference memory not using RTTI ma serializable_rtti.h only POD methods

 int my_var;
 
 foo(sprint::ref_any(&my_var) );
Note:
since use serializable_rtti, only typede defined in the enum can be serialized

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines