OregonCore  revision be9e804-git
Your Favourite TBC server
PackedGuid Class Reference

#include <ObjectGuid.h>

Public Member Functions

 PackedGuid ()
 
 PackedGuid (uint64 const &guid)
 
 PackedGuid (ObjectGuid const &guid)
 
void Set (uint64 const &guid)
 
void Set (ObjectGuid const &guid)
 
size_t size () const
 

Private Attributes

ByteBuffer m_packedGuid
 

Friends

ByteBufferoperator<< (ByteBuffer &buf, PackedGuid const &guid)
 

Detailed Description

Definition at line 283 of file ObjectGuid.h.

Constructor & Destructor Documentation

PackedGuid::PackedGuid ( )
inlineexplicit

Definition at line 288 of file ObjectGuid.h.

289  {
291  }
void appendPackGUID(uint64 guid)
Definition: ByteBuffer.h:402
ByteBuffer m_packedGuid
Definition: ObjectGuid.h:320
PackedGuid::PackedGuid ( uint64 const &  guid)
inlineexplicit

Definition at line 292 of file ObjectGuid.h.

293  {
295  }
void appendPackGUID(uint64 guid)
Definition: ByteBuffer.h:402
ByteBuffer m_packedGuid
Definition: ObjectGuid.h:320
PackedGuid::PackedGuid ( ObjectGuid const &  guid)
inlineexplicit

Definition at line 296 of file ObjectGuid.h.

References ObjectGuid::GetRawValue().

297  {
298  m_packedGuid.appendPackGUID(guid.GetRawValue());
299  }
void appendPackGUID(uint64 guid)
Definition: ByteBuffer.h:402
ByteBuffer m_packedGuid
Definition: ObjectGuid.h:320

Member Function Documentation

void PackedGuid::Set ( uint64 const &  guid)
inline

Definition at line 302 of file ObjectGuid.h.

Referenced by Object::_Create().

303  {
304  m_packedGuid.wpos(0);
306  }
size_t wpos() const
Definition: ByteBuffer.h:264
void appendPackGUID(uint64 guid)
Definition: ByteBuffer.h:402
ByteBuffer m_packedGuid
Definition: ObjectGuid.h:320
void PackedGuid::Set ( ObjectGuid const &  guid)
inline

Definition at line 307 of file ObjectGuid.h.

References ObjectGuid::GetRawValue().

308  {
309  m_packedGuid.wpos(0);
310  m_packedGuid.appendPackGUID(guid.GetRawValue());
311  }
size_t wpos() const
Definition: ByteBuffer.h:264
void appendPackGUID(uint64 guid)
Definition: ByteBuffer.h:402
ByteBuffer m_packedGuid
Definition: ObjectGuid.h:320
size_t PackedGuid::size ( ) const
inline

Friends And Related Function Documentation

ByteBuffer& operator<< ( ByteBuffer buf,
PackedGuid const &  guid 
)
friend

Definition at line 70 of file ObjectGuid.cpp.

71 {
72  buf.append(guid.m_packedGuid);
73  return buf;
74 }
void append(const std::string &str)
Definition: ByteBuffer.h:358

Member Data Documentation

ByteBuffer PackedGuid::m_packedGuid
private

Definition at line 320 of file ObjectGuid.h.

Referenced by operator<<().


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