|
EvEmu
0.8.4
11 September 2021
|
Python's dictionary. More...
#include "PyRep.h"


Classes | |
| class | _comp |
| class | _hash |
Public Types | |
| typedef std::unordered_map < PyRep *, PyRep *, _hash, _comp > | storage_type |
| typedef storage_type::iterator | iterator |
| typedef storage_type::const_iterator | const_iterator |
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... | |
Public Member Functions | |
| PyDict () | |
| PyDict (const PyDict &oth) | |
| PyDict (PyDict &&oth)=delete | |
| PyDict & | operator= (const PyDict &oth) |
| PyDict & | operator= (PyDict &&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 (PyRep *key) const |
| Obtains a database entry based on given key object. More... | |
| PyRep * | GetItemString (const char *key) const |
| Obtains database entry based on given key string. More... | |
| void | SetItem (PyRep *key, PyRep *value) |
| SetItem adds or sets a database entry. More... | |
| void | SetItem (const char *key, PyRep *value) |
| void | SetItem (const char *key, const char *value) |
| void | SetItemString (const char *key, PyRep *value) |
| SetItemString adds or sets a database entry. More... | |
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 |
| 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... | |
Public Member Functions inherited from RefObject | |
| 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 | ~PyDict () |
Protected Member Functions inherited from PyRep | |
| PyRep (PyType t) | |
| PyRep (const PyRep &oth) | |
| PyRep (PyRep &&oth)=delete | |
| PyRep & | operator= (const PyRep &oth)=default |
| PyRep & | operator= (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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from PyRep | |
| static std::string | StringContent (PyRep *pRep) |
| static int64 | IntegerValue (PyRep *pRep) |
| static uint32 | IntegerValueU32 (PyRep *pRep) |
Protected Attributes inherited from PyRep | |
| const PyType | mType |
Protected Attributes inherited from RefObject | |
| size_t | mRefCount |
| Reference count of instance. More... | |
| bool | mDeleted |
Python's dictionary.
Dictionary; completely mutable associative container.
| typedef storage_type::const_iterator PyDict::const_iterator |
| typedef storage_type::iterator PyDict::iterator |
| typedef std::unordered_map<PyRep*, PyRep*, _hash, _comp> PyDict::storage_type |
| PyDict::PyDict | ( | ) |
Definition at line 657 of file PyRep.cpp.
Referenced by Clone().

| PyDict::PyDict | ( | const PyDict & | oth | ) |
Definition at line 658 of file PyRep.cpp.
|
delete |
|
protectedvirtual |
|
inline |
Definition at line 766 of file PyRep.h.
References items.
Referenced by PyCachedCall::Decode(), PyObjectEx_Type1::FindKeyword(), PyObjectEx_Type2::FindKeyword(), operator=(), PyCallArgs::PyCallArgs(), Scan::RequestScans(), PyDumpVisitor::VisitDict(), PyXMLGenerator::VisitDict(), PyVisitor::VisitDict(), MarshalStream::VisitDict(), PyDumpVisitor::VisitObjectEx(), PyVisitor::VisitObjectEx(), and MarshalStream::VisitObjectEx().

| void PyDict::clear | ( | ) |
Definition at line 680 of file PyRep.cpp.
References items, PyDecRef, and PySafeDecRef.
Referenced by Colony::GetPins(), and operator=().

|
virtual |
Clones object.
Implements PyRep.
Definition at line 670 of file PyRep.cpp.
References PyDict().
Referenced by PyPacket::Clone(), and PyCallStream::Clone().


|
inline |
Definition at line 770 of file PyRep.h.
References items.
Referenced by Scan::RequestScans(), PyDumpVisitor::VisitDict(), and PyDumpVisitor::VisitObjectEx().

|
inline |
Definition at line 767 of file PyRep.h.
References items.
Referenced by PyCachedCall::Decode(), PyObjectEx_Type1::FindKeyword(), PyObjectEx_Type2::FindKeyword(), operator=(), PyCallArgs::PyCallArgs(), Scan::RequestScans(), PyDumpVisitor::VisitDict(), PyXMLGenerator::VisitDict(), PyVisitor::VisitDict(), MarshalStream::VisitDict(), PyDumpVisitor::VisitObjectEx(), PyVisitor::VisitObjectEx(), and MarshalStream::VisitObjectEx().

Obtains a database entry based on given key object.
| [in] | key | is the key object of the database entry. |
Definition at line 691 of file PyRep.cpp.
References items.
Referenced by GetItemString(), CIndexedRowSet::GetRow(), and CFilterRowSet::GetRowset().

| PyRep * PyDict::GetItemString | ( | const char * | key | ) | const |
Obtains database entry based on given key string.
| [in] | key | is the key string of the database entry. |
Definition at line 702 of file PyRep.cpp.
References GetItem(), and PyDecRef.
Referenced by UserError::_GetDictKeywords(), ClientSession::_GetValueTuple(), CorporationDB::AddVoteCase(), CharacterAppearance::Build(), and CharacterPortrait::Build().


SetItem adds or sets a database entry.
PyDict::SetItem handles the adding and setting of object in mapped and non mapped python dictionary's.
| [in] | key | contains the key object which the value needs to be filed under. |
| [in] | value | is the object that needs to be filed under key. |
Definition at line 713 of file PyRep.cpp.
References PyRep::hash(), items, PyDecRef, PySafeDecRef, and PyStatic.
Referenced by TradeBound::CancelTrade(), DBResultToIndexRowset(), DBResultToIntIntDict(), DBResultToIntRowDict(), DBResultToPackedRowDict(), ClientSession::EncodeChanges(), ClientSession::EncodeInitialState(), FleetService::GetAvailableFleets(), ShipItem::GetChargeState(), Character::GetCharInfo(), Colony::GetColony(), MapDB::GetDynamicData(), PlanetSE::GetExtractorsForPlanet(), FactionWarMgrDB::GetFacWarSystems(), MailDB::GetJoinedMailingLists(), MailDB::GetLabels(), ShipItem::GetLinkedWeapons(), Colony::GetLinks(), MailDB::GetMailingListMembers(), Colony::GetPins(), PlanetSE::GetPlanetInfo(), PlanetSE::GetPlanetResourceInfo(), Character::GetRAMSkills(), Colony::GetRoutes(), ShipItem::GetShipInfo(), ShipItem::GetShipState(), CorporationDB::GetTitles(), FleetService::GetWings(), UnmarshalStream::LoadDict(), UnmarshalStream::LoadObjectEx(), MailDB::MailingListGetSettings(), WreckSE::MakeSlimItem(), CIndexedRowSet::NewRow(), CFilterRowSet::NewRowset(), operator=(), ServiceDB::PrimeOwners(), Scan::ProbeScanResult(), SearchDB::Query(), StaticDataMgr::SetBPMatlType(), SetItemString(), Scan::SystemScanStarted(), and ShipItem::UnlinkWeapon().


|
inline |
Definition at line 800 of file PyRep.h.
References SetItem().
Referenced by SetItem().


|
inline |
Definition at line 801 of file PyRep.h.
References SetItem().
Referenced by SetItem().


|
inline |
SetItemString adds or sets a database entry.
PyDict::SetItemString handles the adding and setting of object in mapped and non mapped python dictionary's.
| [in] | key | contains the key string which the value needs to be filed under. |
| [in] | value | is the object that needs to be filed under key. |
Definition at line 812 of file PyRep.h.
References SetItem().
Referenced by GPSTransportClosed::_CreateKeywords(), CRowSet::_CreateKeywords(), CIndexedRowSet::_CreateKeywords(), CFilterRowSet::_CreateKeywords(), UserError::_CreateKeywords(), ClientSession::_Set(), GPSTransportClosed::AddKeyword(), UserError::AddKeyword(), FleetService::AddMember(), SystemEntity::ApplyDamage(), PyServiceMgr::BindObject(), ClientSession::ClientSession(), DBResultToIndexRowset(), DBResultToRowset(), DBRowToKeyVal(), DBRowToRow(), MiningLaser::Depleted(), SovereigntyDataMgr::GetAllianceSystems(), BookmarkDB::GetBookmarks(), BookmarkDB::GetBookmarksInFolder(), SystemManager::GetCurrentEntities(), TowerSE::GetDeployFlags(), SystemBubble::GetDroneState(), CalendarDB::GetEventDetails(), CalendarDB::GetEventList(), FactionWarMgrDB::GetFacWarSystems(), BookmarkDB::GetFolders(), Agent::GetInfoServiceDetails(), MailDB::GetJoinedMailingLists(), Agent::GetLocationWrap(), MarketDB::GetMarketGroups(), AgentBound::GetMissionObjectiveInfo(), AgentBound::GetMissionObjectives(), CharacterDB::GetRespecInfo(), CalendarDB::GetResponsesForCharacter(), CalendarDB::GetResponsesToEvent(), CustomsSE::GetSettingsInfo(), SovereigntyDataMgr::GetSystemSovereignty(), CorporationDB::GetTitles(), TowerSE::GetUsageFlagList(), AccountDB::GetWalletDivisionsInfo(), PyServiceMgr::Initalize(), ObjCacheService::InsertCacheHints(), StationDataMgr::LoadStationPyData(), MailDB::MailingListGetSettings(), CustomsSE::MakeSlimItem(), StructureSE::MakeSlimItem(), WreckSE::MakeSlimItem(), SBUSE::MarkContested(), ServiceDB::ProcessIntChange(), ServiceDB::ProcessLongChange(), ServiceDB::ProcessRealChange(), ServiceDB::ProcessStringChange(), Prospector::SendFailure(), ProbeSE::SendNewProbe(), Client::SendNotification(), ProbeSE::SendSlimChange(), CustomsSE::SendSlimUpdate(), StructureSE::SendSlimUpdate(), StaticDataMgr::SetBPMatlType(), TCUSE::SetOnline(), ActiveModule::ShowEffect(), Colony::TransferCommodities(), DestinyManager::UpdateNewShip(), DestinyManager::UpdateOldShip(), and FleetService::UpdateOptions().

|
inline |
Definition at line 769 of file PyRep.h.
References items.
Referenced by CFilterRowSet::GetKeyCount(), Scan::RequestScans(), PyDumpVisitor::VisitDict(), and MarshalStream::VisitDict().

|
virtual |
Visits object.
| [in] | v | Visitor to be used for visiting. |
| true | Visit successful. |
| false | Error during visit. |
Implements PyRep.
Definition at line 675 of file PyRep.cpp.
References PyVisitor::VisitDict().
Referenced by PyPacket::Dump(), and PyCallStream::Dump().


| storage_type PyDict::items |