| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::TemporalContainedObject Class Reference

Base class for any object participating in a collection that is in the time window. More...

#include <TemporalContainedObject.h>

Inheritance diagram for DayaBay::TemporalContainedObject:

[legend]
Collaboration diagram for DayaBay::TemporalContainedObject:
[legend]
List of all members.

Public Types

typedef ObjectVector< TemporalContainedObjectContainer
 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 TimeStampearliest () 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 TimeStamplatest () 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 CLIDclID () const
const ObjectContainerBaseparent () const
void setParent (ObjectContainerBase *value)
virtual long index () const
virtual StreamBufferserialize (StreamBuffer &s) const
virtual StreamBufferserialize (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 CLIDclassID ()

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)

Detailed Description

Base class for any object participating in a collection that is in the time window.

Author:
Simon Patton <SJPatton@lbl.gov> created Mon Apr 11 03:25:55 2011

Definition at line 43 of file TemporalContainedObject.h.


Member Typedef Documentation

typedef ObjectVector<TemporalContainedObject> DayaBay::TemporalContainedObject::Container

typedef for ObjectVector of TemporalContainedObject

Definition at line 48 of file TemporalContainedObject.h.


Constructor & Destructor Documentation

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]

Default Destructor.

Definition at line 55 of file TemporalContainedObject.h.

00055 {}


Member Function Documentation

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.

00090     {
00091       return ::operator new (size,pObj);
00092     }

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     }


Member Data Documentation

TimeStamp DayaBay::TemporalContainedObject::m_earliest [private]

The earliest time of the existence of the object.

Definition at line 113 of file TemporalContainedObject.h.

TimeStamp DayaBay::TemporalContainedObject::m_latest [private]

The latest time of the existence of the object.

Definition at line 114 of file TemporalContainedObject.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:18:03 2011 for BaseEvent by doxygen 1.4.7