Jpp 20.0.0-rc.8
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JPutStatusBit Struct Reference

Auxiliary class to map status bit to key. More...

#include <JStatus.hh>

Inheritance diagram for JLANG::JPutStatusBit:
std::map< int, std::string >

Public Member Functions

 JPutStatusBit (const JGetStatusBit &input)
 Constructor.
 
const std::string & operator() (const int bit) const
 Put status bit.
 

Detailed Description

Auxiliary class to map status bit to key.

Definition at line 278 of file JStatus.hh.

Constructor & Destructor Documentation

◆ JPutStatusBit()

JLANG::JPutStatusBit::JPutStatusBit ( const JGetStatusBit & input)
inline

Constructor.

Parameters
inputstatus bits

Definition at line 286 of file JStatus.hh.

287 {
288 using namespace std;
289
290 for (JGetStatusBit::const_iterator i = input.begin(); i != input.end(); ++i) {
291 this->insert(make_pair(i->second, i->first));
292 }
293 }

Member Function Documentation

◆ operator()()

const std::string & JLANG::JPutStatusBit::operator() ( const int bit) const
inline

Put status bit.

Parameters
bitbit
Returns
key

Definition at line 302 of file JStatus.hh.

303 {
304 return this->at(bit);
305 }

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