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.

24  {
25  name_ = name;
28  mask_ = mask;
29  }

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

◆ ~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.

42 { return bitPosition_; }

References bitPosition_.

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

◆ mask()

uint32_t DCCTBDataField::mask ( )
inline

Definition at line 44 of file DCCDataMapper.h.

44 { return mask_; }

References mask_.

Referenced by DCCTBDataField().

◆ name()

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

◆ setBitPosition()

void DCCTBDataField::setBitPosition ( uint32_t  bitpos)
inline

Definition at line 41 of file DCCDataMapper.h.

41 { bitPosition_ = bitpos; }

References bitPosition_.

◆ setMask()

void DCCTBDataField::setMask ( uint32_t  maskvalue)
inline

Definition at line 43 of file DCCDataMapper.h.

43 { mask_ = maskvalue; }

References mask_.

◆ setName()

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

Return and set methods for field's data

Definition at line 34 of file DCCDataMapper.h.

34  {
35  name_.clear();
36  name_ = namestr;
37  }

References name_.

◆ setWordPosition()

void DCCTBDataField::setWordPosition ( uint32_t  wordpos)
inline

Definition at line 39 of file DCCDataMapper.h.

39 { wordPosition_ = wordpos; }

References wordPosition_.

◆ wordPosition()

uint32_t DCCTBDataField::wordPosition ( )
inline

Definition at line 40 of file DCCDataMapper.h.

40 { return wordPosition_; }

References wordPosition_.

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

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().

DCCTBDataField::wordPosition_
uint32_t wordPosition_
Definition: DCCDataMapper.h:53
DCCTBDataField::mask
uint32_t mask()
Definition: DCCDataMapper.h:44
DCCTBDataField::bitPosition_
uint32_t bitPosition_
Definition: DCCDataMapper.h:54
DCCTBDataField::bitPosition
uint32_t bitPosition()
Definition: DCCDataMapper.h:42
DCCTBDataField::mask_
uint32_t mask_
Definition: DCCDataMapper.h:55
DCCTBDataField::wordPosition
uint32_t wordPosition()
Definition: DCCDataMapper.h:40
DCCTBDataField::name
std::string name()
Definition: DCCDataMapper.h:38
DCCTBDataField::name_
std::string name_
Definition: DCCDataMapper.h:49