CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

CocoaUnitsCategory Class Reference

#include <CocoaUnitsTable.h>

List of all members.

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 69 of file CocoaUnitsTable.h.


Constructor & Destructor Documentation

CocoaUnitsCategory::CocoaUnitsCategory ( const ALIstring name)

Definition at line 264 of file CocoaUnitsTable.cc.

CocoaUnitsCategory::~CocoaUnitsCategory ( )

Definition at line 271 of file CocoaUnitsTable.cc.

{
}
CocoaUnitsCategory::CocoaUnitsCategory ( const CocoaUnitsCategory right) [private]

Definition at line 277 of file CocoaUnitsTable.cc.

{
  *this = right;
}

Member Function Documentation

const ALIstring& CocoaUnitsCategory::GetName ( ) const [inline]

Definition at line 85 of file CocoaUnitsTable.h.

References Name.

{return Name;}
ALIint CocoaUnitsCategory::GetNameMxLen ( ) const [inline]

Definition at line 87 of file CocoaUnitsTable.h.

References NameMxLen.

{return NameMxLen;}
ALIint CocoaUnitsCategory::GetSymbMxLen ( ) const [inline]

Definition at line 88 of file CocoaUnitsTable.h.

References SymbMxLen.

{return SymbMxLen;}
CocoaUnitsContainer& CocoaUnitsCategory::GetUnitsList ( ) [inline]

Definition at line 86 of file CocoaUnitsTable.h.

References UnitsList.

{return UnitsList;}
ALIint CocoaUnitsCategory::operator!= ( const CocoaUnitsCategory right) const

Definition at line 305 of file CocoaUnitsTable.cc.

{
  return (this != (CocoaUnitsCategory *) &right);
}
CocoaUnitsCategory & CocoaUnitsCategory::operator= ( const CocoaUnitsCategory right) [private]

Definition at line 284 of file CocoaUnitsTable.cc.

References Name, NameMxLen, SymbMxLen, and UnitsList.

{
  if (this != &right)
    {
      Name      = right.Name;
      UnitsList = right.UnitsList;
      NameMxLen = right.NameMxLen;
      SymbMxLen = right.SymbMxLen;
    }
  return *this;
}
ALIint CocoaUnitsCategory::operator== ( const CocoaUnitsCategory right) const

Definition at line 298 of file CocoaUnitsTable.cc.

{
  return (this == (CocoaUnitsCategory *) &right);
}
void CocoaUnitsCategory::PrintCategory ( )

Definition at line 312 of file CocoaUnitsTable.cc.

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

{
  std::cout << "\n  category: " << Name << std::endl;
  for(size_t i=0;i<UnitsList.size();i++)
      UnitsList[i]->PrintDefinition();
}
void CocoaUnitsCategory::UpdateNameMxLen ( ALIint  len) [inline]

Definition at line 89 of file CocoaUnitsTable.h.

References NameMxLen.

{if (NameMxLen<len) NameMxLen=len;}
void CocoaUnitsCategory::UpdateSymbMxLen ( ALIint  len) [inline]

Definition at line 90 of file CocoaUnitsTable.h.

References SymbMxLen.

{if (SymbMxLen<len) SymbMxLen=len;}

Member Data Documentation

Definition at line 95 of file CocoaUnitsTable.h.

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

Definition at line 97 of file CocoaUnitsTable.h.

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

Definition at line 98 of file CocoaUnitsTable.h.

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

Definition at line 96 of file CocoaUnitsTable.h.

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