EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CachedObjectMgr::CacheRecord Class Reference

#include "CachedObjectMgr.h"

Collaboration diagram for CachedObjectMgr::CacheRecord:

Public Member Functions

 CacheRecord ()
 
 ~CacheRecord ()
 
PyObjectEncodeHint () const
 

Public Attributes

PyRepobjectID
 
int64 timestamp
 
uint32 version
 
PyBuffercache
 

Detailed Description

Definition at line 105 of file CachedObjectMgr.h.

Constructor & Destructor Documentation

CachedObjectMgr::CacheRecord::CacheRecord ( )
CachedObjectMgr::CacheRecord::~CacheRecord ( )

Definition at line 106 of file CachedObjectMgr.cpp.

References PyDecRef.

107 {
108  PyDecRef( objectID );
109  PyDecRef( cache );
110 }
#define PyDecRef(op)
Definition: PyRep.h:57

Member Function Documentation

PyObject * CachedObjectMgr::CacheRecord::EncodeHint ( ) const

Definition at line 112 of file CachedObjectMgr.cpp.

References PyObject::Clone(), and HackCacheNodeID.

113 {
114  objectCaching_CachedObject_spec spec;
115 
116  spec.objectID = objectID->Clone();
117  spec.nodeID = HackCacheNodeID;
118  spec.timestamp = timestamp;
119  spec.version = version;
120 
121  return(spec.Encode());
122 }
virtual PyRep * Clone() const =0
Clones object.
static const uint32 HackCacheNodeID

Here is the call graph for this function:

Member Data Documentation

PyBuffer* CachedObjectMgr::CacheRecord::cache
PyRep* CachedObjectMgr::CacheRecord::objectID
int64 CachedObjectMgr::CacheRecord::timestamp
uint32 CachedObjectMgr::CacheRecord::version

The documentation for this class was generated from the following files: