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

#include "PyRep.h"

Inheritance diagram for PySubStruct:
Collaboration diagram for PySubStruct:

Public Member Functions

 PySubStruct (PyRep *t)
 
 PySubStruct (const PySubStruct &oth)
 
 PySubStruct (PySubStruct &&oth)=delete
 
PySubStructoperator= (const PySubStruct &oth)=delete
 
PySubStructoperator= (PySubStruct &&oth)=delete
 
PyRepClone () const
 Clones object. More...
 
bool visit (PyVisitor &v) const
 Visits object. More...
 
PyRepsub () 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
 
PyIntAsInt ()
 
const PyIntAsInt () const
 
PyLongAsLong ()
 
const PyLongAsLong () const
 
PyFloatAsFloat ()
 
const PyFloatAsFloat () const
 
PyBoolAsBool ()
 
const PyBoolAsBool () const
 
PyBufferAsBuffer ()
 
const PyBufferAsBuffer () const
 
PyStringAsString ()
 
const PyStringAsString () const
 
PyWStringAsWString ()
 
const PyWStringAsWString () const
 
PyTokenAsToken ()
 
const PyTokenAsToken () const
 
PyTupleAsTuple ()
 
const PyTupleAsTuple () const
 
PyListAsList ()
 
const PyListAsList () const
 
PyDictAsDict ()
 
const PyDictAsDict () const
 
PyNoneAsNone ()
 
const PyNoneAsNone () const
 
PySubStructAsSubStruct ()
 
const PySubStructAsSubStruct () const
 
PySubStreamAsSubStream ()
 
const PySubStreamAsSubStream () const
 
PyChecksumedStreamAsChecksumedStream ()
 
const PyChecksumedStreamAsChecksumedStream () const
 
PyObjectAsObject ()
 
const PyObjectAsObject () const
 
PyObjectExAsObjectEx ()
 
const PyObjectExAsObjectEx () const
 
PyPackedRowAsPackedRow ()
 
const PyPackedRowAsPackedRow () 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 ~PySubStruct ()
 
- Protected Member Functions inherited from PyRep
 PyRep (PyType t)
 
 PyRep (const PyRep &oth)
 
 PyRep (PyRep &&oth)=delete
 
PyRepoperator= (const PyRep &oth)=default
 
PyRepoperator= (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 mSub
 
- 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 1004 of file PyRep.h.

Constructor & Destructor Documentation

PySubStruct::PySubStruct ( PyRep t)

Definition at line 1063 of file PyRep.cpp.

Referenced by Clone().

1063 : PyRep( PyRep::PyTypeSubStruct ), mSub( t ) {}
PyRep *const mSub
Definition: PyRep.h:1026
PyRep(PyType t)
Definition: PyRep.cpp:73

Here is the caller graph for this function:

PySubStruct::PySubStruct ( const PySubStruct oth)

Definition at line 1064 of file PyRep.cpp.

1064 : PyRep( PyRep::PyTypeSubStruct ), mSub( oth.sub()->Clone() ) {}
virtual PyRep * Clone() const =0
Clones object.
PyRep *const mSub
Definition: PyRep.h:1026
PyRep(PyType t)
Definition: PyRep.cpp:73
PyRep * sub() const
Definition: PyRep.h:1021
PySubStruct::PySubStruct ( PySubStruct &&  oth)
delete
PySubStruct::~PySubStruct ( )
protectedvirtual

Definition at line 1066 of file PyRep.cpp.

References mSub, and PyDecRef.

1067 {
1068  PyDecRef( mSub );
1069 }
PyRep *const mSub
Definition: PyRep.h:1026
#define PyDecRef(op)
Definition: PyRep.h:57

Member Function Documentation

PyRep * PySubStruct::Clone ( ) const
virtual

Clones object.

Returns
Indentical copy of object.

Implements PyRep.

Definition at line 1071 of file PyRep.cpp.

References PySubStruct().

1072 {
1073  return new PySubStruct( *this );
1074 }
PySubStruct(PyRep *t)
Definition: PyRep.cpp:1063

Here is the call graph for this function:

PySubStruct& PySubStruct::operator= ( const PySubStruct oth)
delete
PySubStruct& PySubStruct::operator= ( PySubStruct &&  oth)
delete
PyRep* PySubStruct::sub ( ) const
inline

Definition at line 1021 of file PyRep.h.

References mSub.

Referenced by PyVisitor::VisitSubStruct().

1021 { return mSub; }
PyRep *const mSub
Definition: PyRep.h:1026

Here is the caller graph for this function:

bool PySubStruct::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 1076 of file PyRep.cpp.

References PyVisitor::VisitSubStruct().

1077 {
1078  return v.VisitSubStruct( this );
1079 }
virtual bool VisitSubStruct(const PySubStruct *rep)
wrapper types Visitor
Definition: PyVisitor.cpp:112

Here is the call graph for this function:

Member Data Documentation

PyRep* const PySubStruct::mSub
protected

Definition at line 1026 of file PyRep.h.

Referenced by sub(), and ~PySubStruct().


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