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

#include "PyRep.h"

Inheritance diagram for PyChecksumedStream:
Collaboration diagram for PyChecksumedStream:

Public Member Functions

 PyChecksumedStream (PyRep *t, uint32 sum)
 
 PyChecksumedStream (const PyChecksumedStream &oth)
 
 PyChecksumedStream (PyChecksumedStream &&oth)=delete
 
PyChecksumedStream & operator= (const PyChecksumedStream &oth)=delete
 
PyChecksumedStream & operator= (PyChecksumedStream &&oth)=delete
 
PyRep * Clone () const
 Clones object. More...
 
bool visit (PyVisitor &v) const
 Visits object. More...
 
PyRep * stream () const
 
uint32 checksum () const
 
- Public Member Functions inherited from PyRep
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...
 
virtual int32 hash () const
 virtual function to generate a hash value of a object. More...
 
- Public Member Functions inherited from RefObject
 RefObject (size_t initRefCount)
 Initializes reference count. More...
 
virtual ~RefObject ()
 Destructor; must be virtual. More...
 
size_t GetCount ()
 

Protected Member Functions

virtual ~PyChecksumedStream ()
 
- Protected Member Functions inherited from PyRep
 PyRep (PyType t)
 
 PyRep (const PyRep &oth)
 
 PyRep (PyRep &&oth)=delete
 
PyRep & operator= (const PyRep &oth)=default
 
PyRep & operator= (PyRep &&oth)=default
 
virtual ~PyRep ()
 
- Protected Member Functions inherited from RefObject
void IncRef () const
 Increments reference count of object by one. More...
 
void DecRef () const
 Decrements reference count of object by one. More...
 

Protected Attributes

PyRep *const mStream
 
const uint32 mChecksum
 
- Protected Attributes inherited from PyRep
const PyType mType
 
- Protected Attributes inherited from RefObject
size_t mRefCount
 Reference count of instance. More...
 
bool mDeleted
 

Additional Inherited Members

- Public Types inherited from PyRep
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...
 
- Static Public Member Functions inherited from PyRep
static std::string StringContent (PyRep *pRep)
 
static int64 IntegerValue (PyRep *pRep)
 
static uint32 IntegerValueU32 (PyRep *pRep)
 

Detailed Description

Definition at line 1064 of file PyRep.h.

Constructor & Destructor Documentation

PyChecksumedStream::PyChecksumedStream ( PyRep *  t,
uint32  sum 
)

Definition at line 1136 of file PyRep.cpp.

Referenced by Clone().

PyRep *const mStream
Definition: PyRep.h:1087
const uint32 mChecksum
Definition: PyRep.h:1088
PyRep(PyType t)
Definition: PyRep.cpp:73

Here is the caller graph for this function:

PyChecksumedStream::PyChecksumedStream ( const PyChecksumedStream &  oth)

Definition at line 1138 of file PyRep.cpp.

PyRep *const mStream
Definition: PyRep.h:1087
virtual PyRep * Clone() const =0
Clones object.
const uint32 mChecksum
Definition: PyRep.h:1088
uint32 checksum() const
Definition: PyRep.h:1082
PyRep(PyType t)
Definition: PyRep.cpp:73
PyRep * stream() const
Definition: PyRep.h:1081
PyChecksumedStream::PyChecksumedStream ( PyChecksumedStream &&  oth)
delete
PyChecksumedStream::~PyChecksumedStream ( )
protectedvirtual

Definition at line 1141 of file PyRep.cpp.

References mStream, and PyDecRef.

1142 {
1143  PyDecRef( mStream );
1144 }
PyRep *const mStream
Definition: PyRep.h:1087
#define PyDecRef(op)
Definition: PyRep.h:57

Member Function Documentation

uint32 PyChecksumedStream::checksum ( ) const
inline

Definition at line 1082 of file PyRep.h.

References mChecksum.

Referenced by PyDumpVisitor::VisitChecksumedStream(), and MarshalStream::VisitChecksumedStream().

1082 { return mChecksum; }
const uint32 mChecksum
Definition: PyRep.h:1088

Here is the caller graph for this function:

PyRep * PyChecksumedStream::Clone ( ) const
virtual

Clones object.

Returns
Indentical copy of object.

Implements PyRep.

Definition at line 1146 of file PyRep.cpp.

References PyChecksumedStream().

1147 {
1148  return new PyChecksumedStream( *this );
1149 }
PyChecksumedStream(PyRep *t, uint32 sum)
Definition: PyRep.cpp:1136

Here is the call graph for this function:

PyChecksumedStream& PyChecksumedStream::operator= ( const PyChecksumedStream &  oth)
delete
PyChecksumedStream& PyChecksumedStream::operator= ( PyChecksumedStream &&  oth)
delete
PyRep* PyChecksumedStream::stream ( ) const
inline

Definition at line 1081 of file PyRep.h.

References mStream.

Referenced by PyPacket::Decode(), and PyVisitor::VisitChecksumedStream().

1081 { return mStream; }
PyRep *const mStream
Definition: PyRep.h:1087

Here is the caller graph for this function:

bool PyChecksumedStream::visit ( PyVisitor &  v) const
virtual

Visits object.

Parameters
[in]vVisitor to be used for visiting.
Return values
trueVisit successful.
falseError during visit.

Implements PyRep.

Definition at line 1151 of file PyRep.cpp.

References PyVisitor::VisitChecksumedStream().

1152 {
1153  return v.VisitChecksumedStream( this );
1154 }
virtual bool VisitChecksumedStream(const PyChecksumedStream *rep)
Definition: PyVisitor.cpp:133

Here is the call graph for this function:

Member Data Documentation

const uint32 PyChecksumedStream::mChecksum
protected

Definition at line 1088 of file PyRep.h.

Referenced by checksum().

PyRep* const PyChecksumedStream::mStream
protected

Definition at line 1087 of file PyRep.h.

Referenced by stream(), and ~PyChecksumedStream().


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