#include <CalibSource.h>
Collaboration diagram for DayaBay::CalibSource:
Public Member Functions | |
| CalibSource () | |
| Default Constructor. | |
| CalibSource (const CalibSource &rh) | |
| Copy Constructor. | |
| CalibSource & | operator= (const CalibSource &rh) |
| Assignment operator. | |
| virtual | ~CalibSource () |
| Default Destructor. | |
| virtual std::ostream & | fillStream (std::ostream &s) const |
| Fill the ASCII output stream. | |
| const DayaBay::CalibSourceId & | id () const |
| Retrieve const The ID number of calibration source. | |
| void | setId (const DayaBay::CalibSourceId &value) |
| Update The ID number of calibration source. | |
| double | ledFrequency () const |
| Retrieve const Frequency for calibration LEDs. | |
| void | setLedFrequency (double value) |
| Update Frequency for calibration LEDs. | |
| double | adZPosition () const |
| Retrieve const Z position along calibration axis for AD sources. | |
| void | setAdZPosition (double value) |
| Update Z position along calibration axis for AD sources. | |
Static Public Member Functions | |
| static void * | operator new (size_t size) |
| operator new | |
| static void * | operator new (size_t size, void *pObj) |
| placement operator new it is needed by libstdc++ 3.2.3 (e.g. | |
| static void | operator delete (void *p) |
| operator delete | |
| static void | operator delete (void *p, void *pObj) |
| placement operator delete not sure if really needed, but it does not harm | |
Private Attributes | |
| DayaBay::CalibSourceId | m_id |
| The ID number of calibration source. | |
| double | m_ledFrequency |
| Frequency for calibration LEDs. | |
| double | m_adZPosition |
| Z position along calibration axis for AD sources. | |
Definition at line 39 of file CalibSource.h.
| DayaBay::CalibSource::CalibSource | ( | ) | [inline] |
Default Constructor.
Definition at line 44 of file CalibSource.h.
00044 : m_id(DayaBay::CalibSourceId(0)), 00045 m_ledFrequency(0), 00046 m_adZPosition(0) {}
| DayaBay::CalibSource::CalibSource | ( | const CalibSource & | rh | ) | [inline] |
Copy Constructor.
Definition at line 140 of file CalibSource.h.
00140 : 00141 m_id( rh.m_id ), 00142 m_ledFrequency( rh.m_ledFrequency ), 00143 m_adZPosition( rh.m_adZPosition ) 00144 {}
| virtual DayaBay::CalibSource::~CalibSource | ( | ) | [inline, virtual] |
| DayaBay::CalibSource & DayaBay::CalibSource::operator= | ( | const CalibSource & | rh | ) | [inline] |
Assignment operator.
Definition at line 146 of file CalibSource.h.
00146 { 00147 if ( this != &rh ) { 00148 m_id = rh.m_id; 00149 m_ledFrequency = rh.m_ledFrequency; 00150 m_adZPosition = rh.m_adZPosition; 00151 } 00152 return *this; 00153 }
| std::ostream & DayaBay::CalibSource::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Definition at line 155 of file CalibSource.h.
00156 { 00157 s << "{ " << "id : " << m_id << std::endl 00158 << "ledFrequency : " << (float)m_ledFrequency << std::endl 00159 << "adZPosition : " << (float)m_adZPosition << std::endl << " }"; 00160 return s; 00161 }
| const DayaBay::CalibSourceId & DayaBay::CalibSource::id | ( | ) | const [inline] |
Retrieve const The ID number of calibration source.
Definition at line 164 of file CalibSource.h.
00165 { 00166 return m_id; 00167 }
| void DayaBay::CalibSource::setId | ( | const DayaBay::CalibSourceId & | value | ) | [inline] |
Update The ID number of calibration source.
Definition at line 169 of file CalibSource.h.
00170 { 00171 m_id = value; 00172 }
| double DayaBay::CalibSource::ledFrequency | ( | ) | const [inline] |
Retrieve const Frequency for calibration LEDs.
Definition at line 174 of file CalibSource.h.
00175 { 00176 return m_ledFrequency; 00177 }
| void DayaBay::CalibSource::setLedFrequency | ( | double | value | ) | [inline] |
Update Frequency for calibration LEDs.
Definition at line 179 of file CalibSource.h.
00180 { 00181 m_ledFrequency = value; 00182 }
| double DayaBay::CalibSource::adZPosition | ( | ) | const [inline] |
Retrieve const Z position along calibration axis for AD sources.
Definition at line 184 of file CalibSource.h.
00185 { 00186 return m_adZPosition; 00187 }
| void DayaBay::CalibSource::setAdZPosition | ( | double | value | ) | [inline] |
Update Z position along calibration axis for AD sources.
Definition at line 189 of file CalibSource.h.
00190 { 00191 m_adZPosition = value; 00192 }
| static void* DayaBay::CalibSource::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Definition at line 87 of file CalibSource.h.
00088 { 00089 return ( sizeof(CalibSource) == size ? 00090 boost::singleton_pool<CalibSource, sizeof(CalibSource)>::malloc() : 00091 ::operator new(size) ); 00092 }
| static void* DayaBay::CalibSource::operator new | ( | size_t | size, | |
| void * | pObj | |||
| ) | [inline, static] |
placement operator new it is needed by libstdc++ 3.2.3 (e.g.
in std::vector) it is not needed in libstdc++ >= 3.4
Definition at line 97 of file CalibSource.h.
| static void DayaBay::CalibSource::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Definition at line 103 of file CalibSource.h.
00104 { 00105 boost::singleton_pool<CalibSource, sizeof(CalibSource)>::is_from(p) ? 00106 boost::singleton_pool<CalibSource, sizeof(CalibSource)>::free(p) : 00107 ::operator delete(p); 00108 }
| static void DayaBay::CalibSource::operator delete | ( | void * | p, | |
| void * | pObj | |||
| ) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Definition at line 112 of file CalibSource.h.
00113 { 00114 ::operator delete (p, pObj); 00115 }
double DayaBay::CalibSource::m_ledFrequency [private] |
double DayaBay::CalibSource::m_adZPosition [private] |
1.4.7