Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::FlexLMTools< FeatureModel > Class Template Reference

Wrapper to access FlexLMMng for a given set of features. More...

#include <arcane/impl/FlexLMTools.h>

Collaboration diagram for Arcane::FlexLMTools< FeatureModel >:

Public Member Functions

 FlexLMTools ()
 Constructor.
virtual ~FlexLMTools ()
 Destructor.
bool checkLicense (typename FeatureModel::eFeature feature, const bool do_fatal) const
 Tests the availability of a feature.
bool checkLicense (typename FeatureModel::eFeature feature, const Real version, const bool do_fatal) const
 Tests the availability of a feature on a maximum version.
void getLicense (typename FeatureModel::eFeature feature, Integer nb_licenses=1)
 Requests the allocation of.
void releaseLicense (typename FeatureModel::eFeature feature, Integer nb_licenses=0)
 Releases.
String featureInfo (typename FeatureModel::eFeature feature) const
 Return info on feature.

Detailed Description

template<typename FeatureModel>
class Arcane::FlexLMTools< FeatureModel >

Wrapper to access FlexLMMng for a given set of features.

Definition at line 139 of file FlexLMTools.h.

Constructor & Destructor Documentation

◆ FlexLMTools()

template<typename FeatureModel>
Arcane::FlexLMTools< FeatureModel >::FlexLMTools ( )
inline

Constructor.

Definition at line 144 of file FlexLMTools.h.

◆ ~FlexLMTools()

template<typename FeatureModel>
virtual Arcane::FlexLMTools< FeatureModel >::~FlexLMTools ( )
inlinevirtual

Destructor.

Definition at line 147 of file FlexLMTools.h.

Member Function Documentation

◆ checkLicense() [1/2]

template<typename FeatureModel>
bool Arcane::FlexLMTools< FeatureModel >::checkLicense ( typename FeatureModel::eFeature feature,
const bool do_fatal ) const
inline

Tests the availability of a feature.

Returns
true if no error

Definition at line 153 of file FlexLMTools.h.

References Arcane::FlexLMMng::checkLicense(), and Arcane::FlexLMMng::instance().

Here is the call graph for this function:

◆ checkLicense() [2/2]

template<typename FeatureModel>
bool Arcane::FlexLMTools< FeatureModel >::checkLicense ( typename FeatureModel::eFeature feature,
const Real version,
const bool do_fatal ) const
inline

Tests the availability of a feature on a maximum version.

The version can be used to test a quantity; e.g., 3 for a maximum of 3 components

Returns
true if no error

Definition at line 163 of file FlexLMTools.h.

References Arcane::FlexLMMng::checkLicense(), and Arcane::FlexLMMng::instance().

Here is the call graph for this function:

◆ featureInfo()

template<typename FeatureModel>
String Arcane::FlexLMTools< FeatureModel >::featureInfo ( typename FeatureModel::eFeature feature) const
inline

Return info on feature.

Definition at line 187 of file FlexLMTools.h.

References Arcane::FlexLMMng::featureInfo(), and Arcane::FlexLMMng::instance().

Here is the call graph for this function:

◆ getLicense()

template<typename FeatureModel>
void Arcane::FlexLMTools< FeatureModel >::getLicense ( typename FeatureModel::eFeature feature,
Integer nb_licenses = 1 )
inline

Requests the allocation of.

Parameters
nb_licensesfor the feature
feature
Returns
0 if no error

Definition at line 171 of file FlexLMTools.h.

References Arcane::FlexLMMng::getLicense(), and Arcane::FlexLMMng::instance().

Here is the call graph for this function:

◆ releaseLicense()

template<typename FeatureModel>
void Arcane::FlexLMTools< FeatureModel >::releaseLicense ( typename FeatureModel::eFeature feature,
Integer nb_licenses = 0 )
inline

Releases.

Parameters
nb_licensesfor the feature
feature
Returns
0 if no error

Definition at line 180 of file FlexLMTools.h.

References Arcane::FlexLMMng::instance(), and Arcane::FlexLMMng::releaseLicense().

Here is the call graph for this function:

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