|
Pol
Rev 533
|
#include <bobject.h>
Inheritance diagram for ObjArray:
Collaboration diagram for ObjArray:Public Types | |
| typedef Cont::const_iterator | const_iterator |
| typedef NameCont::const_iterator | const_name_iterator |
| typedef vector< BObjectRef > | Cont |
| typedef Cont::iterator | iterator |
| typedef NameCont::iterator | name_iterator |
| typedef vector< std::string > | NameCont |
Public Member Functions | |
| ObjArray () | |
| ObjArray (const ObjArray &i) | |
| void | addElement (BObjectImp *imp) |
| virtual BObjectImp * | array_assign (BObjectImp *idx, BObjectImp *target) |
| virtual BObjectImp * | call_method (const char *methodname, Executor &ex) |
| virtual BObjectImp * | call_method_id (const int id, Executor &ex, bool forcebuiltin=false) |
| virtual long | contains (const BObjectImp &imp) const |
| virtual BObjectImp * | copy () const |
| virtual ContIterator * | createIterator (BObject *pIterVal) |
| virtual BObjectRef | get_member (const char *membername) |
| virtual std::string | getStringRep () const |
| const BObjectImp * | imp_at (unsigned index) const |
| virtual bool | isEqual (const BObjectImp &objimp) const |
| virtual BObjectRef | operDotPlus (const char *name) |
| virtual void | operInsertInto (BObject &obj, const BObjectImp &objimp) |
| virtual BObjectRef | OperMultiSubscript (stack< BObjectRef > &indices) |
| virtual BObjectRef | OperSubscript (const BObject &obj) |
| virtual void | packonto (std::ostream &os) const |
| virtual void | printOn (std::ostream &os) const |
| virtual BObjectImp * | selfPlusObj (const BObjectImp &objimp) const |
| virtual BObjectImp * | selfPlusObj (const BLong &objimp) const |
| virtual BObjectImp * | selfPlusObj (const Double &objimp) const |
| virtual BObjectImp * | selfPlusObj (const String &objimp) const |
| virtual BObjectImp * | selfPlusObj (const ObjArray &objimp) const |
| virtual void | selfPlusObj (BObjectImp &objimp, BObject &obj) |
| virtual void | selfPlusObj (BLong &objimp, BObject &obj) |
| virtual void | selfPlusObj (Double &objimp, BObject &obj) |
| virtual void | selfPlusObj (String &objimp, BObject &obj) |
| virtual void | selfPlusObj (ObjArray &objimp, BObject &obj) |
| virtual BObjectImp * | selfPlusObjImp (const BObjectImp &other) const |
| virtual void | selfPlusObjImp (BObjectImp &objimp, BObject &obj) |
| virtual BObjectRef | set_member (const char *membername, BObjectImp *value) |
| virtual size_t | sizeEstimate () const |
Static Public Member Functions | |
| static BObjectImp * | unpack (std::istream &is) |
Public Attributes | |
| NameCont | name_arr |
| Cont | ref_arr |
Protected Member Functions | |
| ObjArray (BObjectType type) | |
| void | deepcopy () |
| typedef Cont::const_iterator ObjArray::const_iterator |
| typedef NameCont::const_iterator ObjArray::const_name_iterator |
| typedef vector<BObjectRef> ObjArray::Cont |
| typedef Cont::iterator ObjArray::iterator |
| typedef NameCont::iterator ObjArray::name_iterator |
| typedef vector<std::string> ObjArray::NameCont |
Definition at line 937 of file object.cpp.
Referenced by copy(), OperMultiSubscript(), selfPlusObj(), and sizeEstimate().
Here is the caller graph for this function:| ObjArray::ObjArray | ( | const ObjArray & | i | ) |
Definition at line 945 of file object.cpp.
References deepcopy().
Here is the call graph for this function:| ObjArray::ObjArray | ( | BObjectType | type | ) | [explicit, protected] |
Definition at line 941 of file object.cpp.
| void ObjArray::addElement | ( | BObjectImp * | imp | ) |
Definition at line 1334 of file object.cpp.
References ref_arr.
Referenced by add_script(), append_objtypes(), DebugContextObjImp::call_method(), BStruct::call_method_id(), BDictionary::call_method_id(), BXmlAttribute::call_method_id(), CallPropertyListMethod_id(), Character::CheckPushthrough(), ClientCreateChar(), ClientCreateChar70160(), ClientCreateCharKR(), UHouse::component_list(), UBoat::component_list(), convertUCtoArray(), UContainer::enumerate_contents(), BIntHash::get_member(), EPartyRefObjImp::get_member_id(), EGuildRefObjImp::get_member_id(), Character::GetAggressorTo(), Client::getclientinfo(), GetCommandsInPackage(), GetIoStatsObj(), Character::GetLawFullyDamaged(), GetListenPoints(), GetPackageList(), GetPktStatusObj(), Character::GetReportables(), GetScriptProfiles(), handle_unicode_prompt(), UHouse::items_list(), UBoat::items_list(), CustomHouseDesign::list_parts(), StoredConfigElem::listprops(), DataFileContents::methodKeys(), UOExecutorModule::mf_ApplyConstraint(), BasicExecutorModule::mf_CAscZ(), UOExecutorModule::mf_EnumerateOnlineCharacters(), UOExecutorModule::mf_FindPath(), UOExecutorModule::mf_FindSubstance(), ConfigFileExecutorModule::mf_GetConfigIntKeys(), ConfigFileExecutorModule::mf_GetConfigStringArray(), ConfigFileExecutorModule::mf_GetConfigStringKeys(), UOExecutorModule::mf_GetCoordsInLine(), UOExecutorModule::mf_GetGlobalPropertyNames(), UOExecutorModule::mf_GetObjPropertyNames(), UOExecutorModule::mf_GetStandingLayers(), UOExecutorModule::mf_ListAccounts(), DataFileExecutorModule::mf_ListDataFiles(), FileAccessExecutorModule::mf_ListDirectory(), UOExecutorModule::mf_ListEquippedItems(), UOExecutorModule::mf_ListGhostsNearLocation(), GuildExecutorModule::mf_ListGuilds(), UOExecutorModule::mf_ListHostiles(), UOExecutorModule::mf_ListItemsAtLocation(), UOExecutorModule::mf_ListItemsNearLocation(), UOExecutorModule::mf_ListItemsNearLocationOfType(), UOExecutorModule::mf_ListItemsNearLocationWithFlag(), UOExecutorModule::mf_ListMobilesInLineOfSight(), UOExecutorModule::mf_ListMobilesNearLocation(), UOExecutorModule::mf_ListMobilesNearLocationEx(), UOExecutorModule::mf_ListMultisInBox(), UOExecutorModule::mf_ListObjectsInBox(), UOExecutorModule::mf_ListStaticsAtLocation(), UOExecutorModule::mf_ListStaticsInBox(), UOExecutorModule::mf_ListStaticsNearLocation(), PolSystemExecutorModule::mf_Packages(), FileAccessExecutorModule::mf_ReadFile(), BasicExecutorModule::mf_SplitWords(), UHouse::mobiles_list(), UBoat::mobiles_list(), ArmorDesc::PopulateStruct(), ItemDesc::PopulateStruct(), Spellbook::script_method_id(), Map::script_method_id(), sellhandler(), and UnicodeSpeechHandler().
| BObjectImp * ObjArray::array_assign | ( | BObjectImp * | idx, |
| BObjectImp * | target | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1052 of file object.cpp.
References UninitObject::create(), ref_ptr< T >::get(), BObjectImp::isa(), BObjectImp::OTLong, ref_arr, BObjectRef::set(), and BLong::value().
Here is the call graph for this function:| BObjectImp * ObjArray::call_method | ( | const char * | methodname, |
| Executor & | ex | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1571 of file object.cpp.
References call_method_id(), getKnownObjMethod(), and ObjMethod::id.
Here is the call graph for this function:| BObjectImp * ObjArray::call_method_id | ( | const int | id, |
| Executor & | ex, | ||
| bool | forcebuiltin = false |
||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1402 of file object.cpp.
References BObjectImp::copy(), ref_ptr< T >::get(), Executor::getParam(), Executor::getParamImp(), MTH_APPEND, MTH_ERASE, MTH_EXISTS, MTH_INSERT, MTH_RANDOMENTRY, MTH_REVERSE, MTH_SHRINK, MTH_SIZE, MTH_SORT, name_arr, Executor::numParams(), random_int(), ref_arr, and BObjectRef::set().
Referenced by call_method().
Here is the call graph for this function:
Here is the caller graph for this function:| long ObjArray::contains | ( | const BObjectImp & | imp | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 1364 of file object.cpp.
References BObjectImp::isEqual(), ref_arr, and scripts_thread_script.
Referenced by StoredConfigElem::listprops().
Here is the call graph for this function:
Here is the caller graph for this function:| BObjectImp * ObjArray::copy | ( | void | ) | const [virtual] |
Implements BObjectImp.
Definition at line 972 of file object.cpp.
References ObjArray().
Referenced by handle_unicode_prompt(), OperMultiSubscript(), and OperSubscript().
Here is the call graph for this function:
Here is the caller graph for this function:| ContIterator * ObjArray::createIterator | ( | BObject * | pIterVal | ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1022 of file executor.cpp.
| void ObjArray::deepcopy | ( | ) | [protected] |
Definition at line 953 of file object.cpp.
References BObjectImp::copy(), and ref_arr.
Referenced by ObjArray().
Here is the call graph for this function:
Here is the caller graph for this function:| BObjectRef ObjArray::get_member | ( | const char * | membername | ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1285 of file object.cpp.
References UninitObject::create(), name_arr, and ref_arr.
Here is the call graph for this function:| string ObjArray::getStringRep | ( | ) | const [virtual] |
Implements BObjectImp.
Definition at line 1339 of file object.cpp.
References BObjectImp::getStringRep(), OSTRINGSTREAM, OSTRINGSTREAM_STR, and ref_arr.
Referenced by String::selfMinusObj(), and String::selfPlusObj().
Here is the call graph for this function:
Here is the caller graph for this function:| const BObjectImp * ObjArray::imp_at | ( | unsigned | index | ) | const |
Definition at line 1041 of file object.cpp.
References ref_ptr< T >::get(), and ref_arr.
Referenced by UOExecutorModule::mf_SendOpenBook().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ObjArray::isEqual | ( | const BObjectImp & | objimp | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 1003 of file object.cpp.
References ref_ptr< T >::get(), BObjectImp::isa(), BObjectImp::isEqual(), BObjectImp::OTArray, and ref_arr.
Here is the call graph for this function:| BObjectRef ObjArray::operDotPlus | ( | const char * | name | ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1319 of file object.cpp.
References UninitObject::create(), name_arr, and ref_arr.
Here is the call graph for this function:| void ObjArray::operInsertInto | ( | BObject & | obj, |
| const BObjectImp & | objimp | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1082 of file object.cpp.
References BObjectImp::copy(), and ref_arr.
Here is the call graph for this function:| BObjectRef ObjArray::OperMultiSubscript | ( | stack< BObjectRef > & | indices | ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1185 of file object.cpp.
References copy(), BObject::impref(), BObjectImp::isa(), ObjArray(), BObjectImp::OTLong, ref_arr, and BLong::value().
Here is the call graph for this function:| BObjectRef ObjArray::OperSubscript | ( | const BObject & | obj | ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1253 of file object.cpp.
References copy(), UninitObject::create(), ref_ptr< T >::get(), BObject::impref(), BObjectImp::isa(), BObjectImp::OTLong, BObjectImp::OTString, ref_arr, BObjectRef::set(), and BLong::value().
Here is the call graph for this function:| void ObjArray::packonto | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 1580 of file object.cpp.
References BObjectImp::packonto(), and ref_arr.
Here is the call graph for this function:| void ObjArray::printOn | ( | std::ostream & | os | ) | const [virtual] |
| BObjectImp * ObjArray::selfPlusObj | ( | const BObjectImp & | objimp | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 1087 of file object.cpp.
References BObjectImp::copy(), ObjArray(), and ref_arr.
Here is the call graph for this function:| BObjectImp * ObjArray::selfPlusObj | ( | const BLong & | objimp | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 1093 of file object.cpp.
References BLong::copy(), ObjArray(), and ref_arr.
Here is the call graph for this function:| BObjectImp * ObjArray::selfPlusObj | ( | const Double & | objimp | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 1099 of file object.cpp.
References Double::copy(), ObjArray(), and ref_arr.
Here is the call graph for this function:| BObjectImp * ObjArray::selfPlusObj | ( | const String & | objimp | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 1105 of file object.cpp.
References String::copy(), ObjArray(), and ref_arr.
Here is the call graph for this function:| BObjectImp * ObjArray::selfPlusObj | ( | const ObjArray & | objimp | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 1112 of file object.cpp.
References ObjArray(), and ref_arr.
Here is the call graph for this function:| void ObjArray::selfPlusObj | ( | BObjectImp & | objimp, |
| BObject & | obj | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1146 of file object.cpp.
References BObjectImp::copy(), and ref_arr.
Here is the call graph for this function:| void ObjArray::selfPlusObj | ( | BLong & | objimp, |
| BObject & | obj | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1150 of file object.cpp.
References BLong::copy(), and ref_arr.
Here is the call graph for this function:| void ObjArray::selfPlusObj | ( | Double & | objimp, |
| BObject & | obj | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1154 of file object.cpp.
References Double::copy(), and ref_arr.
Here is the call graph for this function:| void ObjArray::selfPlusObj | ( | String & | objimp, |
| BObject & | obj | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1158 of file object.cpp.
References String::copy(), and ref_arr.
Here is the call graph for this function:| void ObjArray::selfPlusObj | ( | ObjArray & | objimp, |
| BObject & | obj | ||
| ) | [virtual] |
| BObjectImp * ObjArray::selfPlusObjImp | ( | const BObjectImp & | other | ) | const [virtual] |
Reimplemented from BObjectImp.
Definition at line 1138 of file object.cpp.
References BObjectImp::selfPlusObj().
Here is the call graph for this function:| void ObjArray::selfPlusObjImp | ( | BObjectImp & | objimp, |
| BObject & | obj | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1142 of file object.cpp.
References BObjectImp::selfPlusObj().
Here is the call graph for this function:| BObjectRef ObjArray::set_member | ( | const char * | membername, |
| BObjectImp * | value | ||
| ) | [virtual] |
Reimplemented from BObjectImp.
Definition at line 1302 of file object.cpp.
References UninitObject::create(), name_arr, and ref_arr.
Here is the call graph for this function:| size_t ObjArray::sizeEstimate | ( | ) | const [virtual] |
Implements BObjectImp.
Definition at line 978 of file object.cpp.
References name_arr, ObjArray(), and ref_arr.
Here is the call graph for this function:| BObjectImp * ObjArray::unpack | ( | std::istream & | is | ) | [static] |
Reimplemented from BObjectImp.
Definition at line 1597 of file object.cpp.
References BObjectImp::isa(), BObjectImp::OTUninit, and ref_arr.
Here is the call graph for this function:Definition at line 491 of file bobject.h.
Referenced by call_method_id(), get_member(), operDotPlus(), set_member(), and sizeEstimate().
Definition at line 492 of file bobject.h.
Referenced by addElement(), array_assign(), BPacket::call_method_id(), call_method_id(), DebugContext::cmd_call(), contains(), convertArrayToUC(), CreateItemDescriptor(), deepcopy(), get_member(), GetCommandsInPackage(), getStringRep(), handle_unicode_prompt(), imp_at(), Executor::ins_stepforeach(), UOExecutorModule::internal_SendCompressedGumpMenu(), UOExecutorModule::internal_SendUnCompressedGumpMenu(), isEqual(), BasicExecutorModule::len(), ConfigFileExecutorModule::mf_AppendConfigFileElem(), FileAccessExecutorModule::mf_AppendToFile(), UOExecutorModule::mf_ApplyConstraint(), UnicodeExecutorModule::mf_BroadcastUC(), BasicExecutorModule::mf_CChrZ(), PolSystemExecutorModule::mf_ListTextCommands(), MathExecutorModule::mf_Max(), MathExecutorModule::mf_Min(), ClilocExecutorModule::mf_PrintTextAboveCL(), ClilocExecutorModule::mf_PrintTextAbovePrivateCL(), UnicodeExecutorModule::mf_PrintTextAboveUC(), UnicodeExecutorModule::mf_PrivateTextAboveUC(), UnicodeExecutorModule::mf_RequestInputUC(), UOExecutorModule::mf_SendCharProfile(), PartyExecutorModule::mf_SendPartyMsg(), PartyExecutorModule::mf_SendPrivatePartyMsg(), ClilocExecutorModule::mf_SendSysMessageCL(), UnicodeExecutorModule::mf_SendSysMessageUC(), FileAccessExecutorModule::mf_WriteFile(), operDotPlus(), operInsertInto(), OperMultiSubscript(), OperSubscript(), packonto(), ArmorDesc::PopulateStruct(), printOn(), NPCExecutorModule::SayUC(), selfPlusObj(), Party::send_member_msg_private(), Party::send_member_msg_public(), set_member(), sizeEstimate(), ArrayIterator::step(), and unpack().