#include <stampable.hh>
Public Member Functions | |
void | set_stamp (const Key &k, const TimeVal &now=TimeVal::now()) |
void | set_stamp (unsigned d, const Key &k, const TimeVal &now=TimeVal::now()) |
void | remove_stamp (const Key &k) |
void | remove_stamp (unsigned d, const Key &k) |
const TimeVal | stamp (const Key &k) const |
const TimeVal | stamp (unsigned d, const Key &k) const |
bool | expired (const Key &k, const TimeVal &period, const TimeVal &now=TimeVal::now()) const |
bool | expired (unsigned d, const Key &k, const TimeVal &period, const TimeVal &now=TimeVal::now()) const |
bool | less (const Key &k, const This &rhs) const |
bool | less (unsigned d, const Key &k, const This &rhs) const |
Protected Member Functions | |
MultiStampable () | |
Private Types | |
typedef MultiStampable< 1, Key, Compare > | This |
typedef std::map< Key, TimeVal > | stampset_t |
Private Attributes | |
stampset_t | _stampset |
typedef MultiStampable<1, Key, Compare> olsr::utl::MultiStampable< 1, Key, Compare >::This [private] |
typedef std::map<Key, TimeVal> olsr::utl::MultiStampable< 1, Key, Compare >::stampset_t [private] |
olsr::utl::MultiStampable< 1, Key, Compare >::MultiStampable | ( | ) | [inline, protected] |
void olsr::utl::MultiStampable< 1, Key, Compare >::set_stamp | ( | const Key & | k, | |
const TimeVal & | now = TimeVal::now() | |||
) | [inline] |
void olsr::utl::MultiStampable< 1, Key, Compare >::set_stamp | ( | unsigned | d, | |
const Key & | k, | |||
const TimeVal & | now = TimeVal::now() | |||
) | [inline] |
void olsr::utl::MultiStampable< 1, Key, Compare >::remove_stamp | ( | const Key & | k | ) | [inline] |
void olsr::utl::MultiStampable< 1, Key, Compare >::remove_stamp | ( | unsigned | d, | |
const Key & | k | |||
) | [inline] |
const TimeVal olsr::utl::MultiStampable< 1, Key, Compare >::stamp | ( | const Key & | k | ) | const [inline] |
const TimeVal olsr::utl::MultiStampable< 1, Key, Compare >::stamp | ( | unsigned | d, | |
const Key & | k | |||
) | const [inline] |
bool olsr::utl::MultiStampable< 1, Key, Compare >::expired | ( | const Key & | k, | |
const TimeVal & | period, | |||
const TimeVal & | now = TimeVal::now() | |||
) | const [inline] |
bool olsr::utl::MultiStampable< 1, Key, Compare >::expired | ( | unsigned | d, | |
const Key & | k, | |||
const TimeVal & | period, | |||
const TimeVal & | now = TimeVal::now() | |||
) | const [inline] |
bool olsr::utl::MultiStampable< 1, Key, Compare >::less | ( | const Key & | k, | |
const This & | rhs | |||
) | const [inline] |
bool olsr::utl::MultiStampable< 1, Key, Compare >::less | ( | unsigned | d, | |
const Key & | k, | |||
const This & | rhs | |||
) | const [inline] |
stampset_t olsr::utl::MultiStampable< 1, Key, Compare >::_stampset [private] |