CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
DCCTBDataField Class Reference

#include <DCCDataMapper.h>

Public Member Functions

uint32_t bitPosition ()
 
 DCCTBDataField (std::string name, uint32_t wordPosition, uint32_t bitPosition, uint32_t mask)
 
uint32_t mask ()
 
std::string name ()
 
void setBitPosition (uint32_t bitpos)
 
void setMask (uint32_t maskvalue)
 
void setName (std::string namestr)
 
void setWordPosition (uint32_t wordpos)
 
uint32_t wordPosition ()
 
 ~DCCTBDataField ()
 

Protected Attributes

uint32_t bitPosition_
 
uint32_t mask_
 
std::string name_
 
uint32_t wordPosition_
 

Detailed Description

Definition at line 19 of file DCCDataMapper.h.

Constructor & Destructor Documentation

◆ DCCTBDataField()

DCCTBDataField::DCCTBDataField ( std::string  name,
uint32_t  wordPosition,
uint32_t  bitPosition,
uint32_t  mask 
)
inline

Class constructor (sets data field's characteristics)

Definition at line 24 of file DCCDataMapper.h.

References bitPosition(), bitPosition_, mask(), mask_, name(), name_, wordPosition(), and wordPosition_.

24  {
25  name_ = name;
28  mask_ = mask;
29  }
std::string name()
Definition: DCCDataMapper.h:38
uint32_t mask_
Definition: DCCDataMapper.h:55
uint32_t bitPosition()
Definition: DCCDataMapper.h:42
uint32_t mask()
Definition: DCCDataMapper.h:44
uint32_t bitPosition_
Definition: DCCDataMapper.h:54
uint32_t wordPosition()
Definition: DCCDataMapper.h:40
std::string name_
Definition: DCCDataMapper.h:49
uint32_t wordPosition_
Definition: DCCDataMapper.h:53

◆ ~DCCTBDataField()

DCCTBDataField::~DCCTBDataField ( )
inline

Class destructor

Definition at line 49 of file DCCDataMapper.h.

49 {};

Member Function Documentation

◆ bitPosition()

uint32_t DCCTBDataField::bitPosition ( )
inline

Definition at line 42 of file DCCDataMapper.h.

References bitPosition_.

Referenced by DCCTBDataField(), and DCCTBDataFieldComparator::operator()().

42 { return bitPosition_; }
uint32_t bitPosition_
Definition: DCCDataMapper.h:54

◆ mask()

uint32_t DCCTBDataField::mask ( )
inline

Definition at line 44 of file DCCDataMapper.h.

References mask_.

Referenced by DCCTBDataField().

44 { return mask_; }
uint32_t mask_
Definition: DCCDataMapper.h:55

◆ name()

std::string DCCTBDataField::name ( void  )
inline

◆ setBitPosition()

void DCCTBDataField::setBitPosition ( uint32_t  bitpos)
inline

Definition at line 41 of file DCCDataMapper.h.

References bitPosition_.

41 { bitPosition_ = bitpos; }
uint32_t bitPosition_
Definition: DCCDataMapper.h:54

◆ setMask()

void DCCTBDataField::setMask ( uint32_t  maskvalue)
inline

Definition at line 43 of file DCCDataMapper.h.

References mask_.

43 { mask_ = maskvalue; }
uint32_t mask_
Definition: DCCDataMapper.h:55

◆ setName()

void DCCTBDataField::setName ( std::string  namestr)
inline

Return and set methods for field's data

Definition at line 34 of file DCCDataMapper.h.

References name_.

34  {
35  name_.clear();
36  name_ = namestr;
37  }
std::string name_
Definition: DCCDataMapper.h:49

◆ setWordPosition()

void DCCTBDataField::setWordPosition ( uint32_t  wordpos)
inline

Definition at line 39 of file DCCDataMapper.h.

References wordPosition_.

39 { wordPosition_ = wordpos; }
uint32_t wordPosition_
Definition: DCCDataMapper.h:53

◆ wordPosition()

uint32_t DCCTBDataField::wordPosition ( )
inline

Definition at line 40 of file DCCDataMapper.h.

References wordPosition_.

Referenced by DCCTBDataField(), and DCCTBDataFieldComparator::operator()().

40 { return wordPosition_; }
uint32_t wordPosition_
Definition: DCCDataMapper.h:53

Member Data Documentation

◆ bitPosition_

uint32_t DCCTBDataField::bitPosition_
protected

Definition at line 54 of file DCCDataMapper.h.

Referenced by bitPosition(), DCCTBDataField(), and setBitPosition().

◆ mask_

uint32_t DCCTBDataField::mask_
protected

Definition at line 55 of file DCCDataMapper.h.

Referenced by DCCTBDataField(), mask(), and setMask().

◆ name_

std::string DCCTBDataField::name_
protected

Definition at line 49 of file DCCDataMapper.h.

Referenced by DCCTBDataField(), name(), and setName().

◆ wordPosition_

uint32_t DCCTBDataField::wordPosition_
protected

Definition at line 53 of file DCCDataMapper.h.

Referenced by DCCTBDataField(), setWordPosition(), and wordPosition().