#include <TemporalObjectVector.h>
Inheritance diagram for TemporalObjectVector< TYPE >:
Public Types | |
typedef TYPE | contained_type |
typedef std::vector< TYPE * >::value_type | value_type |
typedef std::vector< TYPE * >::reference | reference |
typedef std::vector< TYPE * >::const_reference | const_reference |
typedef std::vector< TYPE * >::iterator | iterator |
typedef std::vector< TYPE * >::const_iterator | const_iterator |
typedef std::vector< TYPE * >::reverse_iterator | reverse_iterator |
typedef std::vector< TYPE * >::const_reverse_iterator | const_reverse_iterator |
typedef std::vector< TYPE * >::pointer | pointer |
typedef std::vector< TYPE * >::const_pointer | const_pointer |
typedef size_t | size_type |
Public Member Functions | |
TemporalObjectVector () | |
Default Constructor. | |
virtual | ~TemporalObjectVector () |
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. | |
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 long | add (ContainedObject *pObject) |
Add an object to the container. | |
void | setRegistry (IRegistry *pRegistry) |
IRegistry * | registry () const |
LinkManager * | linkMgr () const |
unsigned char | version () const |
void | setVersion (unsigned char vsn) |
unsigned long | refCount () const |
virtual const CLID & | clID () const |
ObjectVector< TYPE >::iterator | begin () |
ObjectVector< TYPE >::const_iterator | begin () const |
ObjectVector< TYPE >::iterator | end () |
ObjectVector< TYPE >::const_iterator | end () const |
ObjectVector< TYPE >::reverse_iterator | rbegin () |
ObjectVector< TYPE >::const_reverse_iterator | rbegin () const |
ObjectVector< TYPE >::reverse_iterator | rend () |
ObjectVector< TYPE >::const_reverse_iterator | rend () const |
ObjectVector< TYPE >::size_type | size () const |
virtual ObjectVector< TYPE >::size_type | numberOfObjects () const |
ObjectVector< TYPE >::size_type | max_size () const |
ObjectVector< TYPE >::size_type | capacity () const |
void | reserve (typename ObjectVector< TYPE >::size_type value) |
bool | empty () const |
ObjectVector< TYPE >::reference | front () |
ObjectVector< TYPE >::const_reference | front () const |
ObjectVector< TYPE >::reference | back () |
ObjectVector< TYPE >::const_reference | back () const |
void | push_back (typename ObjectVector< TYPE >::const_reference value) |
void | pop_back () |
virtual long | remove (ContainedObject *value) |
ObjectVector< TYPE >::iterator | insert (typename ObjectVector< TYPE >::iterator position, typename ObjectVector< TYPE >::const_reference value) |
void | erase (typename ObjectVector< TYPE >::iterator position) |
void | erase (typename ObjectVector< TYPE >::iterator first, typename ObjectVector< TYPE >::iterator last) |
void | clear () |
ObjectVector< TYPE >::reference | operator[] (typename ObjectVector< TYPE >::size_type n) |
ObjectVector< TYPE >::const_reference | operator[] (typename ObjectVector< TYPE >::size_type n) const |
virtual long | index (const ContainedObject *obj) const |
virtual ContainedObject * | containedObject (long dist) 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_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 DataObject &obj) |
Definition at line 19 of file TemporalObjectVector.h.
TemporalObjectVector< TYPE >::TemporalObjectVector | ( | ) | [inline] |
Default Constructor.
Definition at line 25 of file TemporalObjectVector.h.
00025 : m_earliest(TimeStamp::GetEOT()), 00026 m_latest(TimeStamp::GetBOT()) {}
virtual TemporalObjectVector< TYPE >::~TemporalObjectVector | ( | ) | [inline, virtual] |
std::ostream & TemporalObjectVector< TYPE >::fillStream | ( | std::ostream & | s | ) | const [virtual] |
Fill the ASCII output stream.
Reimplemented from ObjectVector< TYPE >.
Definition at line 95 of file TemporalObjectVector.h.
00096 { 00097 DayaBay::ITemporal::fillStream(s); 00098 s << "{ " << "earliest : " << m_earliest << std::endl 00099 << "latest : " << m_latest << std::endl << " }"; 00100 return s; 00101 }
const TimeStamp & TemporalObjectVector< TYPE >::earliest | ( | ) | const [virtual] |
Retrieve const The earliest time of the existence of the object.
Implements DayaBay::ITemporal.
Definition at line 105 of file TemporalObjectVector.h.
00106 { 00107 return m_earliest; 00108 }
void TemporalObjectVector< TYPE >::setEarliest | ( | const TimeStamp & | value | ) | [virtual] |
Update The earliest time of the existence of the object.
Implements DayaBay::ITemporal.
Definition at line 111 of file TemporalObjectVector.h.
00112 { 00113 m_earliest = value; 00114 }
const TimeStamp & TemporalObjectVector< TYPE >::latest | ( | ) | const [virtual] |
Retrieve const The latest time of the existence of the object.
Implements DayaBay::ITemporal.
Definition at line 117 of file TemporalObjectVector.h.
00118 { 00119 return m_latest; 00120 }
void TemporalObjectVector< TYPE >::setLatest | ( | const TimeStamp & | value | ) | [virtual] |
Update The latest time of the existence of the object.
Implements DayaBay::ITemporal.
Definition at line 123 of file TemporalObjectVector.h.
00124 { 00125 m_latest = value; 00126 }
long TemporalObjectVector< TYPE >::add | ( | ContainedObject * | pObject | ) | [virtual] |
Add an object to the container.
Reimplemented from ObjectVector< TYPE >.
Definition at line 129 of file TemporalObjectVector.h.
00130 { 00131 try { 00132 long result = ObjectVector<TYPE>::add(pObject); 00133 if (-1 == result) { 00134 return result; 00135 } 00136 00137 ITemporal* temporal = dynamic_cast<ITemporal*>(pObject); 00138 if (0 != temporal) { 00139 if (temporal->earliest() < earliest()) { 00140 setEarliest(temporal->earliest()); 00141 } 00142 if (temporal->latest() > latest()) { 00143 setLatest(temporal->latest()); 00144 } 00145 } 00146 00147 return result; 00148 } 00149 catch (...) { 00150 } 00151 return -1; 00152 }
static void* TemporalObjectVector< TYPE >::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::ITemporal.
Definition at line 55 of file TemporalObjectVector.h.
00056 { 00057 return ( sizeof(TemporalObjectVector) == size ? 00058 boost::singleton_pool<TemporalObjectVector, sizeof(TemporalObjectVector)>::malloc() : 00059 ::operator new(size) ); 00060 }
static void* TemporalObjectVector< TYPE >::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 65 of file TemporalObjectVector.h.
00066 { 00067 return ::operator new (size,pObj); 00068 }
static void TemporalObjectVector< TYPE >::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::ITemporal.
Definition at line 71 of file TemporalObjectVector.h.
00072 { 00073 boost::singleton_pool<TemporalObjectVector, sizeof(TemporalObjectVector)>::is_from(p) ? 00074 boost::singleton_pool<TemporalObjectVector, sizeof(TemporalObjectVector)>::free(p) : 00075 ::operator delete(p); 00076 }
static void TemporalObjectVector< TYPE >::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 80 of file TemporalObjectVector.h.
00081 { 00082 ::operator delete (p, pObj); 00083 }
TimeStamp TemporalObjectVector< TYPE >::m_earliest [private] |
The earliest time of the existence of the object.
Definition at line 89 of file TemporalObjectVector.h.
TimeStamp TemporalObjectVector< TYPE >::m_latest [private] |
The latest time of the existence of the object.
Definition at line 90 of file TemporalObjectVector.h.