HDTree  0.5.2
HDTree C++ API
ClassVersion.h File Reference

Serialization class version deduction. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hdtree::class_version_impl::enable_if_type< T, R >
 Check if the passed type T is a valid type at compile time. More...
 
struct  hdtree::class_version_impl::deducer< T, Enable >
 Underlying struct deducing the version of a class. More...
 
struct  hdtree::class_version_impl::deducer< T, typename enable_if_type< typename T::version >::type >
 Underlying struct deducing the version of a class. More...
 

Namespaces

 hdtree
 Geant4 does a GLOBAL definition of the keyword TRUE.
 
 hdtree::class_version_impl
 hide the SFINAE confusing nonsense from the rest of the world
 

Macros

#define hdtree_class_version(VERS)    using version = std::integral_constant<int, VERS>
 define the version number for a class More...
 

Variables

template<typename T >
constexpr int hdtree::class_version
 Helper const expression to pull out class version number. More...
 

Detailed Description

Serialization class version deduction.

Macro Definition Documentation

◆ hdtree_class_version

#define hdtree_class_version (   VERS)     using version = std::integral_constant<int, VERS>

define the version number for a class

Put this macro within the class declaration in order to define its version number as a class used for data serialization in hdtree. Without this macro, the version will default to zero.