Chip Class Reference

#include <Chip.hh>

Inheritance diagram for Chip:

Inheritance graph
[legend]
Collaboration diagram for Chip:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const BoardgetBoard () const
const i32 & getId () const
ChannelMap_t getChannels (void) const
const i32 getX (void) const
const i32 getY (void) const
ChannelgetChannelById (const i32 channelId)
const ui32 getXLength () const
const ui32 getYLength () const
virtual const ui32 getXGap () const =0
virtual const ui32 getYGap () const =0

Protected Member Functions

 Chip (const Board &_board, const i32 aCol, const i32 aRow, const ui32 nbColumns, const ui32 nbRows, const i32 aId)
 Chip (const Chip &x)
Chipoperator= (const Chip &x)
std::ostream & operator<< (std::ostream &out) const
virtual ~Chip ()

Protected Attributes

const Boardboard
i32 id
ui32 column
ui32 row
std::map< i32, Channel * > channels
ui32 nbColumns
ui32 nbRows

Friends

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


Detailed Description

Definition at line 26 of file Chip.hh.


Constructor & Destructor Documentation

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

Chip::Chip ( const Chip x  )  [protected]

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


Member Function Documentation

Chip& Chip::operator= ( const Chip x  )  [protected]

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

const Board& Chip::getBoard (  )  const [inline]

Definition at line 39 of file Chip.hh.

00039 { return board; };

const i32& Chip::getId ( void   )  const [inline]

Definition at line 40 of file Chip.hh.

Referenced by main().

00040 { return id; };

ChannelMap_t Chip::getChannels ( void   )  const [inline]

Definition at line 41 of file Chip.hh.

Referenced by main().

00041 { return channels; };

const i32 Chip::getX ( void   )  const

const i32 Chip::getY ( void   )  const

Channel& Chip::getChannelById ( const i32  channelId  ) 

const ui32 Chip::getXLength (  )  const

const ui32 Chip::getYLength (  )  const

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

Implemented in DiracChip, GassiplexChip, and HardRockChip.

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

Implemented in DiracChip, GassiplexChip, and HardRockChip.


Friends And Related Function Documentation

friend class Board [friend]

Definition at line 30 of file Chip.hh.

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

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


Member Data Documentation

const Board& Chip::board [protected]

Definition at line 56 of file Chip.hh.

Referenced by getBoard().

i32 Chip::id [protected]

the board containing this chip

Definition at line 57 of file Chip.hh.

Referenced by getId().

ui32 Chip::column [protected]

unique chip Id for every Dif

Definition at line 58 of file Chip.hh.

ui32 Chip::row [protected]

Definition at line 58 of file Chip.hh.

std::map<i32, Channel *> Chip::channels [protected]

chip position inside the board

Definition at line 59 of file Chip.hh.

Referenced by getChannels().

ui32 Chip::nbColumns [protected]

sorted channel list

Definition at line 60 of file Chip.hh.

ui32 Chip::nbRows [protected]

Definition at line 60 of file Chip.hh.


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