Board Class Reference

#include <Board.hh>

Inheritance diagram for Board:

Inheritance graph
[legend]
Collaboration diagram for Board:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const ChambergetChamber () const
const i32 getId () const
const i32 getX (void) const
const i32 getY (void) const
const ui32 getXLength () const
const ui32 getYLength () const
virtual const ui32 getXGap () const =0
virtual const ui32 getYGap () const =0
void addChip (Chip *chip)
ChipMap_t getChips (void) const
void setDif (Dif *aDif)
const DifgetDif () const
ChannelgetChannelById (const i32 channelId, const i32 chipId=-1)
ChipgetChipById (const i32 chipId)

Protected Member Functions

 Board (const Chamber &_chamber, const ui32 aCol, const ui32 aRow, const ui32 nbColumns, const ui32 nbRows, const i32 aId)
 Board (const Board &source)
Boardoperator= (const Board &source)
virtual ~Board ()
std::ostream & operator<< (std::ostream &out) const

Protected Attributes

const Chamberchamber
i32 id
ui32 column
ui32 row
std::map< i32, Chip * > chips
ui32 nbColumns
ui32 nbRows
Difdif

Friends

class Chamber
std::ostream & operator<< (std::ostream &out, const Board &x)


Detailed Description

Definition at line 23 of file Board.hh.


Constructor & Destructor Documentation

Board::Board ( const Chamber _chamber,
const ui32  aCol,
const ui32  aRow,
const ui32  nbColumns,
const ui32  nbRows,
const i32  aId 
) [protected]

Board::Board ( const Board source  )  [protected]

virtual Board::~Board (  )  [protected, virtual]


Member Function Documentation

Board& Board::operator= ( const Board source  )  [protected]

std::ostream& Board::operator<< ( std::ostream &  out  )  const [protected]

const Chamber& Board::getChamber (  )  const [inline]

Definition at line 36 of file Board.hh.

00036 { return(chamber); };

const i32 Board::getId (  )  const [inline]

Definition at line 37 of file Board.hh.

Referenced by main().

00037 { return(id); };

const i32 Board::getX ( void   )  const

const i32 Board::getY ( void   )  const

const ui32 Board::getXLength (  )  const

const ui32 Board::getYLength (  )  const

virtual const ui32 Board::getXGap (  )  const [pure virtual]

virtual const ui32 Board::getYGap (  )  const [pure virtual]

void Board::addChip ( Chip chip  ) 

ChipMap_t Board::getChips ( void   )  const [inline]

Definition at line 49 of file Board.hh.

Referenced by main().

00049 { return chips; };

void Board::setDif ( Dif aDif  ) 

const Dif* Board::getDif (  )  const [inline]

Definition at line 52 of file Board.hh.

00052 { return dif; } ;

Channel& Board::getChannelById ( const i32  channelId,
const i32  chipId = -1 
)

Chip& Board::getChipById ( const i32  chipId  ) 


Friends And Related Function Documentation

friend class Chamber [friend]

Definition at line 25 of file Board.hh.

std::ostream& operator<< ( std::ostream &  out,
const Board x 
) [friend]


Member Data Documentation

const Chamber& Board::chamber [protected]

Definition at line 59 of file Board.hh.

Referenced by getChamber().

i32 Board::id [protected]

the chamber to which the board belongs

Definition at line 60 of file Board.hh.

ui32 Board::column [protected]

the board id

Definition at line 61 of file Board.hh.

ui32 Board::row [protected]

Definition at line 61 of file Board.hh.

std::map<i32, Chip *> Board::chips [protected]

the board position

Reimplemented in Dirac24.

Definition at line 62 of file Board.hh.

Referenced by getChips().

ui32 Board::nbColumns [protected]

the chip collection which composes the board

Definition at line 63 of file Board.hh.

ui32 Board::nbRows [protected]

Definition at line 63 of file Board.hh.

Dif* Board::dif [protected]

number of chips row and column

Reimplemented in Dirac24.

Definition at line 64 of file Board.hh.

Referenced by getDif().


The documentation for this class was generated from the following file:

Generated on Thu Jul 9 09:49:39 2009 for MicromegasFramework by  doxygen 1.5.8