OSB_LIB::PersProductCache::Key Struct Reference

Collaboration diagram for OSB_LIB::PersProductCache::Key:

Collaboration graph
[legend]
List of all members.

Detailed Description

Key for the map resource -> pers. product id.

Definition at line 150 of file persproductcache.h.

Public Member Functions

Public Attributes


Constructor & Destructor Documentation

OSB_LIB::PersProductCache::Key::Key ( const ResourceKey resourceKey  )  [inline]

Constructor with resource key.

Definition at line 347 of file persproductcache.h.

OSB_LIB::PersProductCache::Key::Key ( const ResourceKey resourceKey,
const Period assigned 
) [inline]

Constructor with resource key and assigned period.

Definition at line 354 of file persproductcache.h.


Member Function Documentation

void OSB_LIB::PersProductCache::Key::mkAssignPeriod (  )  [inline]

Convert assignment period to a period.

If assigned_ is a timestamp it is converted into a period by adding 1 second to the upper boundary.

Definition at line 371 of file persproductcache.h.

References OSB_LIB::DateTime::addSeconds(), assigned_, OSB_LIB::Period::from(), OSB_LIB::Period::isTimestamp(), OSB_LIB::DateTime::max(), and OSB_LIB::Period::to().

bool OSB_LIB::PersProductCache::Key::operator< ( const Key rhs  )  const [inline]

Less than operator.

Compares by I) resource key and II) assignment period.

Definition at line 362 of file persproductcache.h.

References assigned_, OSB_LIB::Period::less(), and resourceKey_.


Member Data Documentation

Period OSB_LIB::PersProductCache::Key::assigned_

The time period during which resourceKey_ is assigned to the pers. product.

Definition at line 183 of file persproductcache.h.

Referenced by mkAssignPeriod(), and operator<().

ResourceKey OSB_LIB::PersProductCache::Key::resourceKey_

Resource key.

Definition at line 178 of file persproductcache.h.

Referenced by operator<().


The documentation for this struct was generated from the following file:
Generated on Sat Sep 2 14:12:35 2006 for OSB Library by  doxygen 1.4.7