TPProto::CacheNoneMethod Class Reference

CacheMethod that doesn't cache anything class. More...

#include <cachenonemethod.h>

Inheritance diagram for TPProto::CacheNoneMethod:

TPProto::CacheMethod List of all members.

Public Member Functions

 CacheNoneMethod ()
 Default Constructor.
 CacheNoneMethod (const CacheNoneMethod &rhs)
 Copy Constructor. No fields to copy or zero.
virtual ~CacheNoneMethod ()
 Destructor, virtual.
virtual void update ()
 Called when the client wants to update the cache. Can do nothing.
virtual void getById (uint32_t id)
 Gets a item from the cache by Id.
virtual void markInvalid (uint32_t id)
 Marks an item as invalid. If a method wishes to it can refetch it from the server. The pointer to the frame should not be consided valid, and does not get deleted by the CacheMethod.
virtual CacheMethodclone ()
 Returns an empty clone of this CacheMethod. body should be return new CacheMethodNameCopyConstructor(this);.

Protected Member Functions

void getIdList ()
void receiveItem (Frame *frame)
void receiveIdList (Frame *frame)

Detailed Description

CacheMethod that doesn't cache anything class.


Member Function Documentation

void TPProto::CacheNoneMethod::getById ( uint32_t  id  )  [virtual]

Gets a item from the cache by Id.

Returned by call to Cache::newItem or Cache::existingItem

Parameters:
id The Id of the item to get.

Implements TPProto::CacheMethod.

void TPProto::CacheNoneMethod::markInvalid ( uint32_t  id  )  [virtual]

Marks an item as invalid. If a method wishes to it can refetch it from the server. The pointer to the frame should not be consided valid, and does not get deleted by the CacheMethod.

Parameters:
id The id of the item that is invalid.

Implements TPProto::CacheMethod.


The documentation for this class was generated from the following files:
Generated on Thu Nov 20 09:45:41 2008 for libtpproto-cpp by  doxygen 1.5.1