EvEmu
0.8.4
11 September 2021
|
Packed row. More...
#include "PyRep.h"
Public Types | |
typedef PyList | storage_type |
typedef storage_type::iterator | iterator |
typedef storage_type::const_iterator | const_iterator |
![]() | |
enum | PyType { PyTypeMin = 0, PyTypeInt = 1, PyTypeLong = 2, PyTypeFloat = 3, PyTypeBool = 4, PyTypeBuffer = 5, PyTypeString = 6, PyTypeWString = 7, PyTypeToken = 8, PyTypeTuple = 9, PyTypeList = 10, PyTypeDict = 11, PyTypeNone = 12, PyTypeSubStruct = 13, PyTypeSubStream = 14, PyTypeChecksumedStream = 15, PyTypeObject = 16, PyTypeObjectEx = 17, PyTypePackedRow = 18, PyTypeError = 19 } |
Python wire object types. More... | |
Public Member Functions | |
PyPackedRow (DBRowDescriptor *header) | |
PyPackedRow (const PyPackedRow &oth) | |
PyPackedRow (PyPackedRow &&oth)=delete | |
PyPackedRow & | operator= (const PyPackedRow &oth) |
PyPackedRow & | operator= (PyPackedRow &&oth)=delete |
PyRep * | Clone () const |
Clones object. More... | |
bool | visit (PyVisitor &v) const |
Visits object. More... | |
DBRowDescriptor * | header () const |
const_iterator | begin () const |
const_iterator | end () const |
void | clear () |
PyRep * | GetField (size_t index) const |
bool | SetField (uint32 index, PyRep *value) |
bool | SetField (const char *colName, PyRep *value) |
int32 | hash () const |
virtual function to generate a hash value of a object. More... | |
![]() | |
PyType | GetType () const |
bool | IsInt () const |
bool | IsLong () const |
bool | IsFloat () const |
bool | IsBool () const |
bool | IsBuffer () const |
bool | IsString () const |
bool | IsWString () const |
bool | IsToken () const |
bool | IsTuple () const |
bool | IsList () const |
bool | IsDict () const |
bool | IsNone () const |
bool | IsSubStruct () const |
bool | IsSubStream () const |
bool | IsChecksumedStream () const |
bool | IsObject () const |
bool | IsObjectEx () const |
bool | IsPackedRow () const |
const char * | TypeString () const |
PyInt * | AsInt () |
const PyInt * | AsInt () const |
PyLong * | AsLong () |
const PyLong * | AsLong () const |
PyFloat * | AsFloat () |
const PyFloat * | AsFloat () const |
PyBool * | AsBool () |
const PyBool * | AsBool () const |
PyBuffer * | AsBuffer () |
const PyBuffer * | AsBuffer () const |
PyString * | AsString () |
const PyString * | AsString () const |
PyWString * | AsWString () |
const PyWString * | AsWString () const |
PyToken * | AsToken () |
const PyToken * | AsToken () const |
PyTuple * | AsTuple () |
const PyTuple * | AsTuple () const |
PyList * | AsList () |
const PyList * | AsList () const |
PyDict * | AsDict () |
const PyDict * | AsDict () const |
PyNone * | AsNone () |
const PyNone * | AsNone () const |
PySubStruct * | AsSubStruct () |
const PySubStruct * | AsSubStruct () const |
PySubStream * | AsSubStream () |
const PySubStream * | AsSubStream () const |
PyChecksumedStream * | AsChecksumedStream () |
const PyChecksumedStream * | AsChecksumedStream () const |
PyObject * | AsObject () |
const PyObject * | AsObject () const |
PyObjectEx * | AsObjectEx () |
const PyObjectEx * | AsObjectEx () const |
PyPackedRow * | AsPackedRow () |
const PyPackedRow * | AsPackedRow () const |
void | Dump (FILE *into, const char *pfx) const |
Dumps object to file. More... | |
void | Dump (LogType type, const char *pfx) const |
Dumps object to console. More... | |
![]() | |
RefObject (size_t initRefCount) | |
Initializes reference count. More... | |
virtual | ~RefObject () |
Destructor; must be virtual. More... | |
size_t | GetCount () |
Protected Member Functions | |
virtual | ~PyPackedRow () |
![]() | |
PyRep (PyType t) | |
PyRep (const PyRep &oth) | |
PyRep (PyRep &&oth)=delete | |
PyRep & | operator= (const PyRep &oth)=default |
PyRep & | operator= (PyRep &&oth)=default |
virtual | ~PyRep () |
![]() | |
void | IncRef () const |
Increments reference count of object by one. More... | |
void | DecRef () const |
Decrements reference count of object by one. More... | |
Protected Attributes | |
DBRowDescriptor *const | mHeader |
storage_type *const | mFields |
![]() | |
const PyType | mType |
![]() | |
size_t | mRefCount |
Reference count of instance. More... | |
bool | mDeleted |
Additional Inherited Members | |
![]() | |
static std::string | StringContent (PyRep *pRep) |
static int64 | IntegerValue (PyRep *pRep) |
static uint32 | IntegerValueU32 (PyRep *pRep) |
Packed row.
Special row which packs all its values with zero-compression algorithm.
typedef PyList PyPackedRow::storage_type |
PyPackedRow::PyPackedRow | ( | DBRowDescriptor * | header | ) |
Definition at line 1010 of file PyRep.cpp.
Referenced by Clone().
PyPackedRow::PyPackedRow | ( | const PyPackedRow & | oth | ) |
Definition at line 1012 of file PyRep.cpp.
|
delete |
|
protectedvirtual |
|
inline |
Definition at line 986 of file PyRep.h.
References PyList::begin(), and mFields.
Referenced by PyDumpVisitor::VisitPackedRow(), and PyVisitor::VisitPackedRow().
|
inline |
Definition at line 988 of file PyRep.h.
References PyList::clear(), and mFields.
|
virtual |
Clones object.
Implements PyRep.
Definition at line 1021 of file PyRep.cpp.
References PyPackedRow().
|
inline |
Definition at line 987 of file PyRep.h.
References PyList::end(), and mFields.
Referenced by PyDumpVisitor::VisitPackedRow(), and PyVisitor::VisitPackedRow().
|
inline |
Definition at line 990 of file PyRep.h.
References PyList::GetItem(), and mFields.
Referenced by StaticDataMgr::SetBPMatlType(), and MarshalStream::VisitPackedRow().
|
virtual |
virtual function to generate a hash value of a object.
virtual function to generate a hash value of a object to facilitate the various maps and checks.
Reimplemented from PyRep.
Definition at line 1047 of file PyRep.cpp.
References PyRep::hash().
|
inline |
Definition at line 983 of file PyRep.h.
References mHeader.
Referenced by UnmarshalStream::LoadPackedRow(), SetField(), PyDumpVisitor::VisitPackedRow(), PyVisitor::VisitPackedRow(), and MarshalStream::VisitPackedRow().
PyPackedRow & PyPackedRow::operator= | ( | const PyPackedRow & | oth | ) |
|
delete |
Definition at line 1031 of file PyRep.cpp.
References header(), mFields, PyDecRef, and PyList::SetItem().
Referenced by FillPackedRow(), LiveUpdateDB::GenerateUpdates(), InventoryItem::GetChargeStatusRow(), SovereigntyDataMgr::GetCurrentSovData(), InventoryItem::GetItemRow(), InventoryItem::GetItemStatusRow(), MarketDB::GetMarketGroups(), UnmarshalStream::LoadPackedRow(), SystemManager::MakeSetState(), marshal_EVEMarshalTest(), StaticDataMgr::SetBPMatlType(), and SetField().
bool PyPackedRow::SetField | ( | const char * | colName, |
PyRep * | value | ||
) |
Definition at line 1042 of file PyRep.cpp.
References header(), and SetField().
|
virtual |
Visits object.
[in] | v | Visitor to be used for visiting. |
true | Visit successful. |
false | Error during visit. |
Implements PyRep.
Definition at line 1026 of file PyRep.cpp.
References PyVisitor::VisitPackedRow().
|
protected |
Definition at line 1001 of file PyRep.h.
Referenced by begin(), clear(), end(), GetField(), operator=(), SetField(), and ~PyPackedRow().
|
protected |
Definition at line 1000 of file PyRep.h.
Referenced by header(), and ~PyPackedRow().