EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PyRep.cpp File Reference
Include dependency graph for PyRep.cpp:

Go to the source code of this file.

Macros

#define PyLong_SHIFT   15
 
#define PyLong_BASE   (1 << PyLong_SHIFT)
 
#define PyLong_MASK   ((int)(PyLong_BASE - 1))
 
#define LONG_BIT_PyLong_SHIFT   (8*sizeof(long) - PyLong_SHIFT)
 
#define INT32_MAX   2147483647L
 
#define Py_IS_INFINITY(X)   ( !finite( X ) && !isnan( X ) )
 

Functions

PyTuplenew_tuple (int64 arg1)
 
PyTuplenew_tuple (int64 arg1, int64 arg2)
 
PyTuplenew_tuple (const char *arg1)
 
PyTuplenew_tuple (const char *arg1, const char *arg2)
 
PyTuplenew_tuple (const char *arg1, const char *arg2, const char *arg3)
 
PyTuplenew_tuple (const char *arg1, const char *arg2, PyTuple *arg3)
 
PyTuplenew_tuple (const char *arg1, PyRep *arg2, PyRep *arg3)
 
PyTuplenew_tuple (PyRep *arg1, PyRep *arg2, PyRep *arg3)
 
PyTuplenew_tuple (PyRep *arg1, PyRep *arg2)
 
PyTuplenew_tuple (PyRep *arg1)
 

Variables

const char *const s_mTypeString []
 

Macro Definition Documentation

#define INT32_MAX   2147483647L

Definition at line 253 of file PyRep.cpp.

Referenced by PyFloat::hash().

#define LONG_BIT_PyLong_SHIFT   (8*sizeof(long) - PyLong_SHIFT)

Referenced by PyLong::hash().

#define Py_IS_INFINITY (   X)    ( !finite( X ) && !isnan( X ) )

Referenced by PyFloat::hash().

#define PyLong_BASE   (1 << PyLong_SHIFT)
#define PyLong_MASK   ((int)(PyLong_BASE - 1))

Referenced by PyLong::hash().

#define PyLong_SHIFT   15

Function Documentation

PyTuple* new_tuple ( int64  arg1)

Definition at line 1160 of file PyRep.cpp.

References PyTuple::SetItem().

Referenced by Client::_SendPingRequest(), ClientSession::_Set(), ClientSession::ClientSession(), StaticDataMgr::CreateHeader(), PyAddress::Encode(), PyCachedObject::Encode(), ClientSession::EncodeChanges(), and ShipSE::MakeSlimItem().

1161 {
1162  PyTuple* res = new PyTuple(1);
1163  res->SetItem(0, new PyLong(arg1));
1164  return res;
1165 }
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610
Python long integer.
Definition: PyRep.h:261

Here is the call graph for this function:

Here is the caller graph for this function:

PyTuple* new_tuple ( int64  arg1,
int64  arg2 
)

Definition at line 1167 of file PyRep.cpp.

References PyTuple::SetItem().

1168 {
1169  PyTuple* res = new PyTuple(2);
1170  res->SetItem(0, new PyLong(arg1));
1171  res->SetItem(1, new PyLong(arg2));
1172  return res;
1173 }
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610
Python long integer.
Definition: PyRep.h:261

Here is the call graph for this function:

PyTuple* new_tuple ( const char *  arg1)

Definition at line 1178 of file PyRep.cpp.

References PyTuple::SetItem().

1179 {
1180  PyTuple* res = new PyTuple(1);
1181  res->SetItem(0, new PyString(arg1));
1182  return res;
1183 }
Python string.
Definition: PyRep.h:430
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610

Here is the call graph for this function:

PyTuple* new_tuple ( const char *  arg1,
const char *  arg2 
)

Definition at line 1185 of file PyRep.cpp.

References PyTuple::SetItem().

1186 {
1187  PyTuple* res = new PyTuple(2);
1188  res->SetItem(0, new PyString(arg1));
1189  res->SetItem(1, new PyString(arg2));
1190  return res;
1191 }
Python string.
Definition: PyRep.h:430
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610

Here is the call graph for this function:

PyTuple* new_tuple ( const char *  arg1,
const char *  arg2,
const char *  arg3 
)

Definition at line 1193 of file PyRep.cpp.

References PyTuple::SetItem().

1194 {
1195  PyTuple* res = new PyTuple(3);
1196  res->SetItem(0, new PyString(arg1));
1197  res->SetItem(1, new PyString(arg2));
1198  res->SetItem(2, new PyString(arg3));
1199  return res;
1200 }
Python string.
Definition: PyRep.h:430
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610

Here is the call graph for this function:

PyTuple* new_tuple ( const char *  arg1,
const char *  arg2,
PyTuple arg3 
)

Definition at line 1205 of file PyRep.cpp.

References PyTuple::SetItem().

1206 {
1207  PyTuple* res = new PyTuple(3);
1208  res->SetItem(0, new PyString(arg1));
1209  res->SetItem(1, new PyString(arg2));
1210  res->SetItem(2, arg3);
1211  return res;
1212 }
Python string.
Definition: PyRep.h:430
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610

Here is the call graph for this function:

PyTuple* new_tuple ( const char *  arg1,
PyRep arg2,
PyRep arg3 
)

Definition at line 1214 of file PyRep.cpp.

References PyTuple::SetItem().

1215 {
1216  PyTuple* res = new PyTuple(3);
1217  res->SetItem(0, new PyString(arg1));
1218  res->SetItem(1, arg2);
1219  res->SetItem(2, arg3);
1220  return res;
1221 }
Python string.
Definition: PyRep.h:430
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610

Here is the call graph for this function:

PyTuple* new_tuple ( PyRep arg1,
PyRep arg2,
PyRep arg3 
)

Definition at line 1223 of file PyRep.cpp.

References PyTuple::SetItem().

1224 {
1225  PyTuple* res = new PyTuple(3);
1226  res->SetItem(0, arg1);
1227  res->SetItem(1, arg2);
1228  res->SetItem(2, arg3);
1229  return res;
1230 }
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610

Here is the call graph for this function:

PyTuple* new_tuple ( PyRep arg1,
PyRep arg2 
)

Definition at line 1232 of file PyRep.cpp.

References PyTuple::SetItem().

1233 {
1234  PyTuple* res = new PyTuple(2);
1235  res->SetItem(0, arg1);
1236  res->SetItem(1, arg2);
1237  return res;
1238 }
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610

Here is the call graph for this function:

PyTuple* new_tuple ( PyRep arg1)

Definition at line 1240 of file PyRep.cpp.

References PyTuple::SetItem().

1241 {
1242  PyTuple* res = new PyTuple(1);
1243  res->SetItem(0, arg1);
1244  return res;
1245 }
Python tuple.
Definition: PyRep.h:567
void SetItem(size_t index, PyRep *object)
Stores Python object.
Definition: PyRep.h:610

Here is the call graph for this function:

Variable Documentation

const char* const s_mTypeString[]
Initial value:
=
{
"Min",
"Integer",
"Long",
"Real",
"Boolean",
"Buffer",
"String",
"WString",
"Token",
"Tuple",
"List",
"Dict",
"None",
"SubStruct",
"SubStream",
"ChecksumedStream",
"Object",
"ObjectEx",
"PackedRow",
"Invalid Type"
}

Lookup table for PyRep type object type names.

Definition at line 39 of file PyRep.cpp.

Referenced by PyRep::TypeString().