Definition at line 150 of file persproductcache.h.
OSB_LIB::PersProductCache::Key::Key | ( | const ResourceKey & | resourceKey | ) | [inline] |
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.
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_.
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<().