The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Enumerations | Functions
version.cpp File Reference
#include "version.hpp"
#include "serialization/string_utils.hpp"
#include "util.hpp"
#include <cassert>
#include <functional>
Include dependency graph for version.cpp:

Go to the source code of this file.

Enumerations

enum  COMP_TYPE
 

Functions

bool operator== (const version_info &l, const version_info &r)
 Equality operator for version_info. More...
 
bool operator!= (const version_info &l, const version_info &r)
 Inequality operator for version_info. More...
 
bool operator< (const version_info &l, const version_info &r)
 Less-than operator for version_info. More...
 
bool operator> (const version_info &l, const version_info &r)
 Greater-than operator for version_info. More...
 
bool operator<= (const version_info &l, const version_info &r)
 Less-than-or-equal operator for version_info. More...
 
bool operator>= (const version_info &l, const version_info &r)
 Greater-than-or-equal operator for version_info. More...
 
VERSION_COMP_OP parse_version_op (const std::string &op_str)
 
bool do_version_check (const version_info &a, VERSION_COMP_OP op, const version_info &b)
 

Enumeration Type Documentation

enum COMP_TYPE

Definition at line 143 of file version.cpp.

Function Documentation

bool do_version_check ( const version_info a,
VERSION_COMP_OP  op,
const version_info b 
)
bool operator!= ( const version_info ,
const version_info  
)

Inequality operator for version_info.

Definition at line 241 of file version.cpp.

References version_info::special_version().

bool operator< ( const version_info ,
const version_info  
)

Less-than operator for version_info.

Definition at line 246 of file version.cpp.

References version_info::special_version().

bool operator<= ( const version_info ,
const version_info  
)

Less-than-or-equal operator for version_info.

Definition at line 266 of file version.cpp.

bool operator== ( const version_info ,
const version_info  
)

Equality operator for version_info.

Definition at line 236 of file version.cpp.

References version_info::special_version().

bool operator> ( const version_info ,
const version_info  
)

Greater-than operator for version_info.

Definition at line 256 of file version.cpp.

References version_info::special_version().

bool operator>= ( const version_info ,
const version_info  
)

Greater-than-or-equal operator for version_info.

Definition at line 271 of file version.cpp.

VERSION_COMP_OP parse_version_op ( const std::string op_str)