Into

Modules

Documentation

classPiiSerialization::Accessor

#include <PiiSerialization.h>

A proxy through which calls to serialization member functions are passed.

Description

With intrusive serialization (serialize member function as opposed to an external serializer), it is a good practice to hide the serialization function(s) from the outer world by making them private. The serialization system can access these members if you also make this struct a friend of your class.

 class MyClass
 {
   friend struct PiiSerialization::Accessor;
   //... private serialization function(s) here ...
 };

Static public member functions

template<class Archive, class T>
static void
(
  • Archive & archive
  • T & value
  • const unsigned int version
)
template<class Archive, class T>
static void
(
  • Archive & archive
  • T & value
  • const unsigned int version
)
template<class Archive, class T>
static void
(
  • Archive & archive
  • T & value
  • const unsigned int version
)
template<class T>
static const PiiMetaObject *
(
  • const T * obj
)
template<class T>
static T *

Function details

  • template<class Archive, class T>

    static void load

    (
    • Archive & archive
    • T & value
    • const unsigned int version
    )
    [inline, static]
  • template<class Archive, class T>

    static void save

    (
    • Archive & archive
    • T & value
    • const unsigned int version
    )
    [inline, static]
  • template<class Archive, class T>

    static void serialize

    (
    • Archive & archive
    • T & value
    • const unsigned int version
    )
    [inline, static]
  • template<class T>

    static const PiiMetaObject * virtualMetaObject

    (
    • const T * obj
    )
    [inline, static]
  • template<class T>

    static T * voidConstruct

    ()
    [inline, static]
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.