|
WSF
|
#include <WsfPProxyStructType.hpp>


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 |
| WsfParseStruct * | GetParseStruct () |
| void | ClearUnset (void *aValuePtr) const override |
| WsfPProxyType * | GetContainedType (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. | |
| WsfPProxyStructType * | mBasePtr |
| Pointer to base struct. | |
| std::vector< AttrData > | mLocalAttributes |
| Attributes for this struct, not including base classes. | |
| std::vector< AttrData > | mAttrData |
| 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 |
| WsfParseStruct * | mParseStructPtr |
| Public Attributes inherited from WsfPProxyType | |
| int | mTypeFlags |
| int | mTypeKind |
| int | mTypeStoredKind |
| size_t | mDataSize |
| std::string | mTypeName |
| using WsfPProxyStructType::NameToIndexMap = std::map<std::string, int> |
Map an attribute name to the index.
|
override |
References mDefaultStruct.
|
overridevirtual |
Reimplemented from WsfPProxyType.
References WsfPProxyStructHeader::mStructFlags.
|
overridevirtual |
Implements WsfPProxyType.
References WsfPProxyStructHeader::cSF_EXPANDED_FMT, WsfPProxyStructHeader::mStructFlags, and WsfPProxyStructHeader::mStructPtr.
| void WsfPProxyStructType::ConstructAttr | ( | const AttrData & | aAttr, |
| void * | aValuePtr ) const |
References WsfPProxyType::Construct(), and WsfPProxyStructType::AttrData::mTypePtr.
|
overridevirtual |
| void WsfPProxyStructType::CopyInstance | ( | WsfPProxyStructValue & | aDest, |
| WsfPProxyStructValue & | aSrc, | ||
| int | copyFlags ) const |
References WsfPProxyValue::ClearUnset(), WsfPProxyType::Copy(), WsfPProxyStructHeader::cSF_CONSTRUCTED, WsfPProxyStructValue::GetHeader(), WsfPProxyStructValue::GetMember(), WsfPProxyStructValue::GetMemberCount(), WsfPProxyStructValue::GetMemberType(), WsfPProxyValue::IsUnset(), WsfPProxyStructHeader::mStructFlags, and WsfPProxyValue::SetUnset().
|
overridevirtual |
Implements WsfPProxyType.
References DestroyInstance(), and WsfPProxyStructHeader::mStructDataPtr.
Referenced by Copy().
| void WsfPProxyStructType::DestroyInstance | ( | WsfPProxyStructValue | aInstance | ) | const |
|
inlineoverridevirtual |
Reimplemented from WsfPProxyType.
References GetMemberValue().
Referenced by WsfPProxyVisitor::Visit().
|
overridevirtual |
|
overridevirtual |
Reimplemented from WsfPProxyType.
References mAttrData.
|
inlineoverridevirtual |
Reimplemented from WsfPProxyType.
References mAttrData, and WsfPProxyType::WsfPProxyType().
|
inline |
References mDefaultStruct.
Referenced by WsfPProxyRegistry::BuildBasicRootFromBasicTypes().
|
inline |
Referenced by Copy(), and MemoryUsage().
|
inline |
References mAttrData.
Referenced by WsfPProxyStructValue::GetMemberCount(), WsfPProxyVisitor::Visit(), and WsfPProxyVisitor::VisitNodes().
|
inlineoverridevirtual |
Reimplemented from WsfPProxyType.
References mNameToIndex.
Referenced by WsfPProxy::FindAttributeIndex(), GetAttr(), and WsfPProxyStructValue::GetMemberType().
| WsfPProxyValue WsfPProxyStructType::GetMemberValue | ( | void * | aPtr, |
| size_t | aIndex ) const |
References WsfPProxyStructHeader::cSF_CONSTRUCTED, WsfPProxyStructHeader::GetStart(), WsfPProxyType::IsStruct(), mAttrData, WsfPProxyStructHeader::mStructFlags, and WsfPProxyType::WsfPProxyType().
Referenced by GetAtIndex(), and SwapAttr().
|
overridevirtual |
Reimplemented from WsfPProxyType.
References mAllNames.
|
inline |
References mParseStructPtr.
Referenced by WsfPProxySatisfy::Satisfy().
| void WsfPProxyStructType::Initialize | ( | ) |
References WsfProxy::cPOLYMORPHIC, mAttrData, mBasePtr, WsfPProxyType::mDataSize, mInitialized, mStructSize, and WsfPProxyType::mTypeFlags.
Referenced by WsfPProxyRegistry::InitializeStruct().
|
inlineoverridevirtual |
Implements WsfPProxyType.
References WsfPProxyStructHeader::cSF_INHERITED, and WsfPProxyStructHeader::mStructFlags.
|
inlinevirtual |
References mInitialized.
Referenced by WsfPProxyRegistry::InitializeStruct().
|
inlineoverridevirtual |
Reimplemented from WsfPProxyType.
References mBasePtr, and WsfPProxyType::mTypeName.
Referenced by WsfPM_Platform::GetTypeObjectMap(), and WsfPProxyNode::IsA_PredefinedStructTypeOf().
|
inlineoverridevirtual |
Reimplemented from WsfPProxyType.
References mBasePtr, and WsfPProxyType::WsfPProxyType().
Referenced by Copy().
|
overridevirtual |
Implements WsfPProxyType.
References WsfPProxyStructHeader::cSF_UNSET, and WsfPProxyStructHeader::mStructFlags.
|
overridevirtual |
Implements WsfPProxyType.
References WsfPProxyValue::GetAtIndex(), WsfPProxyValue::GetDataPtr(), WsfPProxyStructValue::GetHeader(), GetInstance(), WsfPProxyStructValue::GetMemberCount(), WsfPProxyStructHeader::GetStart(), WsfPProxyValue::GetType(), WsfPProxyStructHeader::mBasePath, WsfPProxyPath::MemoryUsage(), and WsfPProxyType::MemoryUsage().
|
inlineoverridevirtual |
Implements WsfPProxyType.
References WsfPProxyStructHeader::cSF_INHERITED, and WsfPProxyStructHeader::mStructFlags.
|
inlineoverridevirtual |
Implements WsfPProxyType.
References WsfPProxyStructHeader::cSF_UNSET, and WsfPProxyStructHeader::mStructFlags.
|
overridevirtual |
| std::vector<std::string> WsfPProxyStructType::mAllNames |
Referenced by WsfPProxyStructValue::GetMemberName(), and GetNameAtIndex().
| 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().
| WsfPProxyStructType* WsfPProxyStructType::mBasePtr |
Pointer to base struct.
Referenced by wizard::ComponentPropertyManager::FindPartIcon(), WsfPProxyNode::GetInheritedTypeNames(), Initialize(), WsfPProxyRegistry::InitializeStruct(), IsOfBasicType(), and IsTypeOf().
| WsfPProxyStructValue WsfPProxyStructType::mDefaultStruct |
Referenced by WsfPProxyRegistry::CreateDefaultStruct(), GetDefaultValue(), and ~WsfPProxyStructType().
| std::vector<size_t> WsfPProxyStructType::mDynamicAttributes |
Indices of attributes that are not in the real struct.
Referenced by DestroyInstance().
| bool WsfPProxyStructType::mEmbedded |
| bool WsfPProxyStructType::mInitialized |
Referenced by Initialize(), and IsInitialized().
| std::vector<AttrData> WsfPProxyStructType::mLocalAttributes |
Attributes for this struct, not including base classes.
Referenced by WsfPProxyRegistry::InitializeStruct().
| NameToIndexMap WsfPProxyStructType::mNameToIndex |
Referenced by GetMemberIndex().
| WsfParseStruct* WsfPProxyStructType::mParseStructPtr |
Referenced by GetParseStruct().
| ptrdiff_t WsfPProxyStructType::mStructSize |
Size in bytes of the actual structure.
Referenced by Initialize().