EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PyRep.h File Reference
Include dependency graph for PyRep.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PyRep
 Base Python wire object. More...
 
class  PyInt
 Python integer. More...
 
class  PyLong
 Python long integer. More...
 
class  PyFloat
 Python floating point number. More...
 
class  PyBool
 Python boolean. More...
 
class  PyNone
 Python's "none". More...
 
class  PyBuffer
 Python buffer. More...
 
class  PyString
 Python string. More...
 
class  PyWString
 Python wide string. More...
 
class  PyToken
 Python token (eg. class name). More...
 
class  PyTuple
 Python tuple. More...
 
class  PyList
 Python list. More...
 
class  PyDict
 Python's dictionary. More...
 
class  PyDict::_hash
 
class  PyDict::_comp
 
class  PyObject
 Python object. More...
 
class  PyObjectEx
 Python extended object. More...
 
class  PyObjectEx_Type1
 Wrapper class for PyObjectEx of type 1. More...
 
class  PyObjectEx_Type2
 Wrapper class for PyObjectEx of type 2. More...
 
class  PyPackedRow
 Packed row. More...
 
class  PySubStruct
 
class  PySubStream
 
class  PyChecksumedStream
 
class  BuiltinSet
 
class  CacheOK
 
class  pyStatic
 

Macros

#define PyIncRef(op)   (op)->IncRef()
 
#define PyDecRef(op)   (op)->DecRef()
 
#define PySafeIncRef(op)   if (op != nullptr) PyIncRef( op )
 
#define PySafeDecRef(op)   if (op != nullptr) PyDecRef( op )
 
PyStatic.h

static memory object caching/tracking system for oft-used Python objects

: Allan

Date
: 13 December 17 : 15 February 21 (added mt objects)
#define PyStatic   ( pyStatic::get() )
 

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)
 
PyTuplenew_tuple (PyRep *arg1, PyRep *arg2)
 
PyTuplenew_tuple (PyRep *arg1, PyRep *arg2, PyRep *arg3)
 

Macro Definition Documentation

#define PyDecRef (   op)    (op)->DecRef()

Definition at line 57 of file PyRep.h.

Referenced by PyService::_BuildCachedReturn(), ClientSession::_Set(), Client::CharNoLongerInStation(), PyDict::clear(), BulkDB::Close(), MarketMgr::Close(), EntityList::CorpNotify(), DBResultToIntIntlistDict(), DBResultToPackedRowDict(), DBResultToPackedRowList(), PyAddress::Decode(), PyPacket::Decode(), PyCallStream::Decode(), PyCachedObjectDecoder::Decode(), EVENotificationStream::Decode(), PyCachedCall::Decode(), DBRowDescriptor::FindColumn(), CachedObjectMgr::GetCachedObject(), PyDict::GetItemString(), MarketDB::GetOrders(), PyFloat::hash(), CachedObjectMgr::HaveCached(), PyServiceMgr::Initalize(), ObjCacheService::InsertCacheHints(), CachedObjectMgr::LoadCachedFile(), CachedObjectMgr::LoadCachedFromFile(), UnmarshalStream::LoadDict(), UnmarshalStream::LoadList(), UnmarshalStream::LoadObject(), UnmarshalStream::LoadObjectEx(), UnmarshalStream::LoadPackedRow(), UnmarshalStream::LoadTuple(), UnmarshalStream::LoadTupleTwo(), CachedObjectMgr::MakeCacheHint(), marshal_EVEMarshalTest(), EntityList::Multicast(), ObjCacheService::PrimeCache(), Client::QueueDestinyUpdate(), StationItem::RentOffice(), CachedObjectMgr::SaveCachedToFile(), StaticDataMgr::SetBPMatlType(), PyPackedRow::SetField(), PyDict::SetItem(), DestinyManager::Stop(), UnmarshalLogText(), CachedObjectMgr::UpdateCache(), CachedObjectMgr::UpdateCacheFromSS(), CachedObjectMgr::CacheRecord::~CacheRecord(), Client::~Client(), ClientSession::~ClientSession(), MissionDataMgr::~MissionDataMgr(), ObjectCachedMethodID::~ObjectCachedMethodID(), ObjectCachedSessionMethodID::~ObjectCachedSessionMethodID(), PyChecksumedStream::~PyChecksumedStream(), PyObject::~PyObject(), PyObjectEx::~PyObjectEx(), PyPackedRow::~PyPackedRow(), pyStatic::~pyStatic(), and PySubStruct::~PySubStruct().

#define PyIncRef (   op)    (op)->IncRef()

debug macros to ease the increase and decrease of references of a object using this also increases the possibility of debugging it.

Definition at line 56 of file PyRep.h.

Referenced by UserError::AddKeyword(), SystemManager::AddMarker(), SystemBubble::BubblecastDestinyEvent(), SystemBubble::BubblecastDestinyUpdate(), SystemBubble::BubblecastDestinyUpdateExclusive(), SystemBubble::BubblecastSendNotification(), TradeService::CancelTrade(), Client::CharNoLongerInStation(), EntityList::CorpNotify(), PlanetMgr::CreateRoute(), DBResultToPackedRowDict(), DBResultToPackedRowList(), DBResultToPackedRowListTuple(), TradeBound::ExchangeItems(), StaticDataMgr::GetAgents(), FleetService::GetAvailableFleets(), StaticDataMgr::GetBillTypes(), StaticDataMgr::GetBPMatlData(), MissionDataMgr::GetCourierRes(), StaticDataMgr::GetEntryTypes(), StaticDataMgr::GetFactionInfo(), StandingMgr::GetFactionStandings(), FleetService::GetFleetAdvert(), StaticDataMgr::GetKeyMap(), MissionDataMgr::GetKillRes(), MarketMgr::GetMarketGroups(), MissionDataMgr::GetMiningRes(), StaticDataMgr::GetNPCDivisions(), StationItem::GetOffices(), StaticDataMgr::GetOperands(), MapData::GetPseudoSecurities(), MapData::GetStationExtraInfo(), StationDataMgr::GetStationPyData(), CachedObjectMgr::HaveCached(), CachedObjectMgr::InvalidateCache(), pyStatic::mtDict(), pyStatic::mtList(), pyStatic::mtTuple(), EntityList::Multicast(), pyStatic::NewFalse(), pyStatic::NewNegOne(), pyStatic::NewNone(), pyStatic::NewOne(), pyStatic::NewTrue(), pyStatic::NewZero(), PyCallArgs::PyCallArgs(), TargetManager::QueueEvent(), TargetManager::QueueUpdate(), StationItem::RentOffice(), DestinyManager::SendDestinyUpdate(), SystemManager::SendStaticBall(), StaticDataMgr::SetBPMatlType(), PyTuple::SetItem(), PyList::SetItem(), UnmarshalStream::StoreObject(), and Scan::SystemScanStarted().

#define PySafeIncRef (   op)    if (op != nullptr) PyIncRef( op )
#define PyStatic   ( pyStatic::get() )

Definition at line 1209 of file PyRep.h.

Referenced by ClientSession::_Set(), Client::_VerifyFuncResult(), AttributeMap::Add(), FleetService::AddMember(), DestinyManager::AttemptDockOperation(), PyServiceMgr::BindObject(), ClientSession::Clear(), ClientSession::ClientSession(), Command_giveallskills(), Command_giveskill(), AllianceDB::CreateAllianceChangePacket(), CorporationDB::CreateCorporationCreatePacket(), DBColumnToPyRep(), DBResultToIntIntDict(), PyAddress::Encode(), PyPacket::Encode(), PyCallStream::Encode(), EVENotificationStream::Encode(), ClientSession::EncodeChanges(), ClientSession::EncodeInitialState(), CorpRegistryBound::FillOCApplicationChange(), FleetService::FleetBroadcast(), CertificateMgrDB::GetAllShipCertificateRecommendations(), CorporationDB::GetAssetInventory(), BookmarkDB::GetBookmarkDescription(), BookmarkDB::GetBookmarks(), BookmarkDB::GetBookmarksInFolder(), CertificateMgrDB::GetCertificateCategories(), CertificateMgrDB::GetCertificateClasses(), CharacterDB::GetCharSelectInfo(), CalendarDB::GetEventList(), Agent::GetInfoServiceDetails(), ShipDB::GetInsuranceByShipID(), ShipItem::GetLinkedWeapons(), MarketDB::GetMarketGroups(), AgentBound::GetMissionObjectives(), FleetService::GetMOTD(), MarketMgr::GetNewPriceHistory(), MarketMgr::GetOldPriceHistory(), Colony::GetPins(), TowerSE::GetProcessInfo(), EvilNumber::GetPyObject(), StandingDB::GetStandingCompositions(), SovereigntyDataMgr::GetSystemSovereignty(), AlertService::Handle_BeanCount(), AlertService::Handle_BeanDelivery(), AlertService::Handle_GroupBeanDelivery(), PyService::Handle_MachoBindObject(), AlertService::Handle_SendClientStackTraceAlert(), ClientStatsMgr::Handle_SubmitStats(), PyServiceMgr::Initalize(), UnmarshalStream::LoadBoolFalse(), UnmarshalStream::LoadBoolTrue(), UnmarshalStream::LoadNone(), StationDataMgr::LoadStationPyData(), SystemManager::MakeSetState(), TowerSE::MakeSlimItem(), CustomsSE::MakeSlimItem(), Missile::MakeSlimItem(), DroneSE::MakeSlimItem(), ProbeSE::MakeSlimItem(), StructureSE::MakeSlimItem(), ContainerSE::MakeSlimItem(), StationSE::MakeSlimItem(), WreckSE::MakeSlimItem(), StaticSystemEntity::MakeSlimItem(), ShipSE::MakeSlimItem(), StargateSE::MakeSlimItem(), ItemSystemEntity::MakeSlimItem(), ObjectSystemEntity::MakeSlimItem(), DynamicSystemEntity::MakeSlimItem(), ModuleManager::ModuleRepair(), PyResult::operator=(), InventoryItem::Populate(), CorporationDB::PyHasShares(), EntityList::PyIsOnline(), CalendarDB::SaveNewEvent(), CustomsSE::SendEffectUpdate(), StructureSE::SendEffectUpdate(), Agent::SendMissionUpdate(), ProbeSE::SendSlimChange(), CustomsSE::SendSlimUpdate(), StructureSE::SendSlimUpdate(), DestinyManager::SendSpecialEffect(), PyDict::SetItem(), TCUSE::SetOffline(), ModuleItem::SetOnline(), Scan::ShipScanResult(), ActiveModule::ShowEffect(), DroneSE::StateChange(), SuperWeapon::StopCycle(), DestinyManager::UpdateNewShip(), DestinyManager::UpdateOldShip(), Agent::UpdateStandings(), and CharacterDB::ValidateCharNameRep().

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)

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:

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,
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: