DDraceNetwork Docs
CSnapshotDelta Class Reference

#include <snapshot.h>

Collaboration diagram for CSnapshotDelta:
[legend]

Classes

class  CData
 

Public Member Functions

 CSnapshotDelta ()
 
 CSnapshotDelta (const CSnapshotDelta &Old)
 
uint64_t GetDataRate (int Index) const
 
uint64_t GetDataUpdates (int Index) const
 
void SetStaticsize (int ItemType, size_t Size)
 
void SetStaticsize7 (int ItemType, size_t Size)
 
const CDataEmptyDelta () const
 
int CreateDelta (const CSnapshot *pFrom, const CSnapshot *pTo, void *pDstData)
 
int UnpackDelta (const CSnapshot *pFrom, CSnapshot *pTo, const void *pSrcData, int DataSize, bool Sixup)
 
int DebugDumpDelta (const void *pSrcData, int DataSize)
 

Static Public Member Functions

static int DiffItem (const int *pPast, const int *pCurrent, int *pOut, int Size)
 

Private Types

enum  { MAX_NETOBJSIZES = 64 }
 

Static Private Member Functions

static void UndiffItem (const int *pPast, const int *pDiff, int *pOut, int Size, uint64_t *pDataRate)
 

Private Attributes

short m_aItemSizes [MAX_NETOBJSIZES]
 
short m_aItemSizes7 [MAX_NETOBJSIZES]
 
uint64_t m_aSnapshotDataRate [CSnapshot::MAX_TYPE+1]
 
uint64_t m_aSnapshotDataUpdates [CSnapshot::MAX_TYPE+1]
 
CData m_Empty
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MAX_NETOBJSIZES 

Constructor & Destructor Documentation

◆ CSnapshotDelta() [1/2]

CSnapshotDelta::CSnapshotDelta ( )

◆ CSnapshotDelta() [2/2]

CSnapshotDelta::CSnapshotDelta ( const CSnapshotDelta Old)

Member Function Documentation

◆ CreateDelta()

int CSnapshotDelta::CreateDelta ( const CSnapshot pFrom,
const CSnapshot pTo,
void *  pDstData 
)

◆ DebugDumpDelta()

int CSnapshotDelta::DebugDumpDelta ( const void *  pSrcData,
int  DataSize 
)

◆ DiffItem()

int CSnapshotDelta::DiffItem ( const int *  pPast,
const int *  pCurrent,
int *  pOut,
int  Size 
)
static

◆ EmptyDelta()

const CSnapshotDelta::CData * CSnapshotDelta::EmptyDelta ( ) const

◆ GetDataRate()

uint64_t CSnapshotDelta::GetDataRate ( int  Index) const
inline

◆ GetDataUpdates()

uint64_t CSnapshotDelta::GetDataUpdates ( int  Index) const
inline

◆ SetStaticsize()

void CSnapshotDelta::SetStaticsize ( int  ItemType,
size_t  Size 
)

◆ SetStaticsize7()

void CSnapshotDelta::SetStaticsize7 ( int  ItemType,
size_t  Size 
)

◆ UndiffItem()

void CSnapshotDelta::UndiffItem ( const int *  pPast,
const int *  pDiff,
int *  pOut,
int  Size,
uint64_t *  pDataRate 
)
staticprivate

◆ UnpackDelta()

int CSnapshotDelta::UnpackDelta ( const CSnapshot pFrom,
CSnapshot pTo,
const void *  pSrcData,
int  DataSize,
bool  Sixup 
)

Member Data Documentation

◆ m_aItemSizes

short CSnapshotDelta::m_aItemSizes[MAX_NETOBJSIZES]
private

◆ m_aItemSizes7

short CSnapshotDelta::m_aItemSizes7[MAX_NETOBJSIZES]
private

◆ m_aSnapshotDataRate

uint64_t CSnapshotDelta::m_aSnapshotDataRate[CSnapshot::MAX_TYPE+1]
private

◆ m_aSnapshotDataUpdates

uint64_t CSnapshotDelta::m_aSnapshotDataUpdates[CSnapshot::MAX_TYPE+1]
private

◆ m_Empty

CData CSnapshotDelta::m_Empty
private

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