#include <TemporalContainedObject.h>
Inheritance diagram for DayaBay::TemporalContainedObject:
Public Types | |
typedef ObjectVector< TemporalContainedObject > | Container |
typedef for ObjectVector of TemporalContainedObject | |
Public Member Functions | |
TemporalContainedObject () | |
Default Constructor. | |
virtual | ~TemporalContainedObject () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
virtual const TimeStamp & | earliest () const |
Retrieve const The earliest time of the existence of the object. | |
void | setEarliest (const TimeStamp &value) |
Update The earliest time of the existence of the object. | |
virtual const TimeStamp & | latest () const |
Retrieve const The latest time of the existence of the object. | |
void | setLatest (const TimeStamp &value) |
Update The latest time of the existence of the object. | |
virtual const CLID & | clID () const |
const ObjectContainerBase * | parent () const |
void | setParent (ObjectContainerBase *value) |
virtual long | index () const |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
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_earliest |
The earliest time of the existence of the object. | |
TimeStamp | m_latest |
The latest time of the existence of the object. | |
Friends | |
friend std::ostream & | operator<< (std::ostream &s, const ContainedObject &obj) |
Definition at line 43 of file TemporalContainedObject.h.
typedef for ObjectVector of TemporalContainedObject
Definition at line 48 of file TemporalContainedObject.h.
DayaBay::TemporalContainedObject::TemporalContainedObject | ( | ) | [inline] |
Default Constructor.
Definition at line 51 of file TemporalContainedObject.h.
00051 : m_earliest(), 00052 m_latest() {}
virtual DayaBay::TemporalContainedObject::~TemporalContainedObject | ( | ) | [inline, virtual] |
std::ostream & DayaBay::TemporalContainedObject::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from ContainedObject.
Definition at line 134 of file TemporalContainedObject.h.
00135 { 00136 ITemporal::fillStream(s); 00137 s << "{ " << "earliest : " << m_earliest << std::endl 00138 << "latest : " << m_latest << std::endl << " }"; 00139 return s; 00140 }
const TimeStamp & DayaBay::TemporalContainedObject::earliest | ( | ) | const [inline, virtual] |
Retrieve const The earliest time of the existence of the object.
Implements DayaBay::ITemporal.
Definition at line 143 of file TemporalContainedObject.h.
00144 { 00145 return m_earliest; 00146 }
void DayaBay::TemporalContainedObject::setEarliest | ( | const TimeStamp & | value | ) | [inline, virtual] |
Update The earliest time of the existence of the object.
Implements DayaBay::ITemporal.
Definition at line 148 of file TemporalContainedObject.h.
00149 { 00150 m_earliest = value; 00151 }
const TimeStamp & DayaBay::TemporalContainedObject::latest | ( | ) | const [inline, virtual] |
Retrieve const The latest time of the existence of the object.
Implements DayaBay::ITemporal.
Definition at line 153 of file TemporalContainedObject.h.
00154 { 00155 return m_latest; 00156 }
void DayaBay::TemporalContainedObject::setLatest | ( | const TimeStamp & | value | ) | [inline, virtual] |
Update The latest time of the existence of the object.
Implements DayaBay::ITemporal.
Definition at line 158 of file TemporalContainedObject.h.
00159 { 00160 m_latest = value; 00161 }
static void* DayaBay::TemporalContainedObject::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::ITemporal.
Definition at line 79 of file TemporalContainedObject.h.
00080 { 00081 return ( sizeof(TemporalContainedObject) == size ? 00082 boost::singleton_pool<TemporalContainedObject, sizeof(TemporalContainedObject)>::malloc() : 00083 ::operator new(size) ); 00084 }
static void* DayaBay::TemporalContainedObject::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::ITemporal.
Definition at line 89 of file TemporalContainedObject.h.
static void DayaBay::TemporalContainedObject::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::ITemporal.
Definition at line 95 of file TemporalContainedObject.h.
00096 { 00097 boost::singleton_pool<TemporalContainedObject, sizeof(TemporalContainedObject)>::is_from(p) ? 00098 boost::singleton_pool<TemporalContainedObject, sizeof(TemporalContainedObject)>::free(p) : 00099 ::operator delete(p); 00100 }
static void DayaBay::TemporalContainedObject::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::ITemporal.
Definition at line 104 of file TemporalContainedObject.h.
00105 { 00106 ::operator delete (p, pObj); 00107 }
The earliest time of the existence of the object.
Definition at line 113 of file TemporalContainedObject.h.
The latest time of the existence of the object.
Definition at line 114 of file TemporalContainedObject.h.