PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
Loading...
Searching...
No Matches
podio::version::Version Struct Reference

#include <podioVersion.in.h>

Public Member Functions

 operator std::string () const
 

Public Attributes

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

Friends

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

Detailed Description

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.

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

Member Function Documentation

◆ operator std::string()

podio::version::Version::operator std::string ( ) const
inlineexplicit

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

65 {
66 std::stringstream ss;
67 ss << *this;
68 return ss.str();
69 };

Friends And Related Function Documentation

◆ operator<<

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

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

74 {
75 return os << v.major << "." << v.minor << "." << v.patch;
76}

Member Data Documentation

◆ major

uint16_t podio::version::Version::major {0}

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

◆ minor

uint16_t podio::version::Version::minor {0}

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

◆ patch

uint16_t podio::version::Version::patch {0}

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


The documentation for this struct was generated from the following file: