Version number type. More...
#include <src/OpenFOAM/db/IOstreams/IOstreams/IOstream.H>
Version number type.
Definition at line 101 of file IOstream.H.
Public Member Functions | |
| versionNumber (const scalar num) | |
| Construct from number.
| |
| versionNumber (Istream &is) | |
| Construct from Istream.
| |
| int | numberToIndex (const scalar num) const |
| Convert a version number into an index.
| |
| int | majorVersion () const |
| Return major version.
| |
| int | minorVersion () const |
| Return minor version.
| |
| string | str () const |
| Return the versionNumber as a character string.
| |
| bool | operator== (const versionNumber &vn) |
| Are these versionNumbers the same?
| |
| bool | operator!= (const versionNumber &vn) |
| Are these versionNumbers different?
| |
| bool | operator< (const versionNumber &vn) |
| Is this version older than the one given.
| |
| bool | operator<= (const versionNumber &vn) |
| Is this version the same as or older than the one given.
| |
| bool | operator> (const versionNumber &vn) |
| Is this version newer than the one given.
| |
| bool | operator>= (const versionNumber &vn) |
| this version the same as or newer than the one given
| |
Friends | |
| Ostream & | operator<< (Ostream &os, const versionNumber &vn) |
| Ostream operator.
| |
| versionNumber | ( | const scalar | num ) | [inline]
|
Construct from number.
Definition at line 115 of file IOstream.H.
| versionNumber | ( | Istream & | is ) | [inline]
|
Construct from Istream.
Definition at line 122 of file IOstream.H.
| int numberToIndex | ( | const scalar | num ) | const [inline]
|
Convert a version number into an index.
Definition at line 132 of file IOstream.H.
| int majorVersion | ( | ) | const [inline]
|
Return major version.
Definition at line 138 of file IOstream.H.
Referenced by IOstream::versionNumber::minorVersion().
| int minorVersion | ( | ) | const [inline]
|
Return minor version.
Definition at line 144 of file IOstream.H.
References IOstream::versionNumber::majorVersion().
| Foam::string str | ( | ) | const |
Return the versionNumber as a character string.
Definition at line 114 of file IOstream.C.
References Foam::fixed().
Referenced by Foam::operator<<().
| bool operator== | ( | const versionNumber & | vn ) | [inline]
|
Are these versionNumbers the same?
Definition at line 156 of file IOstream.H.
| bool operator!= | ( | const versionNumber & | vn ) | [inline]
|
Are these versionNumbers different?
Definition at line 162 of file IOstream.H.
| bool operator< | ( | const versionNumber & | vn ) | [inline]
|
Is this version older than the one given.
Definition at line 168 of file IOstream.H.
| bool operator<= | ( | const versionNumber & | vn ) | [inline]
|
Is this version the same as or older than the one given.
Definition at line 174 of file IOstream.H.
| bool operator> | ( | const versionNumber & | vn ) | [inline]
|
Is this version newer than the one given.
Definition at line 180 of file IOstream.H.
| bool operator>= | ( | const versionNumber & | vn ) | [inline]
|
this version the same as or newer than the one given
Definition at line 186 of file IOstream.H.
| Ostream& operator<< | ( | Ostream & | os, |
| const versionNumber & | vn | ||
| ) | [friend]
|
Ostream operator.