EvEmu
0.8.4
11 September 2021
|
Python list. 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 | |
PyList (size_t item_count=0) | |
PyList (const PyList &oth) | |
PyList (PyList &&oth)=delete | |
PyList & | operator= (const PyList &oth) |
PyList & | operator= (PyList &&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 | SetItemString (size_t index, const char *str) |
Stores Python string. More... | |
void | AddItem (PyRep *i) |
void | AddItemInt (int32 intval) |
void | AddItemLong (int64 intval) |
void | AddItemReal (double realval) |
void | AddItemString (const char *str) |
![]() | |
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... | |
![]() | |
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 | ~PyList () |
![]() | |
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 PyList::const_iterator |
typedef storage_type::iterator PyList::iterator |
typedef std::vector<PyRep*> PyList::storage_type |
PyList::PyList | ( | size_t | item_count = 0 | ) |
Definition at line 608 of file PyRep.cpp.
Referenced by Clone().
PyList::PyList | ( | const PyList & | oth | ) |
Definition at line 609 of file PyRep.cpp.
|
delete |
|
protectedvirtual |
|
inline |
Definition at line 701 of file PyRep.h.
References items.
Referenced by Client::_SendPingResponse(), AddItemInt(), AddItemLong(), AddItemReal(), AddItemString(), StaticDataMgr::CreateHeader(), DBResultToRowset(), ActiveModule::DeactivateCycle(), CorporationDB::Fetch(), SovereigntyDataMgr::GetAllianceBeacons(), SovereigntyDataMgr::GetAllianceSystems(), BookmarkDB::GetBookmarks(), BookmarkDB::GetBookmarksInFolder(), SystemManager::GetCurrentEntities(), RepairService::GetDamageReports(), SystemBubble::GetDroneState(), StructureSE::GetEffectState(), CalendarDB::GetEventList(), PlanetSE::GetExtractorsForPlanet(), BookmarkDB::GetFolders(), Agent::GetInfoServiceDetails(), InventoryItem::GetItemInfo(), ShipItem::GetLinkedWeapons(), AgentBound::GetMissionObjectiveInfo(), Colony::GetPins(), Scan::GetProbeDataForSig(), TowerSE::GetProcessInfo(), CalendarDB::GetResponsesForCharacter(), CalendarDB::GetResponsesToEvent(), Colony::GetRoutes(), CorporationDB::GetSharesForCorp(), StaticDataMgr::GetStationCount(), TowerSE::GetUsageFlagList(), AccountDB::GetWalletDivisionsInfo(), Colony::InstallProgram(), UnmarshalStream::LoadListOne(), UnmarshalStream::LoadObjectEx(), ShipSE::MakeSlimItem(), ItemSystemEntity::MakeSlimItem(), CRowSet::NewRow(), ServiceDB::PrimeOwners(), Client::QueueDestinyEvent(), Client::QueueDestinyUpdate(), SearchDB::QuickQuery(), ProbeSE::RecoverProbe(), InventoryItem::Rename(), CustomsSE::SendEffectUpdate(), StructureSE::SendEffectUpdate(), Character::SendSkillQueue(), StaticDataMgr::SetBPMatlType(), ModuleItem::SetOnline(), ShipItem::ShipGetModuleList(), Scan::ShipScanResult(), DroneSE::StateChange(), ShipItem::UnlinkWeapon(), and Agent::UpdateStandings().
|
inline |
Definition at line 702 of file PyRep.h.
References AddItem().
Referenced by DBResultToIntIntlistDict(), FleetService::GetAvailableFleets(), FleetService::GetFleetAdvert(), TargetManager::GetTargeters(), TargetManager::GetTargets(), Character::SkillQueueLoop(), and DroneSE::StateChange().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 660 of file PyRep.h.
References items.
Referenced by CorporationDB::AddVoteCase(), PyPackedRow::begin(), CharacterAppearance::Build(), operator=(), CalendarDB::SaveNewEvent(), StaticDataMgr::SetBPMatlType(), PyDumpVisitor::VisitList(), PyXMLGenerator::VisitList(), PyVisitor::VisitList(), PyDumpVisitor::VisitObjectEx(), PyVisitor::VisitObjectEx(), MarshalStream::VisitObjectEx(), and SetSQLDumper::VisitTuple().
void PyList::clear | ( | ) |
Definition at line 627 of file PyRep.cpp.
References end(), items, and PySafeDecRef.
Referenced by Client::_SendQueuedUpdates(), PyPackedRow::clear(), Colony::GetPins(), and operator=().
|
virtual |
|
inline |
Definition at line 664 of file PyRep.h.
References items.
Referenced by Client::_SendQueuedUpdates(), Client::FlushQueue(), Client::QueueDestinyUpdate(), Character::SkillQueueLoop(), PyDumpVisitor::VisitList(), and PyDumpVisitor::VisitObjectEx().
|
inline |
Definition at line 661 of file PyRep.h.
References items.
Referenced by CorporationDB::AddVoteCase(), CharacterAppearance::Build(), clear(), PyPackedRow::end(), operator=(), StaticDataMgr::SetBPMatlType(), PyDumpVisitor::VisitList(), PyXMLGenerator::VisitList(), PyVisitor::VisitList(), PyDumpVisitor::VisitObjectEx(), PyVisitor::VisitObjectEx(), MarshalStream::VisitObjectEx(), and SetSQLDumper::VisitTuple().
|
inline |
Returns Python object.
[in] | index | Index at which is the desired object. |
Definition at line 674 of file PyRep.h.
References items.
Referenced by CorporationDB::AddVoteCase(), Colony::CreateRoute(), PyPackedRow::GetField(), RowsetReader::iterator::GetRep(), TuplesetReader::iterator::GetRep(), CRowSet::GetRow(), and UnmarshalStream::GetStoredObject().
|
inline |
Stores Python object.
[in] | index | Index at which the object should be stored. |
[in] | object | Object to be stored. |
Definition at line 682 of file PyRep.h.
References items, PyIncRef, and PySafeDecRef.
Referenced by DBResultToIndexRowset(), DBResultToPackedRowList(), DBResultToPackedRowListTuple(), DBResultToRowset(), DBResultToTupleSet(), DBRowToRow(), LiveUpdateDB::GenerateUpdates(), TowerSE::GetDeployFlags(), SystemBubble::GetDroneState(), TowerSE::GetUsageFlagList(), UnmarshalStream::LoadList(), PyPackedRow::SetField(), SetItemString(), and UnmarshalStream::StoreObject().
|
inline |
Stores Python string.
[in] | index | Index at which the object should be stored. |
[in] | str | String to be stored. |
Definition at line 699 of file PyRep.h.
References SetItem().
Referenced by DBResultToIndexRowset(), DBResultToRowList(), DBResultToRowset(), DBResultToTupleSet(), DBRowToRow(), TowerSE::GetDeployFlags(), SystemBubble::GetDroneState(), and TowerSE::GetUsageFlagList().
|
inline |
Definition at line 663 of file PyRep.h.
References items.
Referenced by Colony::CreateRoute(), PIDataMgr::GetProgramResultInfo(), CRowSet::GetRowCount(), CIndexedRowSet::GetRowCount(), operator=(), Character::SkillQueueLoop(), PyDumpVisitor::VisitList(), PyXMLGenerator::VisitList(), and MarshalStream::VisitList().
|
virtual |
Visits object.
[in] | v | Visitor to be used for visiting. |
true | Visit successful. |
false | Error during visit. |
Implements PyRep.
Definition at line 622 of file PyRep.cpp.
References PyVisitor::VisitList().
storage_type PyList::items |
Definition at line 708 of file PyRep.h.
Referenced by AddItem(), begin(), clear(), DBResultToRowList(), DBResultToTupleSet(), empty(), end(), GetItem(), operator=(), SetItem(), and size().