This class follows the Adaptor pattern and is used to provide External Polymorphism by deriving from ACE_Caching_Strategy.
More...
|
| | ACE_Caching_Strategy_Adapter (IMPLEMENTATION *implementation=0, bool delete_implementation=false) |
| | Constructor.
|
| |
| | ~ACE_Caching_Strategy_Adapter () |
| | Destructor.
|
| |
| ATTRIBUTES | attributes () |
| | Accessor method for the timer attributes.
|
| |
| double | purge_percent () |
| | Get the percentage of entries to purge.
|
| |
| void | purge_percent (double percentage) |
| | Set the percentage of entries to purge.
|
| |
| int | notify_bind (int result, const ATTRIBUTES &attr) |
| |
| int | notify_find (int result, ATTRIBUTES &attr) |
| |
| int | notify_unbind (int result, const ATTRIBUTES &attr) |
| |
| int | notify_trybind (int result, ATTRIBUTES &attr) |
| |
| int | notify_rebind (int result, const ATTRIBUTES &attr) |
| |
| IMPLEMENTATION & | implementation () |
| | Accessor to the implementation.
|
| |
| CACHING_UTILITY & | caching_utility () |
| | Purge the cache.
|
| |
| void | dump () const |
| | Dumps the state of the object.
|
| |
| virtual | ~ACE_Caching_Strategy () |
| | Destructor.
|
| |
| virtual ATTRIBUTES | attributes ()=0 |
| | Accessor method for the timer attributes.
|
| |
| virtual double | purge_percent ()=0 |
| | Get the percentage of entries to purge.
|
| |
| virtual void | purge_percent (double percentage)=0 |
| | Set the percentage of entries to purge.
|
| |
| virtual int | notify_bind (int result, const ATTRIBUTES &attr)=0 |
| |
| virtual int | notify_find (int result, ATTRIBUTES &attr)=0 |
| |
| virtual int | notify_unbind (int result, const ATTRIBUTES &attr)=0 |
| |
| virtual int | notify_trybind (int result, ATTRIBUTES &attr)=0 |
| |
| virtual int | notify_rebind (int result, const ATTRIBUTES &attr)=0 |
| |
| virtual CACHING_UTILITY & | caching_utility ()=0 |
| | Purge the cache.
|
| |
| virtual void | dump () const =0 |
| | Dumps the state of the object.
|
| |
template<class ATTRIBUTES, class CACHING_UTILITY, class IMPLEMENTATION>
class ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >
This class follows the Adaptor pattern and is used to provide External Polymorphism by deriving from ACE_Caching_Strategy.
This class simply delegates all requests to the IMPLEMNETATION object within. This class should be passed in place of the the abstract base ACE_Caching_Strategy class as part of the External Polymorphism pattern.