File podioVersion.h

Defines

PODIO_VERSION(major, minor, patch)

Define a version to be used in podio.

PODIO_MAJOR_VERSION(v)

Get the major version from a preprocessor defined version.

PODIO_MINOR_VERSION(v)

Get the minor version from a preprocessor defined version.

PODIO_PATCH_VERSION(v)

Get the patch version from a preprocessor defined version.

podio_VERSION_MAJOR
podio_VERSION_MINOR
podio_VERSION_PATCH
podio_VERSION
PODIO_BUILD_VERSION

The encoded version with which podio has been built.

DEFINE_COMP_OPERATOR(OP)
namespace podio
namespace version

Functions

inline std::ostream &operator<<(std::ostream &os, const Version &v)
static constexpr Version decode_version(unsigned long version) noexcept

Decode a version from a 64 bit unsigned.

Variables

static constexpr Version build_version = {podio_VERSION_MAJOR, podio_VERSION_MINOR, podio_VERSION_PATCH}

The current build version.

struct Version
#include <podio/podioVersion.h>

Version class consisting of 3 16 bit unsigned integers to hold the major, minor and patch version.

Provides constexpr comparison operators that allow to use this class in constexpr-if clauses.

Public Members

uint16_t major = {0}
uint16_t minor = {0}
uint16_t patch = {0}

Friends

friend std::ostream &operator<<(std::ostream&, const Version &v)