Library: Foundation
Package: Events
Header: Poco/Expire.h
Description
Decorator for AbstractDelegate adding automatic expiration of registrations to AbstractDelegate's.
Inheritance
Direct Base Classes: AbstractDelegate < TArgs >
All Base Classes: AbstractDelegate < TArgs >
Member Summary
Member Functions: clone, disable, equals, expired, notify, operator =, unwrap
Constructors
Expire
Expire(
const Expire & expire
);
Expire
Expire(
const AbstractDelegate < TArgs > & p,
Timestamp::TimeDiff expireMillisecs
);
Destructor
~Expire
~Expire();
Member Functions
clone
AbstractDelegate < TArgs > * clone() const;
disable
void disable();
equals
bool equals(
const AbstractDelegate < TArgs > & other
) const;
notify
bool notify(
const void * sender,
TArgs & arguments
);
operator =
Expire & operator = (
const Expire & expire
);
unwrap
const AbstractDelegate < TArgs > * unwrap() const;
expired
bool expired() const;
Variables
_creationTime
Timestamp _creationTime;
_expire
Timestamp::TimeDiff _expire;
_pDelegate
AbstractDelegate < TArgs > * _pDelegate;