Into

Modules

Documentation

namespace referencePiiSerializationTraits

A namespace that contains classes for specifying traits for serializable types.

Traits are specific to a type; they do not apply to derived types. For example, the version number of a base class has no effect on its children. The same applies to the ClassInfo and Tracking traits: if you want the class info to be saved or pointers to be tracked, the ClassInfo/Tracking trait must be enabled for the exact type used in serialization. If you disable ClassInfo or Tracking for type A, version number of B will be stored and pointers to it tracked, even if B was a subclass of A.

Traits (except for Version) cannot be changed between save and load. Doing so will invalidate your archives.

Classes

struct

Class information trait.

struct
struct

Class name trait.

struct
struct

A type trait for checking the abstractness of a type.

struct
struct

A type trait for checking the primitiveness of a type.

struct

A type trait for checking the primitiveness of a type.

struct

Pointer tracking trait.

struct
struct

Class version trait.

struct

Functions

(
  • char
)
(
  • bool
)
(
  • double
)
(
  • float
)
(
  • long
)
(
  • short
)

Function details

  • PII_NAME_TYPE

    (
    • char
    )

    #include <PiiSerializationTraits.h>

  • PII_NAME_TYPE

    (
    • bool
    )

    #include <PiiSerializationTraits.h>

  • PII_NAME_TYPE

    (
    • double
    )

    #include <PiiSerializationTraits.h>

  • PII_NAME_TYPE

    (
    • float
    )

    #include <PiiSerializationTraits.h>

  • PII_NAME_TYPE

    (
    • long
    )

    #include <PiiSerializationTraits.h>

  • PII_NAME_TYPE

    (
    • int
    )

    #include <PiiSerializationTraits.h>

  • PII_NAME_TYPE

    (
    • short
    )

    #include <PiiSerializationTraits.h>

Notes (0)

Add a note

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