WSF
WsfPProxyStructType Class Reference

#include <WsfPProxyStructType.hpp>

Inheritance diagram for WsfPProxyStructType:
Collaboration diagram for WsfPProxyStructType:

Classes

struct  AttrData
class  Builder

Public Types

using NameToIndexMap = std::map<std::string, int>
 Map an attribute name to the index.

Public Member Functions

 ~WsfPProxyStructType () override
bool IsUnset (void *aValuePtr) const override
void SetUnset (void *aValuePtr) const override
bool IsInherited (void *aValuePtr) const override
void SetInherited (void *aValuePtr, bool aIsInherited) const override
bool IsOfBasicType (const std::string &aTypeName) const override
WsfParseStructGetParseStruct ()
void ClearUnset (void *aValuePtr) const override
WsfPProxyTypeGetContainedType (size_t aIndex) const override
WsfPProxyValue GetAtIndex (void *aDataPtr, size_t aIndex) const override
size_t GetAttrCount (void *aPtr) const override
void Initialize ()
void Construct (void *aValuePtr) const override
void Destroy (void *aValuePtr) const override
size_t MemoryUsage (void *aDataPtr) const override
void ConstructAttr (const AttrData &aAttr, void *aValuePtr) const
void DestroyInstance (WsfPProxyStructValue aInstance) const
void CopyInstance (WsfPProxyStructValue &aDest, WsfPProxyStructValue &aSrc, int copyFlags) const
WsfPProxyStructValue GetInstance (WsfPProxyStructHeader *aHeader) const
void Copy (void *aDest, void *aSrc, int copyFlags) const override
WsfPProxyValue GetMemberValue (void *aPtr, size_t aIndex) const
WsfPProxyValue GetAttr (void *aPtr, const std::string &aName) const override
bool SwapAttr (void *aPtr, const WsfPProxyKey &aKey, WsfPProxyValue &aValue) const override
size_t GetMemberCount () const
std::string GetNameAtIndex (size_t aIndex) const override
size_t GetMemberIndex (const std::string &aName) const override
bool IsTypeOf (const WsfPProxyType *aOtherType) const override
WsfPProxyStructValue GetDefaultValue () const
virtual bool IsInitialized () const
Public Member Functions inherited from WsfPProxyType
 WsfPProxyType (WsfProxy::ValueKind aKind)
virtual ~WsfPProxyType ()
const std::string & GetTypeName () const
size_t GetDataSize () const
bool IsBasicType () const
bool IsStruct () const
bool IsList () const
bool IsObjectMap () const
virtual WsfPProxyHash Hash (void *aDataPtr) const

Public Attributes

ptrdiff_t mStructSize
 Size in bytes of the actual structure.
WsfPProxyStructTypemBasePtr
 Pointer to base struct.
std::vector< AttrDatamLocalAttributes
 Attributes for this struct, not including base classes.
std::vector< AttrDatamAttrData
std::vector< size_t > mDynamicAttributes
 Indices of attributes that are not in the real struct.
NameToIndexMap mNameToIndex
std::vector< std::string > mAllNames
WsfPProxyStructValue mDefaultStruct
bool mInitialized
bool mEmbedded
WsfParseStructmParseStructPtr
Public Attributes inherited from WsfPProxyType
int mTypeFlags
int mTypeKind
int mTypeStoredKind
size_t mDataSize
std::string mTypeName

Member Typedef Documentation

◆ NameToIndexMap

using WsfPProxyStructType::NameToIndexMap = std::map<std::string, int>

Map an attribute name to the index.

Constructor & Destructor Documentation

◆ ~WsfPProxyStructType()

WsfPProxyStructType::~WsfPProxyStructType ( )
override

References mDefaultStruct.

Member Function Documentation

◆ ClearUnset()

void WsfPProxyStructType::ClearUnset ( void * aValuePtr) const
overridevirtual

Reimplemented from WsfPProxyType.

References WsfPProxyStructHeader::mStructFlags.

◆ Construct()

void WsfPProxyStructType::Construct ( void * aValuePtr) const
overridevirtual

◆ ConstructAttr()

void WsfPProxyStructType::ConstructAttr ( const AttrData & aAttr,
void * aValuePtr ) const

◆ Copy()

◆ CopyInstance()

◆ Destroy()

void WsfPProxyStructType::Destroy ( void * aValuePtr) const
overridevirtual

Implements WsfPProxyType.

References DestroyInstance(), and WsfPProxyStructHeader::mStructDataPtr.

Referenced by Copy().

◆ DestroyInstance()

◆ GetAtIndex()

WsfPProxyValue WsfPProxyStructType::GetAtIndex ( void * aDataPtr,
size_t aIndex ) const
inlineoverridevirtual

Reimplemented from WsfPProxyType.

References GetMemberValue().

Referenced by WsfPProxyVisitor::Visit().

◆ GetAttr()

◆ GetAttrCount()

size_t WsfPProxyStructType::GetAttrCount ( void * aPtr) const
overridevirtual

Reimplemented from WsfPProxyType.

References mAttrData.

◆ GetContainedType()

WsfPProxyType * WsfPProxyStructType::GetContainedType ( size_t aIndex) const
inlineoverridevirtual

Reimplemented from WsfPProxyType.

References mAttrData, and WsfPProxyType::WsfPProxyType().

◆ GetDefaultValue()

WsfPProxyStructValue WsfPProxyStructType::GetDefaultValue ( ) const
inline

◆ GetInstance()

WsfPProxyStructValue WsfPProxyStructType::GetInstance ( WsfPProxyStructHeader * aHeader) const
inline

Referenced by Copy(), and MemoryUsage().

◆ GetMemberCount()

size_t WsfPProxyStructType::GetMemberCount ( ) const
inline

◆ GetMemberIndex()

size_t WsfPProxyStructType::GetMemberIndex ( const std::string & aName) const
inlineoverridevirtual

◆ GetMemberValue()

◆ GetNameAtIndex()

std::string WsfPProxyStructType::GetNameAtIndex ( size_t aIndex) const
overridevirtual

Reimplemented from WsfPProxyType.

References mAllNames.

◆ GetParseStruct()

WsfParseStruct * WsfPProxyStructType::GetParseStruct ( )
inline

References mParseStructPtr.

Referenced by WsfPProxySatisfy::Satisfy().

◆ Initialize()

◆ IsInherited()

bool WsfPProxyStructType::IsInherited ( void * aValuePtr) const
inlineoverridevirtual

◆ IsInitialized()

virtual bool WsfPProxyStructType::IsInitialized ( ) const
inlinevirtual

◆ IsOfBasicType()

bool WsfPProxyStructType::IsOfBasicType ( const std::string & aTypeName) const
inlineoverridevirtual

◆ IsTypeOf()

bool WsfPProxyStructType::IsTypeOf ( const WsfPProxyType * aOtherType) const
inlineoverridevirtual

Reimplemented from WsfPProxyType.

References mBasePtr, and WsfPProxyType::WsfPProxyType().

Referenced by Copy().

◆ IsUnset()

bool WsfPProxyStructType::IsUnset ( void * aValuePtr) const
overridevirtual

◆ MemoryUsage()

◆ SetInherited()

void WsfPProxyStructType::SetInherited ( void * aValuePtr,
bool aIsInherited ) const
inlineoverridevirtual

◆ SetUnset()

void WsfPProxyStructType::SetUnset ( void * aValuePtr) const
inlineoverridevirtual

◆ SwapAttr()

Member Data Documentation

◆ mAllNames

std::vector<std::string> WsfPProxyStructType::mAllNames

◆ mAttrData

std::vector<AttrData> WsfPProxyStructType::mAttrData

Byte-offset of attribute ordered by attribute index These are not strictly increasing

Referenced by DestroyInstance(), GetAttr(), GetAttrCount(), GetContainedType(), WsfPProxyStructValue::GetMember(), GetMemberCount(), GetMemberValue(), Initialize(), and SwapAttr().

◆ mBasePtr

◆ mDefaultStruct

◆ mDynamicAttributes

std::vector<size_t> WsfPProxyStructType::mDynamicAttributes

Indices of attributes that are not in the real struct.

Referenced by DestroyInstance().

◆ mEmbedded

bool WsfPProxyStructType::mEmbedded

◆ mInitialized

bool WsfPProxyStructType::mInitialized

Referenced by Initialize(), and IsInitialized().

◆ mLocalAttributes

std::vector<AttrData> WsfPProxyStructType::mLocalAttributes

Attributes for this struct, not including base classes.

Referenced by WsfPProxyRegistry::InitializeStruct().

◆ mNameToIndex

NameToIndexMap WsfPProxyStructType::mNameToIndex

Referenced by GetMemberIndex().

◆ mParseStructPtr

WsfParseStruct* WsfPProxyStructType::mParseStructPtr

Referenced by GetParseStruct().

◆ mStructSize

ptrdiff_t WsfPProxyStructType::mStructSize

Size in bytes of the actual structure.

Referenced by Initialize().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved