IOstream::versionNumber Class Reference

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

Ostreamoperator<< (Ostream &os, const versionNumber &vn)
 Ostream operator. More...
 

Detailed Description

Version number type.

Definition at line 96 of file IOstream.H.

Constructor & Destructor Documentation

◆ versionNumber() [1/2]

versionNumber ( const scalar  num)
inline

Construct from number.

Definition at line 110 of file IOstream.H.

◆ versionNumber() [2/2]

versionNumber ( Istream is)
inline

Construct from Istream.

Definition at line 117 of file IOstream.H.

Member Function Documentation

◆ numberToIndex()

int numberToIndex ( const scalar  num) const
inline

Convert a version number into an index.

Definition at line 127 of file IOstream.H.

◆ majorVersion()

int majorVersion ( ) const
inline

Return major version.

Definition at line 133 of file IOstream.H.

Referenced by IOstream::versionNumber::minorVersion().

Here is the caller graph for this function:

◆ minorVersion()

int minorVersion ( ) const
inline

Return minor version.

Definition at line 139 of file IOstream.H.

References IOstream::versionNumber::majorVersion().

Here is the call graph for this function:

◆ 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 Foam::operator<<(), and decomposedBlockData::writeData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator==()

bool operator== ( const versionNumber vn) const
inline

Are these versionNumbers the same?

Definition at line 151 of file IOstream.H.

◆ operator!=()

bool operator!= ( const versionNumber vn) const
inline

Are these versionNumbers different?

Definition at line 157 of file IOstream.H.

◆ operator<()

bool operator< ( const versionNumber vn) const
inline

Is this version older than the one given.

Definition at line 163 of file IOstream.H.

◆ operator<=()

bool operator<= ( const versionNumber vn) const
inline

Is this version the same as or older than the one given.

Definition at line 169 of file IOstream.H.

◆ operator>()

bool operator> ( const versionNumber vn) const
inline

Is this version newer than the one given.

Definition at line 175 of file IOstream.H.

◆ operator>=()

bool operator>= ( const versionNumber vn) const
inline

This version the same as or newer than the one given.

Definition at line 181 of file IOstream.H.

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream os,
const versionNumber vn 
)
friend

Ostream operator.


The documentation for this class was generated from the following files: