CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
l1t::Mask Class Reference

#include <Mask.h>

Public Member Functions

std::string getId ()
 
unsigned getPort ()
 
std::string getProcRole ()
 
 Mask ()
 
 Mask (std::string id, std::string procRole)
 
void setPort (std::string id)
 
void setProcRole (std::string procRole)
 

Private Attributes

std::string id_
 
unsigned port_
 
std::string procRole_
 

Detailed Description

Definition at line 7 of file Mask.h.

Constructor & Destructor Documentation

l1t::Mask::Mask ( )
inline

Definition at line 9 of file Mask.h.

9 {};
l1t::Mask::Mask ( std::string  id,
std::string  procRole 
)

Definition at line 5 of file Mask.cc.

References gpuClustering::id, id_, port_, and procRole_.

5  {
6  id_ = id;
7  port_ = std::stoi(id.substr(id.find_last_not_of("0123456789") + 1));
8  procRole_ = procRole;
9  }
uint16_t *__restrict__ id
std::string id_
Definition: Mask.h:19
unsigned port_
Definition: Mask.h:15
std::string procRole_
Definition: Mask.h:19

Member Function Documentation

std::string l1t::Mask::getId ( )
inline

Definition at line 15 of file Mask.h.

15 { return id_; };
std::string id_
Definition: Mask.h:19
unsigned l1t::Mask::getPort ( )
inline

Definition at line 14 of file Mask.h.

References port_.

14 { return port_; };
unsigned port_
Definition: Mask.h:15
std::string l1t::Mask::getProcRole ( )
inline

Definition at line 13 of file Mask.h.

References procRole_.

13 { return procRole_; };
std::string procRole_
Definition: Mask.h:19
void l1t::Mask::setPort ( std::string  id)

Definition at line 11 of file Mask.cc.

References gpuClustering::id, id_, and port_.

11  {
12  id_ = id;
13  port_ = std::stoi(id.substr(id.find_last_not_of("0123456789") + 1));
14  }
uint16_t *__restrict__ id
std::string id_
Definition: Mask.h:19
unsigned port_
Definition: Mask.h:15
void l1t::Mask::setProcRole ( std::string  procRole)
inline

Definition at line 11 of file Mask.h.

References procRole_.

11 { procRole_ = procRole; };
std::string procRole_
Definition: Mask.h:19

Member Data Documentation

std::string l1t::Mask::id_
private

Definition at line 19 of file Mask.h.

Referenced by Mask(), and setPort().

unsigned l1t::Mask::port_
private

Definition at line 15 of file Mask.h.

Referenced by getPort(), Mask(), and setPort().

std::string l1t::Mask::procRole_
private

Definition at line 19 of file Mask.h.

Referenced by getProcRole(), Mask(), and setProcRole().