#include <TESDemoNeutron.h>
Inheritance diagram for DayaBay::TESDemoNeutron:
Public Member Functions | |
| TESDemoNeutron (const TimeStamp &timeStamp, const DayaBay::TESDemoReadout *readout) | |
| Standard constructor. | |
| TESDemoNeutron () | |
| Default Constructor. | |
| virtual | ~TESDemoNeutron () |
| Destructor. | |
| virtual std::ostream & | fillStream (std::ostream &s) const |
| Fill the ASCII output stream. | |
| void | setReadout (const SmartRef< DayaBay::TESDemoReadout > &value) |
| Set the readout from which this neutron was constructed. | |
| void | setReadout (const DayaBay::TESDemoReadout *value) |
| Set the readout from which this neutron was constructed. | |
| const TimeStamp & | timeStamp () const |
| Retrieve const The reconstructed time of this neutron's capture. | |
| void | setTimeStamp (const TimeStamp &value) |
| Update The reconstructed time of this neutron's capture. | |
| const DayaBay::TESDemoReadout * | readout () const |
| Retrieve (const) The readout from which this neutron was constructed. | |
| virtual const CLID & | clID () const |
| virtual const std::string & | defLoc () |
| virtual void | setOutputAddress (const GenericAddress *roa) |
| virtual void | setInputAddress (const GenericAddress *ria) |
| virtual const TimeStamp & | earliest () const |
| void | setEarliest (const TimeStamp &value) |
| virtual const TimeStamp & | latest () const |
| void | setLatest (const TimeStamp &value) |
| virtual const GenericAddress * | outputAddress () const |
| virtual const GenericAddress * | inputAddress () const |
| void | setRegistry (IRegistry *pRegistry) |
| IRegistry * | registry () const |
| LinkManager * | linkMgr () const |
| unsigned char | version () const |
| void | setVersion (unsigned char vsn) |
| unsigned long | refCount () const |
| virtual unsigned long | addRef () |
| virtual unsigned long | release () |
| const std::string & | name () const |
| virtual StreamBuffer & | serialize (StreamBuffer &s) |
| virtual StreamBuffer & | serialize (StreamBuffer &s) const |
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 | |
| static const CLID & | classID () |
Private Attributes | |
| TimeStamp | m_timeStamp |
| The reconstructed time of this neutron's capture. | |
| SmartRef< DayaBay::TESDemoReadout > | m_readout |
| The readout from which this neutron was constructed. | |
Friends | |
| friend friend std::ostream & | operator<< (std::ostream &s, const DataObject &obj) |
Definition at line 42 of file TESDemoNeutron.h.
| DayaBay::TESDemoNeutron::TESDemoNeutron | ( | const TimeStamp & | timeStamp, | |
| const DayaBay::TESDemoReadout * | readout | |||
| ) | [inline] |
Standard constructor.
Definition at line 132 of file TESDemoNeutron.h.
00134 { 00135 00136 setTimeStamp(timeStamp); 00137 setReadout(readout); 00138 setEarliest(timeStamp); 00139 setLatest(timeStamp); 00140 00141 }
| DayaBay::TESDemoNeutron::TESDemoNeutron | ( | ) | [inline] |
| DayaBay::TESDemoNeutron::~TESDemoNeutron | ( | ) | [inline, virtual] |
Destructor.
Definition at line 143 of file TESDemoNeutron.h.
00144 { 00145 00146 // Takes care of reference counting 00147 setReadout(0); 00148 00149 }
| std::ostream & DayaBay::TESDemoNeutron::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::TemporalDataObject.
Definition at line 151 of file TESDemoNeutron.h.
00152 { 00153 TemporalDataObject::fillStream(s); 00154 s << "{ " << "timeStamp : " << m_timeStamp << std::endl << " }"; 00155 return s; 00156 }
| void TESDemoNeutron::setReadout | ( | const SmartRef< DayaBay::TESDemoReadout > & | value | ) |
Set the readout from which this neutron was constructed.
Definition at line 5 of file TESDemoNeutron.cpp.
00005 { 00006 m_readout = value; 00007 }
| void TESDemoNeutron::setReadout | ( | const DayaBay::TESDemoReadout * | value | ) |
Set the readout from which this neutron was constructed.
Definition at line 9 of file TESDemoNeutron.cpp.
00009 { 00010 m_readout = value; 00011 }
| const TimeStamp & DayaBay::TESDemoNeutron::timeStamp | ( | ) | const [inline] |
Retrieve const The reconstructed time of this neutron's capture.
Definition at line 159 of file TESDemoNeutron.h.
00160 { 00161 return m_timeStamp; 00162 }
| void DayaBay::TESDemoNeutron::setTimeStamp | ( | const TimeStamp & | value | ) | [inline] |
Update The reconstructed time of this neutron's capture.
Definition at line 164 of file TESDemoNeutron.h.
00165 { 00166 m_timeStamp = value; 00167 }
| const DayaBay::TESDemoReadout * DayaBay::TESDemoNeutron::readout | ( | ) | const [inline] |
Retrieve (const) The readout from which this neutron was constructed.
Definition at line 169 of file TESDemoNeutron.h.
00170 { 00171 return m_readout; 00172 }
| static void* DayaBay::TESDemoNeutron::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::TemporalDataObject.
Definition at line 80 of file TESDemoNeutron.h.
00081 { 00082 return ( sizeof(TESDemoNeutron) == size ? 00083 boost::singleton_pool<TESDemoNeutron, sizeof(TESDemoNeutron)>::malloc() : 00084 ::operator new(size) ); 00085 }
| static void* DayaBay::TESDemoNeutron::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
Reimplemented from DayaBay::TemporalDataObject.
Definition at line 90 of file TESDemoNeutron.h.
| static void DayaBay::TESDemoNeutron::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::TemporalDataObject.
Definition at line 96 of file TESDemoNeutron.h.
00097 { 00098 boost::singleton_pool<TESDemoNeutron, sizeof(TESDemoNeutron)>::is_from(p) ? 00099 boost::singleton_pool<TESDemoNeutron, sizeof(TESDemoNeutron)>::free(p) : 00100 ::operator delete(p); 00101 }
| static void DayaBay::TESDemoNeutron::operator delete | ( | void * | p, | |
| void * | pObj | |||
| ) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::TemporalDataObject.
Definition at line 105 of file TESDemoNeutron.h.
00106 { 00107 ::operator delete (p, pObj); 00108 }
The readout from which this neutron was constructed.
Definition at line 115 of file TESDemoNeutron.h.
1.4.7