LLVOCacheEntry Class Reference

#include <llvocache.h>

Inheritance diagram for LLVOCacheEntry:

Inheritance graph
[legend]
Collaboration diagram for LLVOCacheEntry:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLVOCacheEntry (U32 local_id, U32 crc, LLDataPackerBinaryBuffer &dp)
 LLVOCacheEntry (FILE *fp)
 LLVOCacheEntry ()
 ~LLVOCacheEntry ()
U32 getLocalID () const
U32 getCRC () const
S32 getHitCount () const
S32 getCRCChangeCount () const
void dump () const
void writeToFile (FILE *fp) const
void assignCRC (U32 crc, LLDataPackerBinaryBuffer &dp)
LLDataPackerBinaryBuffer * getDP (U32 crc)
void recordHit ()
void recordDupe ()

Protected Attributes

U32 mLocalID
U32 mCRC
S32 mHitCount
S32 mDupeCount
S32 mCRCChangeCount
LLDataPackerBinaryBuffer mDP
U8 * mBuffer

Detailed Description

Definition at line 44 of file llvocache.h.


Constructor & Destructor Documentation

LLVOCacheEntry::LLVOCacheEntry ( U32  local_id,
U32  crc,
LLDataPackerBinaryBuffer &  dp 
)

Definition at line 42 of file llvocache.cpp.

References LLDataPackerBinaryBuffer::assignBuffer(), LLDataPackerBinaryBuffer::getBufferSize(), mBuffer, mCRC, mCRCChangeCount, mDP, mDupeCount, mHitCount, and mLocalID.

LLVOCacheEntry::LLVOCacheEntry ( FILE *  fp  ) 

Definition at line 75 of file llvocache.cpp.

References LLDataPackerBinaryBuffer::assignBuffer(), checkedRead(), llendl, llwarns, mBuffer, mCRC, mCRCChangeCount, mDP, mDupeCount, mHitCount, mLocalID, NULL, S32, and size.

LLVOCacheEntry::LLVOCacheEntry (  ) 

Definition at line 54 of file llvocache.cpp.

References LLDataPackerBinaryBuffer::assignBuffer(), mBuffer, mCRC, mCRCChangeCount, mDP, mDupeCount, mHitCount, mLocalID, and NULL.

LLVOCacheEntry::~LLVOCacheEntry (  ) 

Definition at line 104 of file llvocache.cpp.

References mBuffer.


Member Function Documentation

void LLVOCacheEntry::assignCRC ( U32  crc,
LLDataPackerBinaryBuffer &  dp 
)

Definition at line 111 of file llvocache.cpp.

References LLDataPackerBinaryBuffer::assignBuffer(), LLDataPackerBinaryBuffer::freeBuffer(), LLDataPackerBinaryBuffer::getBufferSize(), mBuffer, mCRC, mCRCChangeCount, mDP, and mHitCount.

void LLVOCacheEntry::dump (  )  const

Definition at line 146 of file llvocache.cpp.

References llendl, llinfos, mCRC, mCRCChangeCount, mDupeCount, mHitCount, and mLocalID.

U32 LLVOCacheEntry::getCRC (  )  const [inline]

Definition at line 53 of file llvocache.h.

References mCRC.

Referenced by LLViewerRegion::cacheFullUpdate(), and LLViewerRegion::getDP().

S32 LLVOCacheEntry::getCRCChangeCount (  )  const [inline]

Definition at line 55 of file llvocache.h.

References mCRCChangeCount.

LLDataPackerBinaryBuffer * LLVOCacheEntry::getDP ( U32  crc  ) 

Definition at line 127 of file llvocache.cpp.

References LLDataPackerBinaryBuffer::getBufferSize(), mCRC, mDP, mHitCount, and NULL.

Referenced by LLViewerRegion::getDP().

S32 LLVOCacheEntry::getHitCount (  )  const [inline]

Definition at line 54 of file llvocache.h.

References mHitCount.

U32 LLVOCacheEntry::getLocalID (  )  const [inline]

Definition at line 52 of file llvocache.h.

References mLocalID.

Referenced by LLViewerRegion::cacheFullUpdate(), and LLViewerRegion::loadCache().

void LLVOCacheEntry::recordDupe (  )  [inline]

Definition at line 62 of file llvocache.h.

References mDupeCount.

Referenced by LLViewerRegion::cacheFullUpdate().

void LLVOCacheEntry::recordHit (  ) 

Definition at line 140 of file llvocache.cpp.

References mHitCount.

Referenced by LLViewerRegion::getDP().

void LLVOCacheEntry::writeToFile ( FILE *  fp  )  const

Definition at line 164 of file llvocache.cpp.

References checkedWrite(), LLDataPackerBinaryBuffer::getBufferSize(), mBuffer, mCRC, mCRCChangeCount, mDP, mDupeCount, mHitCount, mLocalID, S32, and size.


Member Data Documentation

U8* LLVOCacheEntry::mBuffer [protected]

Definition at line 71 of file llvocache.h.

Referenced by assignCRC(), LLVOCacheEntry(), writeToFile(), and ~LLVOCacheEntry().

U32 LLVOCacheEntry::mCRC [protected]

Definition at line 66 of file llvocache.h.

Referenced by assignCRC(), dump(), getCRC(), getDP(), LLVOCacheEntry(), and writeToFile().

S32 LLVOCacheEntry::mCRCChangeCount [protected]

Definition at line 69 of file llvocache.h.

Referenced by assignCRC(), dump(), getCRCChangeCount(), LLVOCacheEntry(), and writeToFile().

LLDataPackerBinaryBuffer LLVOCacheEntry::mDP [protected]

Definition at line 70 of file llvocache.h.

Referenced by assignCRC(), getDP(), LLVOCacheEntry(), and writeToFile().

S32 LLVOCacheEntry::mDupeCount [protected]

Definition at line 68 of file llvocache.h.

Referenced by dump(), LLVOCacheEntry(), recordDupe(), and writeToFile().

S32 LLVOCacheEntry::mHitCount [protected]

Definition at line 67 of file llvocache.h.

Referenced by assignCRC(), dump(), getDP(), getHitCount(), LLVOCacheEntry(), recordHit(), and writeToFile().

U32 LLVOCacheEntry::mLocalID [protected]

Definition at line 65 of file llvocache.h.

Referenced by dump(), getLocalID(), LLVOCacheEntry(), and writeToFile().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:01 2010 for Second Life Viewer by  doxygen 1.4.7