EvEmu
0.8.4
11 September 2021
|
Python tuple. More...
#include "PyRep.h"
Public Types | |
typedef std::vector< PyRep * > | 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 | |
PyTuple (size_t item_count) | |
PyTuple (const PyTuple &oth) | |
PyTuple (PyTuple &&oth)=delete | |
PyTuple & | operator= (const PyTuple &oth) |
PyTuple & | operator= (PyTuple &&oth)=delete |
PyRep * | Clone () const |
Clones object. More... | |
bool | visit (PyVisitor &v) const |
Visits object. More... | |
const_iterator | begin () const |
const_iterator | end () const |
size_t | size () const |
bool | empty () const |
void | clear () |
PyRep * | GetItem (size_t index) const |
Returns Python object. More... | |
void | SetItem (size_t index, PyRep *object) |
Stores Python object. More... | |
void | SetItemInt (size_t index, int32 val) |
void | SetItemString (size_t index, const char *str) |
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 () |
Public Attributes | |
storage_type | items |
Protected Member Functions | |
virtual | ~PyTuple () |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
static std::string | StringContent (PyRep *pRep) |
static int64 | IntegerValue (PyRep *pRep) |
static uint32 | IntegerValueU32 (PyRep *pRep) |
![]() | |
const PyType | mType |
![]() | |
size_t | mRefCount |
Reference count of instance. More... | |
bool | mDeleted |
typedef storage_type::const_iterator PyTuple::const_iterator |
typedef storage_type::iterator PyTuple::iterator |
typedef std::vector<PyRep*> PyTuple::storage_type |
PyTuple::PyTuple | ( | size_t | item_count | ) |
Definition at line 537 of file PyRep.cpp.
Referenced by Clone().
PyTuple::PyTuple | ( | const PyTuple & | oth | ) |
Definition at line 538 of file PyRep.cpp.
|
delete |
|
protectedvirtual |
|
inline |
Definition at line 588 of file PyRep.h.
References items.
Referenced by operator=(), PyDumpVisitor::VisitTuple(), PyXMLGenerator::VisitTuple(), and PyVisitor::VisitTuple().
void PyTuple::clear | ( | ) |
Definition at line 558 of file PyRep.cpp.
References end(), items, and PySafeDecRef.
Referenced by operator=().
|
virtual |
Clones object.
Implements PyRep.
Definition at line 548 of file PyRep.cpp.
References PyTuple().
Referenced by PyPacket::Clone(), PyCallStream::Clone(), and EVENotificationStream::Clone().
|
inline |
Definition at line 592 of file PyRep.h.
References items.
Referenced by PyDumpVisitor::VisitTuple().
|
inline |
Definition at line 589 of file PyRep.h.
References items.
Referenced by clear(), operator=(), PyDumpVisitor::VisitTuple(), PyXMLGenerator::VisitTuple(), and PyVisitor::VisitTuple().
|
inline |
Returns Python object.
[in] | index | Index at which is the desired object. |
Definition at line 602 of file PyRep.h.
References items.
Referenced by DBRowDescriptor::_GetColumn(), DBRowDescriptor::_GetColumnList(), ClientSession::_GetCurrent(), ClientSession::_GetLast(), UserError::_GetTupleKeywords(), ClientSession::_Set(), CharacterAppearance::Build(), CharacterPortrait::Build(), AllianceRegistry::CreateBoundObject(), CorpRegistryService::CreateBoundObject(), Colony::CreateRoute(), ClientSession::EncodeChanges(), PyObjectEx_Type1::GetArgs(), PyObjectEx_Type2::GetArgs(), DBRowDescriptor::GetColumnName(), DBRowDescriptor::GetColumnType(), PyObjectEx_Type1::GetKeywords(), PyObjectEx_Type2::GetKeywords(), PasswordString::GetPassword(), PyObjectEx_Type1::GetType(), PyTraceLog::logTrace(), Scan::RequestScans(), and SetSQLDumper::VisitTuple().
|
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 584 of file PyRep.cpp.
|
inline |
Stores Python object.
[in] | index | Index at which the object should be stored. |
[in] | object | Object to be stored. |
Definition at line 610 of file PyRep.h.
References items, PyIncRef, and PySafeDecRef.
Referenced by PasswordString::_CreateArgs(), GPSTransportClosed::_CreateArgs(), DBRowDescriptor::_CreateArgs(), CRowSet::_CreateArgs(), CIndexedRowSet::_CreateArgs(), CFilterRowSet::_CreateArgs(), UserError::_CreateArgs(), PyObjectEx_Type1::_CreateHeader(), PyObjectEx_Type2::_CreateHeader(), Client::_SendCallReturn(), Client::_SendPingResponse(), ClientSession::_Set(), AttributeMap::Add(), DBRowDescriptor::AddColumn(), SystemManager::AddMarker(), FleetService::AddMember(), UserError::AddParameterKeyword(), SystemEntity::ApplyDamage(), TradeService::CancelTrade(), AttributeMap::Change(), FleetService::CreateSquad(), FleetService::CreateWing(), DBResultToPackedRowListTuple(), DBResultToRowList(), ActiveModule::DeactivateCycle(), FleetService::DeleteSquad(), FleetService::DeleteWing(), MiningLaser::Depleted(), EVENotificationStream::Encode(), ClientSession::EncodeChanges(), ClientSession::EncodeInitialState(), TradeBound::ExchangeItems(), CorporationDB::Fetch(), FleetService::FleetBroadcast(), SovereigntyDataMgr::GetAllianceBeacons(), FleetService::GetAvailableFleets(), BookmarkDB::GetBookmarkDescription(), MapDB::GetDynamicData(), FleetService::GetFleetAdvert(), Agent::GetInfoServiceDetails(), Colony::GetLinks(), AgentBound::GetMissionObjectiveInfo(), AgentBound::GetMissionObjectives(), FleetService::GetMOTD(), MarketDB::GetOrders(), Colony::GetPins(), Scan::GetProbeDataForSig(), TowerSE::GetProcessInfo(), Character::GetRAMSkills(), CorporationDB::GetRecruiters(), Colony::GetRoutes(), CustomsSE::GetSettingsInfo(), ShipItem::GetShipInfo(), StaticDataMgr::GetStationCount(), StationDataMgr::GetStationItemBits(), PyService::Handle_MachoBindObject(), TradeService::InitiateTrade(), FleetService::LeaveFleet(), ActiveModule::LoadCharge(), ModuleManager::LoadCharge(), UnmarshalStream::LoadTuple(), UnmarshalStream::LoadTupleOne(), UnmarshalStream::LoadTupleTwo(), CustomsSE::MakeSlimItem(), StructureSE::MakeSlimItem(), WreckSE::MakeSlimItem(), WreckContainer::MakeSlimItemChange(), SBUSE::MarkContested(), new_tuple(), InventoryItem::Populate(), Scan::ProbeScanResult(), ProbeSE::RemoveProbe(), InventoryItem::Rename(), FleetService::RenameSquad(), FleetService::RenameWing(), FleetService::SendActiveStatus(), SystemBubble::SendAddBalls2(), Prospector::SendFailure(), Agent::SendMissionUpdate(), ProbeSE::SendNewProbe(), CynoModule::SendOnJumpBeaconChange(), Character::SendSkillQueue(), ProbeSE::SendSlimChange(), CustomsSE::SendSlimUpdate(), StructureSE::SendSlimUpdate(), ProbeSE::SendStateChange(), SystemManager::SendStaticBall(), ProbeSE::SendWarpEnd(), ProbeSE::SendWarpStart(), SetItemInt(), SetItemString(), FleetService::SetMOTD(), TCUSE::SetOnline(), ShipItem::ShipGetModuleList(), Scan::ShipScanResult(), ActiveModule::ShowEffect(), DroneSE::StateChange(), Scan::SystemScanStarted(), ShipItem::UnlinkGroup(), ShipItem::UnlinkWeapon(), DestinyManager::UpdateNewShip(), DestinyManager::UpdateOldShip(), FleetService::UpdateOptions(), and Agent::UpdateStandings().
|
inline |
Definition at line 622 of file PyRep.h.
References SetItem().
|
inline |
Definition at line 623 of file PyRep.h.
References SetItem().
|
inline |
Definition at line 591 of file PyRep.h.
References items.
Referenced by PyObjectEx_Type1::_CreateHeader(), EVEClientSession::_HandleCommand(), DBRowDescriptor::ColumnCount(), PyObjectEx_Type1::GetKeywords(), AlertService::Handle_BeanCount(), AlertService::Handle_BeanDelivery(), AlertService::Handle_GroupBeanDelivery(), AlertService::Handle_SendClientStackTraceAlert(), operator=(), PyDumpVisitor::VisitTuple(), MarshalStream::VisitTuple(), and SetSQLDumper::VisitTuple().
|
virtual |
Visits object.
[in] | v | Visitor to be used for visiting. |
true | Visit successful. |
false | Error during visit. |
Implements PyRep.
Definition at line 553 of file PyRep.cpp.
References PyVisitor::VisitTuple().
Referenced by PyPacket::Dump(), PyCallStream::Dump(), EVENotificationStream::Dump(), EVECollectDispatcher::Handle_CallReq(), EVECollectDispatcher::Handle_Notify(), EVECollectDispatcher::Handle_Other(), and tcp_callback().
storage_type PyTuple::items |
Definition at line 628 of file PyRep.h.
Referenced by DBRowDescriptor::AddColumn(), begin(), PyServiceMgr::BindObject(), clear(), DBResultToTupleSet(), PyAddress::Decode(), PyPacket::Decode(), PyCallStream::Decode(), PyCachedObjectDecoder::Decode(), EVENotificationStream::Decode(), empty(), PyAddress::Encode(), PyPacket::Encode(), PyCachedObject::Encode(), PyCallStream::Encode(), PyCachedObjectDecoder::EncodeHint(), end(), GetItem(), PyObjectEx_Type1::GetKeywords(), hash(), operator=(), MapData::Populate(), ServiceDB::ProcessIntChange(), ServiceDB::ProcessLongChange(), ServiceDB::ProcessRealChange(), ServiceDB::ProcessStringChange(), SetItem(), and size().