CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
CocoaUnitsCategory Class Reference

#include <CocoaUnitsTable.h>

Public Member Functions

 CocoaUnitsCategory (const ALIstring &name)
 
const ALIstringGetName () const
 
ALIint GetNameMxLen () const
 
ALIint GetSymbMxLen () const
 
CocoaUnitsContainerGetUnitsList ()
 
ALIint operator!= (const CocoaUnitsCategory &) const
 
ALIint operator== (const CocoaUnitsCategory &) const
 
void PrintCategory ()
 
void UpdateNameMxLen (ALIint len)
 
void UpdateSymbMxLen (ALIint len)
 
 ~CocoaUnitsCategory ()
 

Private Member Functions

 CocoaUnitsCategory (const CocoaUnitsCategory &)
 
CocoaUnitsCategoryoperator= (const CocoaUnitsCategory &)
 

Private Attributes

ALIstring Name
 
ALIint NameMxLen
 
ALIint SymbMxLen
 
CocoaUnitsContainer UnitsList
 

Detailed Description

Definition at line 59 of file CocoaUnitsTable.h.

Constructor & Destructor Documentation

◆ CocoaUnitsCategory() [1/2]

CocoaUnitsCategory::CocoaUnitsCategory ( const ALIstring name)

Definition at line 248 of file CocoaUnitsTable.cc.

248 : Name(name), UnitsList(), NameMxLen(0), SymbMxLen(0) {}

◆ ~CocoaUnitsCategory()

CocoaUnitsCategory::~CocoaUnitsCategory ( )

Definition at line 252 of file CocoaUnitsTable.cc.

252 {}

◆ CocoaUnitsCategory() [2/2]

CocoaUnitsCategory::CocoaUnitsCategory ( const CocoaUnitsCategory right)
private

Definition at line 256 of file CocoaUnitsTable.cc.

256 { *this = right; }

Member Function Documentation

◆ GetName()

const ALIstring& CocoaUnitsCategory::GetName ( ) const
inline

Definition at line 71 of file CocoaUnitsTable.h.

71 { return Name; }

References Name.

◆ GetNameMxLen()

ALIint CocoaUnitsCategory::GetNameMxLen ( ) const
inline

Definition at line 73 of file CocoaUnitsTable.h.

73 { return NameMxLen; }

References NameMxLen.

◆ GetSymbMxLen()

ALIint CocoaUnitsCategory::GetSymbMxLen ( ) const
inline

Definition at line 74 of file CocoaUnitsTable.h.

74 { return SymbMxLen; }

References SymbMxLen.

◆ GetUnitsList()

CocoaUnitsContainer& CocoaUnitsCategory::GetUnitsList ( )
inline

Definition at line 72 of file CocoaUnitsTable.h.

72 { return UnitsList; }

References UnitsList.

◆ operator!=()

ALIint CocoaUnitsCategory::operator!= ( const CocoaUnitsCategory right) const

Definition at line 276 of file CocoaUnitsTable.cc.

276 { return (this != &right); }

◆ operator=()

CocoaUnitsCategory & CocoaUnitsCategory::operator= ( const CocoaUnitsCategory right)
private

Definition at line 260 of file CocoaUnitsTable.cc.

260  {
261  if (this != &right) {
262  Name = right.Name;
263  UnitsList = right.UnitsList;
264  NameMxLen = right.NameMxLen;
265  SymbMxLen = right.SymbMxLen;
266  }
267  return *this;
268 }

References Name, NameMxLen, SymbMxLen, and UnitsList.

◆ operator==()

ALIint CocoaUnitsCategory::operator== ( const CocoaUnitsCategory right) const

Definition at line 272 of file CocoaUnitsTable.cc.

272 { return (this == &right); }

◆ PrintCategory()

void CocoaUnitsCategory::PrintCategory ( )

Definition at line 280 of file CocoaUnitsTable.cc.

280  {
281  std::cout << "\n category: " << Name << std::endl;
282  for (size_t i = 0; i < UnitsList.size(); i++)
283  UnitsList[i]->PrintDefinition();
284 }

References gather_cfg::cout, mps_fire::i, Name, and UnitsList.

◆ UpdateNameMxLen()

void CocoaUnitsCategory::UpdateNameMxLen ( ALIint  len)
inline

Definition at line 75 of file CocoaUnitsTable.h.

75  {
76  if (NameMxLen < len)
77  NameMxLen = len;
78  }

References NameMxLen.

◆ UpdateSymbMxLen()

void CocoaUnitsCategory::UpdateSymbMxLen ( ALIint  len)
inline

Definition at line 79 of file CocoaUnitsTable.h.

79  {
80  if (SymbMxLen < len)
81  SymbMxLen = len;
82  }

References SymbMxLen.

Member Data Documentation

◆ Name

ALIstring CocoaUnitsCategory::Name
private

Definition at line 86 of file CocoaUnitsTable.h.

Referenced by GetName(), operator=(), and PrintCategory().

◆ NameMxLen

ALIint CocoaUnitsCategory::NameMxLen
private

Definition at line 88 of file CocoaUnitsTable.h.

Referenced by GetNameMxLen(), operator=(), and UpdateNameMxLen().

◆ SymbMxLen

ALIint CocoaUnitsCategory::SymbMxLen
private

Definition at line 89 of file CocoaUnitsTable.h.

Referenced by GetSymbMxLen(), operator=(), and UpdateSymbMxLen().

◆ UnitsList

CocoaUnitsContainer CocoaUnitsCategory::UnitsList
private

Definition at line 87 of file CocoaUnitsTable.h.

Referenced by GetUnitsList(), operator=(), and PrintCategory().

mps_fire.i
i
Definition: mps_fire.py:428
gather_cfg.cout
cout
Definition: gather_cfg.py:144
CocoaUnitsCategory::NameMxLen
ALIint NameMxLen
Definition: CocoaUnitsTable.h:88
CocoaUnitsCategory::SymbMxLen
ALIint SymbMxLen
Definition: CocoaUnitsTable.h:89
CocoaUnitsCategory::Name
ALIstring Name
Definition: CocoaUnitsTable.h:86
CocoaUnitsCategory::UnitsList
CocoaUnitsContainer UnitsList
Definition: CocoaUnitsTable.h:87
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17