Pol  Revision:cb584c9
Pol::Core::ObjectHash Class Reference

#include <objecthash.h>

Public Types

typedef std::unordered_set< u32ds
typedef std::pair< u32, UObjectRefhashpair
typedef std::map< u32, UObjectRefhs
typedef hs::const_iterator OH_const_iterator
typedef hs::iterator OH_iterator

Public Member Functions

 ObjectHash ()
 ~ObjectHash ()
hs::const_iterator begin () const
void CleanDeleted ()
void Clear ()
void ClearCharacterAccountReferences ()
void ClearDeleted ()
ds::const_iterator dirty_deleted_begin () const
ds::const_iterator dirty_deleted_end () const
hs::const_iterator end () const
UObjectFind (u32 serial)
u32 GetNextUnusedCharSerial ()
u32 GetNextUnusedItemSerial ()
bool Insert (UObject *obj)
void PrintContents (Clib::StreamWriter &sw) const
void Reap ()
void RegisterCleanDeletedSerial (u32 serial)
bool Remove (u32 serial)

Private Attributes

ds clean_deleted
ds dirty_deleted
hs hash
OH_iterator reap_iterator

Detailed Description

Definition at line 40 of file objecthash.h.

Member Typedef Documentation

typedef std::unordered_set<u32> Pol::Core::ObjectHash::ds

Definition at line 43 of file objecthash.h.

Definition at line 44 of file objecthash.h.

Definition at line 45 of file objecthash.h.

typedef hs::const_iterator Pol::Core::ObjectHash::OH_const_iterator

Definition at line 47 of file objecthash.h.

typedef hs::iterator Pol::Core::ObjectHash::OH_iterator

Definition at line 46 of file objecthash.h.

Constructor & Destructor Documentation

Pol::Core::ObjectHash::ObjectHash ( )

Definition at line 26 of file objecthash.cpp.

Pol::Core::ObjectHash::~ObjectHash ( )

Definition at line 28 of file objecthash.cpp.

Member Function Documentation

ObjectHash::hs::const_iterator Pol::Core::ObjectHash::begin ( ) const
void Pol::Core::ObjectHash::CleanDeleted ( )

Definition at line 265 of file objecthash.cpp.

References clean_deleted, and dirty_deleted.

Referenced by Pol::Core::write_dirty_data().

void Pol::Core::ObjectHash::Clear ( )
void Pol::Core::ObjectHash::ClearCharacterAccountReferences ( )
void Pol::Core::ObjectHash::ClearDeleted ( )

Definition at line 259 of file objecthash.cpp.

References clean_deleted, and dirty_deleted.

Referenced by Pol::Core::write_data().

ObjectHash::ds::const_iterator Pol::Core::ObjectHash::dirty_deleted_begin ( ) const

Definition at line 249 of file objecthash.cpp.

References dirty_deleted.

Referenced by Pol::Core::write_dirty_data().

ObjectHash::ds::const_iterator Pol::Core::ObjectHash::dirty_deleted_end ( ) const

Definition at line 254 of file objecthash.cpp.

References dirty_deleted.

Referenced by Pol::Core::write_dirty_data().

ObjectHash::hs::const_iterator Pol::Core::ObjectHash::end ( ) const
UObject * Pol::Core::ObjectHash::Find ( u32  serial)
u32 Pol::Core::ObjectHash::GetNextUnusedCharSerial ( )
u32 Pol::Core::ObjectHash::GetNextUnusedItemSerial ( )
void Pol::Core::ObjectHash::PrintContents ( Clib::StreamWriter sw) const

Definition at line 131 of file objecthash.cpp.

References hash.

Referenced by Pol::Core::display_leftover_objects().

void Pol::Core::ObjectHash::RegisterCleanDeletedSerial ( u32  serial)

Definition at line 271 of file objecthash.cpp.

References clean_deleted.

Referenced by Pol::Core::register_deleted_serials().

bool Pol::Core::ObjectHash::Remove ( u32  serial)

Definition at line 44 of file objecthash.cpp.

Member Data Documentation

ds Pol::Core::ObjectHash::clean_deleted
ds Pol::Core::ObjectHash::dirty_deleted
hs Pol::Core::ObjectHash::hash
OH_iterator Pol::Core::ObjectHash::reap_iterator

Definition at line 76 of file objecthash.h.

Referenced by Reap().

The documentation for this class was generated from the following files: