/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Member Functions | Private Attributes
TemporalObjectVector< TYPE > Class Template Reference

#include <TemporalObjectVector.h>

Inheritance diagram for TemporalObjectVector< TYPE >:
Inheritance graph
[legend]
Collaboration diagram for TemporalObjectVector< TYPE >:
Collaboration graph
[legend]

List of all members.

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 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.
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 long add (ContainedObject *pObject)
 Add an object to the container.

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

TimeStamp m_earliest
 The earliest time of the existence of the object.
TimeStamp m_latest
 The latest time of the existence of the object.

Detailed Description

template<class TYPE>
class TemporalObjectVector< TYPE >

Definition at line 19 of file TemporalObjectVector.h.


Constructor & Destructor Documentation

template<class TYPE >
TemporalObjectVector< TYPE >::TemporalObjectVector ( ) [inline]

Default Constructor.

Definition at line 25 of file TemporalObjectVector.h.

template<class TYPE >
virtual TemporalObjectVector< TYPE >::~TemporalObjectVector ( ) [inline, virtual]

Default Destructor.

Definition at line 29 of file TemporalObjectVector.h.

{}

Member Function Documentation

template<class TYPE >
std::ostream & TemporalObjectVector< TYPE >::fillStream ( std::ostream &  s) const [virtual]

Fill the ASCII output stream.

Reimplemented from DayaBay::ITemporal.

Definition at line 95 of file TemporalObjectVector.h.

{
  DayaBay::ITemporal::fillStream(s);
  s << "{ " << "earliest :      " << m_earliest << std::endl
            << "latest :        " << m_latest << std::endl << " }";
  return s;
}
template<class TYPE >
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.

{
  return m_earliest;
}
template<class TYPE >
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.

{
  m_earliest = value;
}
template<class TYPE >
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.

{
  return m_latest;
}
template<class TYPE >
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.

{
  m_latest = value;
}
template<class TYPE >
long TemporalObjectVector< TYPE >::add ( ContainedObject *  pObject) [virtual]

Add an object to the container.

Definition at line 129 of file TemporalObjectVector.h.

{
  try {
    long result = ObjectVector<TYPE>::add(pObject);
    if (-1 == result) {
      return result;
    }

    ITemporal* temporal = dynamic_cast<ITemporal*>(pObject);
    if (0 != temporal) {
      if (temporal->earliest() < earliest()) {
        setEarliest(temporal->earliest());
      }
      if (temporal->latest() > latest()) {
        setLatest(temporal->latest());
      }
    }

    return result;
  }
  catch (...) {
  }
  return -1;
}
template<class TYPE >
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.

    {
      return ( sizeof(TemporalObjectVector) == size ? 
               boost::singleton_pool<TemporalObjectVector, sizeof(TemporalObjectVector)>::malloc() :
               ::operator new(size) );
    }
template<class TYPE >
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.

    {
      return ::operator new (size,pObj);
    }
template<class TYPE >
static void TemporalObjectVector< TYPE >::operator delete ( void *  p) [inline, static]

operator delete

Reimplemented from DayaBay::ITemporal.

Definition at line 71 of file TemporalObjectVector.h.

    {
      boost::singleton_pool<TemporalObjectVector, sizeof(TemporalObjectVector)>::is_from(p) ?
        boost::singleton_pool<TemporalObjectVector, sizeof(TemporalObjectVector)>::free(p) :
        ::operator delete(p);
    }
template<class TYPE >
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.

    {
      ::operator delete (p, pObj);
    }

Member Data Documentation

template<class TYPE >
TimeStamp TemporalObjectVector< TYPE >::m_earliest [private]

The earliest time of the existence of the object.

Definition at line 89 of file TemporalObjectVector.h.

template<class TYPE >
TimeStamp TemporalObjectVector< TYPE >::m_latest [private]

The latest time of the existence of the object.

Definition at line 90 of file TemporalObjectVector.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 Fri May 16 2014 10:08:31 for DataUtilities by doxygen 1.7.4