Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

Monitor::BellMaster::BellCodeList Class Reference

#include <bclist.h>

List of all members.

Public Methods

 BellCodeList ()
 Constructor. More...

 BellCodeList (const BellCodeList &other)
 Copy constructor. More...

virtual ~BellCodeList ()
 Destructor. More...

const BellCodeList & operator= (const BellCodeList &other)
 Assignment operator. More...

void addBellCode (const BellCode &newBellCode)
void removeBellCode (const BellCode &oldBellCode)
void clear ()
 Remove all bell codes currently in the list. More...

const unsigned & size () const
BellCodeoperator[] (int index) const
const BellCodeList matchSequence (const string &sequence) const
 Identify bell codes matching the given sequence of rings. More...


Private Methods

TSListImp< BellCode > & getList () const

Private Attributes

TSListImp< BellCode > * myList
 Container for bell codes. More...

unsigned listSize
 Count of number of bell codes currently in the list. More...


Constructor & Destructor Documentation

BellCodeList::BellCodeList  
 

Constructor.

Definition at line 47 of file bclist.cpp.

References _USEMYTRACE_.

Referenced by matchSequence.

BellCodeList::BellCodeList const BellCodeList &    other
 

Copy constructor.

Definition at line 55 of file bclist.cpp.

References _USEMYTRACE_, and operator=.

BellCodeList::~BellCodeList   [virtual]
 

Destructor.

Definition at line 66 of file bclist.cpp.

References _USEMYTRACE_, and clear.


Member Function Documentation

void BellCodeList::addBellCode const BellCode   newBellCode
 

Definition at line 100 of file bclist.cpp.

References _USEMYTRACE_, getList, and listSize.

Referenced by operator=.

void BellCodeList::clear  
 

Remove all bell codes currently in the list.

Definition at line 122 of file bclist.cpp.

References _USEMYTRACE_, listSize, and myList.

Referenced by operator=, and ~BellCodeList.

TSListImp< BellCode > & BellCodeList::getList   const [private]
 

Returns:
Reference to bell code container, creates same if neccessary.

Definition at line 181 of file bclist.cpp.

References myList.

Referenced by addBellCode, matchSequence, operator[], and removeBellCode.

const BellCodeList BellCodeList::matchSequence const string &    sequence const
 

Identify bell codes matching the given sequence of rings.

Parameters:
Seuqnce  of rings to match.
Returns:
List of matching bell codes.

Definition at line 156 of file bclist.cpp.

References _USEMYTRACE_, BellCodeList, and getList.

const BellCodeList & BellCodeList::operator= const BellCodeList &    other
 

Assignment operator.

Definition at line 76 of file bclist.cpp.

References _USEMYTRACE_, addBellCode, and clear.

Referenced by BellCodeList.

BellCode & BellCodeList::operator[] int    index const
 

Returns:
Reference to the bell code[index] in list (starts at 0).

Definition at line 141 of file bclist.cpp.

References getList.

void BellCodeList::removeBellCode const BellCode   oldBellCode
 

Definition at line 111 of file bclist.cpp.

References _USEMYTRACE_, getList, and listSize.

const unsigned & BellCodeList::size   const
 

Returns:
Number of bell codes currently in the list.

Definition at line 133 of file bclist.cpp.

References listSize.


Member Data Documentation

unsigned Monitor::BellMaster::BellCodeList::listSize [private]
 

Count of number of bell codes currently in the list.

Definition at line 123 of file bclist.h.

Referenced by addBellCode, clear, removeBellCode, and size.

TSListImp< BellCode >* Monitor::BellMaster::BellCodeList::myList [private]
 

Container for bell codes.

Definition at line 118 of file bclist.h.

Referenced by clear, and getList.


Generated on Wed Oct 29 20:54:52 2003 for Bellmaster BC Common by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002