PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
Loading...
Searching...
No Matches
podioVersion.in.h File Reference
#include <cstdint>
#include <sstream>
#include <ostream>
#include <tuple>

Go to the source code of this file.

Classes

struct  podio::version::Version
 

Namespaces

namespace  podio
 
namespace  podio::version
 

Macros

#define PODIO_VERSION(major, minor, patch)    ((UINT64_C(major) << 32) | (UINT64_C(minor) << 16) | UINT64_C(patch))
 Define a version to be used in podio.
 
#define PODIO_MAJOR_VERSION(v)   (((v) & (-1UL >> 16)) >> 32)
 Get the major version from a preprocessor defined version.
 
#define PODIO_MINOR_VERSION(v)   (((v) & (-1UL >> 32)) >> 16)
 Get the minor version from a preprocessor defined version.
 
#define PODIO_PATCH_VERSION(v)   ((v) & (-1UL >> 48))
 Get the patch version from a preprocessor defined version.
 
#define podio_VERSION_MAJOR   @podio_VERSION_MAJOR@
 
#define podio_VERSION_MINOR   @podio_VERSION_MINOR@
 
#define podio_VERSION_PATCH   @podio_VERSION_PATCH@
 
#define podio_VERSION   PODIO_VERSION(podio_VERSION_MAJOR, podio_VERSION_MINOR, podio_VERSION_PATCH)
 
#define PODIO_BUILD_VERSION   PODIO_VERSION(podio_VERSION_MAJOR, podio_VERSION_MINOR, podio_VERSION_PATCH)
 The encoded version with which podio has been built.
 
#define DEFINE_COMP_OPERATOR(OP)
 

Functions

std::ostream & podio::version::operator<< (std::ostream &os, const Version &v)
 

Macro Definition Documentation

◆ DEFINE_COMP_OPERATOR

#define DEFINE_COMP_OPERATOR (   OP)
Value:
constexpr bool operator OP(const Version& o) const noexcept { \
return std::tie(major, minor, patch) OP std::tie(o.major, o.minor, o.patch); \
}

Definition at line 50 of file podioVersion.in.h.

◆ PODIO_BUILD_VERSION

The encoded version with which podio has been built.

Definition at line 32 of file podioVersion.in.h.

◆ PODIO_MAJOR_VERSION

#define PODIO_MAJOR_VERSION (   v)    (((v) & (-1UL >> 16)) >> 32)

Get the major version from a preprocessor defined version.

Definition at line 19 of file podioVersion.in.h.

◆ PODIO_MINOR_VERSION

#define PODIO_MINOR_VERSION (   v)    (((v) & (-1UL >> 32)) >> 16)

Get the minor version from a preprocessor defined version.

Definition at line 21 of file podioVersion.in.h.

◆ PODIO_PATCH_VERSION

#define PODIO_PATCH_VERSION (   v)    ((v) & (-1UL >> 48))

Get the patch version from a preprocessor defined version.

Definition at line 23 of file podioVersion.in.h.

◆ PODIO_VERSION

#define PODIO_VERSION (   major,
  minor,
  patch 
)     ((UINT64_C(major) << 32) | (UINT64_C(minor) << 16) | UINT64_C(patch))

Define a version to be used in podio.

Definition at line 16 of file podioVersion.in.h.

◆ podio_VERSION

Definition at line 29 of file podioVersion.in.h.

◆ podio_VERSION_MAJOR

#define podio_VERSION_MAJOR   @podio_VERSION_MAJOR@

Definition at line 26 of file podioVersion.in.h.

◆ podio_VERSION_MINOR

#define podio_VERSION_MINOR   @podio_VERSION_MINOR@

Definition at line 27 of file podioVersion.in.h.

◆ podio_VERSION_PATCH

#define podio_VERSION_PATCH   @podio_VERSION_PATCH@

Definition at line 28 of file podioVersion.in.h.