Celeritas  0.5.0-56+6b053cd
Classes | Macros | Functions
src/corecel/sys/Version.hh File Reference
#include <array>
#include <cstdlib>
#include <iosfwd>
#include <string>
#include <string_view>
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::Version
 Simple version comparison. More...
 

Macros

#define CELER_DEFINE_VERSION_CMP(TOKEN)
 

Functions

bool celeritas::operator== (Version const &lhs, Version const &rhs)
 
bool celeritas::operator!= (Version const &lhs, Version const &rhs)
 
bool celeritas::operator< (Version const &lhs, Version const &rhs)
 
bool celeritas::operator> (Version const &lhs, Version const &rhs)
 
bool celeritas::operator<= (Version const &lhs, Version const &rhs)
 
bool celeritas::operator>= (Version const &lhs, Version const &rhs)
 
std::ostream & celeritas::operator<< (std::ostream &os, Version const &v)
 Write to a stream.
 
std::string celeritas::to_string (Version const &v)
 Save as a string.
 
Version celeritas::celer_version ()
 Get the Celeritas version.
 

Macro Definition Documentation

◆ CELER_DEFINE_VERSION_CMP

#define CELER_DEFINE_VERSION_CMP (   TOKEN)
Value:
inline bool operator TOKEN(Version const& lhs, Version const& rhs) \
{ \
return lhs.value() TOKEN rhs.value(); \
}