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

#include <src/interfaces/UnknownInterface.hpp>

Collaboration diagram for MoFEM::Version:
[legend]

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 12 of file UnknownInterface.hpp.

Constructor & Destructor Documentation

◆ Version() [1/3]

MoFEM::Version::Version ( )
inline

Definition at line 16 of file UnknownInterface.hpp.

17 : majorVersion(MoFEM_VERSION_MAJOR), minorVersion(MoFEM_VERSION_MINOR),
18 buildVersion(MoFEM_VERSION_BUILD) {}

◆ Version() [2/3]

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

Definition at line 19 of file UnknownInterface.hpp.

20 : majorVersion(v[0]), minorVersion(v[1]), buildVersion(v[2]) {}
const 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 
)
inline

Definition at line 21 of file UnknownInterface.hpp.

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

Member Function Documentation

◆ strVersion()

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

Definition at line 24 of file UnknownInterface.hpp.

24 {
25 auto str = [](auto v) { return boost::lexical_cast<std::string>(v); };
26 return str(majorVersion) + "." + str(minorVersion) + "." +
27 str(buildVersion);
28 }

Member Data Documentation

◆ buildVersion

int MoFEM::Version::buildVersion

Definition at line 15 of file UnknownInterface.hpp.

◆ majorVersion

int MoFEM::Version::majorVersion

Definition at line 13 of file UnknownInterface.hpp.

◆ minorVersion

int MoFEM::Version::minorVersion

Definition at line 14 of file UnknownInterface.hpp.


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