v0.13.1
Public Member Functions | Public Attributes | List of all members
MoFEM::Version Struct Reference

#include <src/interfaces/UnknownInterface.hpp>

Public Member Functions

 Version ()
 
 Version (const int v[3])
 
 Version (const int minor, const int major, const int build)
 
std::string strVersion ()
 

Public Attributes

int majorVersion
 
int minorVersion
 
int buildVersion
 

Detailed Description

Examples
simple_contact_thermal.cpp.

Definition at line 22 of file UnknownInterface.hpp.

Constructor & Destructor Documentation

◆ Version() [1/3]

MoFEM::Version::Version ( )

Definition at line 26 of file UnknownInterface.hpp.

27 : majorVersion(MoFEM_VERSION_MAJOR), minorVersion(MoFEM_VERSION_MINOR),
28 buildVersion(MoFEM_VERSION_BUILD) {}

◆ Version() [2/3]

MoFEM::Version::Version ( const int  v[3])

Definition at line 29 of file UnknownInterface.hpp.

30 : majorVersion(v[0]), minorVersion(v[1]), buildVersion(v[2]) {}
double v
phase velocity of light in medium (cm/ns)

◆ Version() [3/3]

MoFEM::Version::Version ( const int  minor,
const int  major,
const int  build 
)

Definition at line 31 of file UnknownInterface.hpp.

32 : majorVersion(minor), minorVersion(major), buildVersion(build) {}

Member Function Documentation

◆ strVersion()

std::string MoFEM::Version::strVersion ( )
Examples
simple_contact_thermal.cpp.

Definition at line 34 of file UnknownInterface.hpp.

34 {
35 auto str = [](auto v) { return boost::lexical_cast<std::string>(v); };
36 return str(majorVersion) + "." + str(minorVersion) + "." +
37 str(buildVersion);
38 }

Member Data Documentation

◆ buildVersion

int MoFEM::Version::buildVersion

Definition at line 25 of file UnknownInterface.hpp.

◆ majorVersion

int MoFEM::Version::majorVersion

Definition at line 23 of file UnknownInterface.hpp.

◆ minorVersion

int MoFEM::Version::minorVersion

Definition at line 24 of file UnknownInterface.hpp.


The documentation for this struct was generated from the following file: