Version number type. More...
Public Member Functions | |
versionNumber (const scalar num) | |
Construct from number. More... | |
versionNumber (Istream &is) | |
Construct from Istream. More... | |
int | numberToIndex (const scalar num) const |
Convert a version number into an index. More... | |
int | majorVersion () const |
Return major version. More... | |
int | minorVersion () const |
Return minor version. More... | |
string | str () const |
Return the versionNumber as a character string. More... | |
bool | operator== (const versionNumber &vn) const |
Are these versionNumbers the same? More... | |
bool | operator!= (const versionNumber &vn) const |
Are these versionNumbers different? More... | |
bool | operator< (const versionNumber &vn) const |
Is this version older than the one given. More... | |
bool | operator<= (const versionNumber &vn) const |
Is this version the same as or older than the one given. More... | |
bool | operator> (const versionNumber &vn) const |
Is this version newer than the one given. More... | |
bool | operator>= (const versionNumber &vn) const |
This version the same as or newer than the one given. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const versionNumber &vn) |
Ostream operator. More... | |
Version number type.
Definition at line 96 of file IOstream.H.
|
inline |
Construct from number.
Definition at line 110 of file IOstream.H.
|
inline |
Construct from Istream.
Definition at line 117 of file IOstream.H.
|
inline |
Convert a version number into an index.
Definition at line 127 of file IOstream.H.
|
inline |
Return major version.
Definition at line 133 of file IOstream.H.
Referenced by IOstream::versionNumber::minorVersion().
|
inline |
Return minor version.
Definition at line 139 of file IOstream.H.
References IOstream::versionNumber::majorVersion(), and IOstream::versionNumber::str().
Foam::string str | ( | ) | const |
Return the versionNumber as a character string.
Definition at line 116 of file IOstream.C.
References Foam::fixed().
Referenced by IOstream::versionNumber::minorVersion(), Foam::operator<<(), and decomposedBlockData::writeData().
|
inline |
Are these versionNumbers the same?
Definition at line 151 of file IOstream.H.
|
inline |
Are these versionNumbers different?
Definition at line 157 of file IOstream.H.
|
inline |
Is this version older than the one given.
Definition at line 163 of file IOstream.H.
|
inline |
Is this version the same as or older than the one given.
Definition at line 169 of file IOstream.H.
|
inline |
Is this version newer than the one given.
Definition at line 175 of file IOstream.H.
|
inline |
This version the same as or newer than the one given.
Definition at line 181 of file IOstream.H.
References IOstream::versionNumber::operator<<.
|
friend |
Ostream operator.
Referenced by IOstream::versionNumber::operator>=(), and IOstream::unsetf().