C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::detail::meta_object Struct Reference

Enables destroying, constructing and serializing objects through type-erased pointers. More...

#include <meta_object.hpp>

Public Attributes

std::string_view type_name
 Stores a human-readable representation of the type's name.
 
size_t padded_size
 Stores how many Bytes objects of this type require, including padding for aligning to max_align_t.
 
size_t simple_size
 Stores the result of sizeof for the type.
 
void(* destroy )(void *) noexcept
 Calls the destructor for given object.
 
void(* default_construct )(void *)
 Creates a new object at given memory location by calling the default constructor.
 
void(* copy_construct )(void *, const void *)
 Creates a new object at given memory location by calling the copy constructor.
 
void(* move_construct )(void *, void *)
 Creates a new object at given memory location by calling the move constructor.
 
bool(* save_binary )(caf::binary_serializer &, const void *)
 Applies an object to a binary serializer.
 
bool(* load_binary )(caf::binary_deserializer &, void *)
 Applies an object to a binary deserializer.
 
bool(* save )(caf::serializer &, const void *)
 Applies an object to a generic serializer.
 
bool(* load )(caf::deserializer &, void *)
 Applies an object to a generic deserializer.
 
void(* stringify )(std::string &, const void *)
 Appends a string representation of an object to a buffer.
 

Detailed Description

Enables destroying, constructing and serializing objects through type-erased pointers.


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