Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CBinarySerializerScriptImpl Class Reference

PutScriptVal implementation details. More...

#include <BinarySerializer.h>

Public Member Functions

 CBinarySerializerScriptImpl (ScriptInterface &scriptInterface, ISerializer &serializer)
 
void ScriptString (const char *name, JSString *string)
 
void HandleScriptVal (jsval val)
 
void SetSerializablePrototypes (std::map< JSObject *, std::wstring > &prototypes)
 

Private Types

typedef ProxyAllocator
< std::pair< JSObject *const,
u32 >
, Allocators::DynamicArena
ScriptBackrefsAlloc
 
typedef std::map< JSObject
*, u32, std::less< JSObject * >
, ScriptBackrefsAlloc
backrefs_t
 

Private Member Functions

u32 GetScriptBackrefTag (JSObject *obj)
 
bool IsSerializablePrototype (JSObject *prototype)
 
std::wstring GetPrototypeName (JSObject *prototype)
 

Private Attributes

ScriptInterfacem_ScriptInterface
 
ISerializerm_Serializer
 
Allocators::DynamicArena m_ScriptBackrefsArena
 
backrefs_t m_ScriptBackrefs
 
u32 m_ScriptBackrefsNext
 
AutoGCRooter m_Rooter
 
std::map< JSObject
*, std::wstring > 
m_SerializablePrototypes
 

Detailed Description

PutScriptVal implementation details.

(Split out from the main class because it's too big to be inlined.)

Definition at line 55 of file BinarySerializer.h.

Member Typedef Documentation

typedef std::map<JSObject*, u32, std::less<JSObject*>, ScriptBackrefsAlloc> CBinarySerializerScriptImpl::backrefs_t
private

Definition at line 69 of file BinarySerializer.h.

Definition at line 68 of file BinarySerializer.h.

Constructor & Destructor Documentation

CBinarySerializerScriptImpl::CBinarySerializerScriptImpl ( ScriptInterface scriptInterface,
ISerializer serializer 
)

Definition at line 58 of file BinarySerializer.cpp.

Member Function Documentation

std::wstring CBinarySerializerScriptImpl::GetPrototypeName ( JSObject *  prototype)
private

Definition at line 396 of file BinarySerializer.cpp.

u32 CBinarySerializerScriptImpl::GetScriptBackrefTag ( JSObject *  obj)
private

Definition at line 367 of file BinarySerializer.cpp.

void CBinarySerializerScriptImpl::HandleScriptVal ( jsval  val)

Definition at line 64 of file BinarySerializer.cpp.

bool CBinarySerializerScriptImpl::IsSerializablePrototype ( JSObject *  prototype)
private

Definition at line 391 of file BinarySerializer.cpp.

void CBinarySerializerScriptImpl::ScriptString ( const char *  name,
JSString *  string 
)

Definition at line 349 of file BinarySerializer.cpp.

void CBinarySerializerScriptImpl::SetSerializablePrototypes ( std::map< JSObject *, std::wstring > &  prototypes)

Definition at line 403 of file BinarySerializer.cpp.

Member Data Documentation

AutoGCRooter CBinarySerializerScriptImpl::m_Rooter
private

Definition at line 76 of file BinarySerializer.h.

backrefs_t CBinarySerializerScriptImpl::m_ScriptBackrefs
private

Definition at line 72 of file BinarySerializer.h.

Allocators::DynamicArena CBinarySerializerScriptImpl::m_ScriptBackrefsArena
private

Definition at line 71 of file BinarySerializer.h.

u32 CBinarySerializerScriptImpl::m_ScriptBackrefsNext
private

Definition at line 73 of file BinarySerializer.h.

ScriptInterface& CBinarySerializerScriptImpl::m_ScriptInterface
private

Definition at line 64 of file BinarySerializer.h.

std::map<JSObject*, std::wstring> CBinarySerializerScriptImpl::m_SerializablePrototypes
private

Definition at line 78 of file BinarySerializer.h.

ISerializer& CBinarySerializerScriptImpl::m_Serializer
private

Definition at line 65 of file BinarySerializer.h.


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