Wolframe, 0.0.3

_Wolframe::serialize::SerializeState Class Reference

State stack element for an iterator on a structure (serializer) More...

#include <serializeStack.hpp>

Public Types

typedef bool(* Fetch )(Context &ctx, std::vector< SerializeState > &stk)
 

Public Member Functions

 SerializeState (const SerializeState &o)
 Copy constructor. More...
 
 SerializeState (const char *name_, Fetch p, const void *v)
 Constructor. More...
 
const void * value () const
 Get the base pointer to the value of the object handled by this state. More...
 
const char * name () const
 Get the name of the object handled by this state. More...
 
Fetch fetch () const
 Get the fetch function of the object handled by this state. More...
 
std::size_t state () const
 Get the internal state of the serialization handled by this state. More...
 
void state (std::size_t idx)
 Set the internal state of the serialization handled by this state. More...
 

Private Attributes

Fetch m_fetch
 
const void * m_value
 
const char * m_name
 
std::size_t m_stateidx
 

Detailed Description

State stack element for an iterator on a structure (serializer)

Member Typedef Documentation

typedef bool(* _Wolframe::serialize::SerializeState::Fetch)(Context &ctx, std::vector< SerializeState > &stk)

Constructor & Destructor Documentation

_Wolframe::serialize::SerializeState::SerializeState ( const SerializeState o)

Copy constructor.

_Wolframe::serialize::SerializeState::SerializeState ( const char *  name_,
Fetch  p,
const void *  v 
)

Constructor.

Member Function Documentation

Fetch _Wolframe::serialize::SerializeState::fetch ( ) const
inline

Get the fetch function of the object handled by this state.

const char* _Wolframe::serialize::SerializeState::name ( ) const
inline

Get the name of the object handled by this state.

std::size_t _Wolframe::serialize::SerializeState::state ( ) const
inline

Get the internal state of the serialization handled by this state.

void _Wolframe::serialize::SerializeState::state ( std::size_t  idx)
inline

Set the internal state of the serialization handled by this state.

const void* _Wolframe::serialize::SerializeState::value ( ) const
inline

Get the base pointer to the value of the object handled by this state.

Member Data Documentation

Fetch _Wolframe::serialize::SerializeState::m_fetch
private
const char* _Wolframe::serialize::SerializeState::m_name
private
std::size_t _Wolframe::serialize::SerializeState::m_stateidx
private
const void* _Wolframe::serialize::SerializeState::m_value
private

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