Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Null_Caching_Strategy Class Template Reference

The is a special caching strategy which doesnt have the purging feature. More...

#include <Caching_Strategies_T.h>

Collaboration diagram for ACE_Null_Caching_Strategy:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ATTRIBUTES CACHING_ATTRIBUTES

Public Methods

ATTRIBUTES attributes (void)
 Accessor method. More...

double purge_percent (void)
 Get the percentage of entries to purge. More...

void purge_percent (double percentage)
 Set the percentage of entries to purge. More...

int notify_bind (int result, const ATTRIBUTES &attr)
 Notification for an item getting bound into the cache. More...

int notify_find (int result, ATTRIBUTES &attr)
 This method acts as a notification about the CONTAINERs find method call. More...

int notify_unbind (int result, const ATTRIBUTES &attr)
 This method acts as a notification about the CONTAINERs unbind method call. More...

int notify_trybind (int result, ATTRIBUTES &attr)
 This method acts as a notification about the CONTAINERs trybind method call. More...

int notify_rebind (int result, const ATTRIBUTES &attr)
 Notification for an item getting bound again into the cache. More...

CACHING_UTILITY & caching_utility (void)
 Purge the cache. More...

void dump (void) const
 Dumps the state of the object. More...


Private Attributes

CACHING_UTILITY caching_utility_
 This is the helper class which will decide and expunge entries from the cache. More...


Detailed Description

template<class ATTRIBUTES, class CACHING_UTILITY>
class ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >

The is a special caching strategy which doesnt have the purging feature.

No purging provided. To be used when purging might be too expensive an operation.

Definition at line 477 of file Caching_Strategies_T.h.


Member Typedef Documentation

template<class ATTRIBUTES, class CACHING_UTILITY>
typedef ATTRIBUTES ACE_Null_Caching_Strategy::CACHING_ATTRIBUTES
 

Definition at line 483 of file Caching_Strategies_T.h.


Member Function Documentation

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE ATTRIBUTES ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::attributes void   
 

Accessor method.

Definition at line 371 of file Caching_Strategies_T.i.

00372 {
00373   return 0;
00374 }

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE CACHING_UTILITY & ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::caching_utility void   
 

Purge the cache.

Definition at line 434 of file Caching_Strategies_T.i.

References caching_utility_.

00435 {
00436   return this->caching_utility_;
00437 }

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE void ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::dump void    const
 

Dumps the state of the object.

Definition at line 440 of file Caching_Strategies_T.i.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_TRACE, and LM_DEBUG.

00441 {
00442   ACE_TRACE ("ACE_Null_Caching_Strategy::dump");
00443 
00444   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00445   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00446 }

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE int ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_bind int    result,
const ATTRIBUTES &    attr
 

Notification for an item getting bound into the cache.

Definition at line 389 of file Caching_Strategies_T.i.

00391 {
00392   ACE_UNUSED_ARG (attr);
00393 
00394   return result;
00395 }

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE int ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_find int    result,
ATTRIBUTES &    attr
 

This method acts as a notification about the CONTAINERs find method call.

Definition at line 398 of file Caching_Strategies_T.i.

00400 {
00401   ACE_UNUSED_ARG (attr);
00402 
00403   return result;
00404 }

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE int ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_rebind int    result,
const ATTRIBUTES &    attr
 

Notification for an item getting bound again into the cache.

Definition at line 425 of file Caching_Strategies_T.i.

00427 {
00428   ACE_UNUSED_ARG (attr);
00429 
00430   return result;
00431 }

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE int ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_trybind int    result,
ATTRIBUTES &    attr
 

This method acts as a notification about the CONTAINERs trybind method call.

Definition at line 416 of file Caching_Strategies_T.i.

00418 {
00419   ACE_UNUSED_ARG (attr);
00420 
00421   return result;
00422 }

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE int ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_unbind int    result,
const ATTRIBUTES &    attr
 

This method acts as a notification about the CONTAINERs unbind method call.

Definition at line 407 of file Caching_Strategies_T.i.

00409 {
00410   ACE_UNUSED_ARG (attr);
00411 
00412   return result;
00413 }

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE void ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::purge_percent double    percentage
 

Set the percentage of entries to purge.

Definition at line 383 of file Caching_Strategies_T.i.

00384 {
00385   ACE_UNUSED_ARG (percentage);
00386 }

template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_INLINE double ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::purge_percent void   
 

Get the percentage of entries to purge.

Definition at line 377 of file Caching_Strategies_T.i.

00378 {
00379   return 0;
00380 }


Member Data Documentation

template<class ATTRIBUTES, class CACHING_UTILITY>
CACHING_UTILITY ACE_Null_Caching_Strategy::caching_utility_ [private]
 

This is the helper class which will decide and expunge entries from the cache.

Definition at line 531 of file Caching_Strategies_T.h.

Referenced by caching_utility.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:51:11 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002