#include <Caching_Strategies_T.h>
Inheritance diagram for ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >:
Public Member Functions | |
ACE_Caching_Strategy_Adapter (IMPLEMENTATION *implementation=0, int delete_implementation=0) | |
Constructor. | |
~ACE_Caching_Strategy_Adapter (void) | |
Destructor. | |
ATTRIBUTES | attributes (void) |
Accessor method for the timer attributes. | |
double | purge_percent (void) |
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 (void) |
Accessor to the implementation. | |
CACHING_UTILITY & | caching_utility (void) |
Purge the cache. | |
void | dump (void) const |
Dumps the state of the object. | |
Private Attributes | |
IMPLEMENTATION * | implementation_ |
Implementation class. | |
int | delete_implementation_ |
Do we need to delete the implementation? |
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.
Definition at line 109 of file Caching_Strategies_T.h.
|
Constructor.
Definition at line 12 of file Caching_Strategies_T.inl. References ACE_NEW, ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::delete_implementation_, and ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00014 : implementation_ (implementation), 00015 delete_implementation_ (delete_implementation) 00016 { 00017 if (this->implementation_ == 0) 00018 { 00019 ACE_NEW (this->implementation_, 00020 IMPLEMENTATION); 00021 this->delete_implementation_ = 1; 00022 } 00023 } |
|
Destructor.
Definition at line 26 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::delete_implementation_, and ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00027 { 00028 if (this->delete_implementation_) 00029 { 00030 delete this->implementation_; 00031 this->delete_implementation_ = 0; 00032 this->implementation_ = 0; 00033 } 00034 } |
|
Accessor method for the timer attributes.
Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 37 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00038 { 00039 return this->implementation_->attributes (); 00040 } |
|
Purge the cache.
Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 101 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00102 { 00103 return this->implementation_->caching_utility (); 00104 } |
|
Dumps the state of the object.
Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 107 of file Caching_Strategies_T.inl. References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_TRACE, and LM_DEBUG.
|
|
Accessor to the implementation.
Definition at line 95 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00096 { 00097 return *this->implementation_; 00098 } |
|
This method acts as a notification about the CONTAINERs bind method call. Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 55 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00057 { 00058 return this->implementation_->notify_bind (result, 00059 attr); 00060 } |
|
This method acts as a notification about the CONTAINERs find method call Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 63 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00065 { 00066 return this->implementation_->notify_find (result, 00067 attr); 00068 } |
|
This method acts as a notification about the CONTAINERs rebind method call Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 87 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00089 { 00090 return this->implementation_->notify_rebind (result, 00091 attr); 00092 } |
|
This method acts as a notification about the CONTAINERs trybind method call Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 79 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00081 { 00082 return this->implementation_->notify_trybind (result, 00083 attr); 00084 } |
|
This method acts as a notification about the CONTAINERs unbind method call Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 71 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00073 { 00074 return this->implementation_->notify_unbind (result, 00075 attr); 00076 } |
|
Set the percentage of entries to purge.
Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 49 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00050 { 00051 this->implementation_->purge_percent (percentage); 00052 } |
|
Get the percentage of entries to purge.
Implements ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >. Definition at line 43 of file Caching_Strategies_T.inl. References ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::implementation_.
00044 { 00045 return this->implementation_->purge_percent (); 00046 } |
|
Do we need to delete the implementation?
Definition at line 173 of file Caching_Strategies_T.h. Referenced by ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::ACE_Caching_Strategy_Adapter(), and ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::~ACE_Caching_Strategy_Adapter(). |
|