Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

SctData::Defect Class Reference

Represents a defect - basically a union of a ModuleElement and a DefectPrototype. More...

#include <Defect.h>

Collaboration diagram for SctData::Defect:

Collaboration graph
[legend]

Public Member Functions

 Defect (const DefectPrototype &proto, ModuleElement element)
const ModuleElementgetModuleElement () const
 Gets the module element affected by this defect.

const DefectPrototypegetPrototype () const
 Get the DefectPrototype.

bool operator== (const Defect &defect) const
 Compares two defects returning true if they are the same.


Private Attributes

const DefectPrototypeprototype
 The prototype - pointer to allow assignment operator to work - points to static object so no need to delete.

ModuleElement element
 The element.


Detailed Description

Represents a defect - basically a union of a ModuleElement and a DefectPrototype.

Author:
Matthew Palmer

Definition at line 15 of file Defect.h.


Member Function Documentation

const ModuleElement& SctData::Defect::getModuleElement  )  const [inline]
 

Gets the module element affected by this defect.

Note:
Nothrow

Definition at line 23 of file Defect.h.

References element.

Referenced by SctData::DefectList::addDefect().

const DefectPrototype& SctData::Defect::getPrototype  )  const [inline]
 

Get the DefectPrototype.

Note:
Nothrow

Definition at line 29 of file Defect.h.

References prototype.

Referenced by SctData::DefectList::addDefect().

bool SctData::Defect::operator== const Defect defect  )  const [inline]
 

Compares two defects returning true if they are the same.

Note:
Nothrow

Definition at line 35 of file Defect.h.

References element, and prototype.


Field Documentation

ModuleElement SctData::Defect::element [private]
 

The element.

Definition at line 39 of file Defect.h.

Referenced by getModuleElement(), and operator==().

const DefectPrototype* SctData::Defect::prototype [private]
 

The prototype - pointer to allow assignment operator to work - points to static object so no need to delete.

Definition at line 38 of file Defect.h.

Referenced by getPrototype(), and operator==().


The documentation for this class was generated from the following file:
Generated on Thu Jul 15 09:52:34 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5