Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cVarTuple Class Reference

#include <cVarMap.h>

Inheritance diagram for GrayLib::cVarTuple:
Gray::cRefBase Gray::cHeapObject Gray::CObject IScriptableSetter Gray::cNonCopyable IUnknown Gray::IHeapObject

Public Member Functions

 cVarTuple (cAtomRef aKey)
 
 cVarTuple (cAtomRef aKey, const cVariant &vVal)
 
virtual ~cVarTuple ()
 
virtual bool isValidCheck () const noexcept override
 
ATOMCODE_t get_HashCode () const noexcept
 
cAtomRef get_KeyA () const noexcept
 
HRESULT DisposeThis ()
 
size_t GetHeapStats (OUT ITERATE_t &iAllocCount) const
 
HRESULT SerializeOutput (cStreamOutput &file) const
 
STDMETHOD() s_Put (const ATOMCHAR_t *pszPropName, const cVariant &vValSet) override
 
- Public Member Functions inherited from Gray::cRefBase
 cRefBase (int iRefCount=0) noexcept
 
virtual ~cRefBase ()
 
int get_RefCount () const noexcept
 
HASHCODE_t get_HashCode () const noexcept
 
 STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept
 
virtual void onFinalRelease ()
 
bool isValidObj () const noexcept
 
 STDMETHOD_ (ULONG, AddRef)(void) override
 
 STDMETHOD_ (ULONG, Release)(void) override
 
STDMETHOD() QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
void IncRefCount ()
 
void DecRefCount ()
 
bool isStaticConstruct () const noexcept
 
void StaticConstruct ()
 
void StaticDestruct ()
 
bool isDestructing () noexcept
 
void SetDestructing ()
 
- Public Member Functions inherited from Gray::cHeapObject
 cHeapObject ()
 
virtual ~cHeapObject ()
 
bool IsValidInsideN (INT_PTR index) const
 
bool IsValidInsidePtr (void const *pTest) const
 
virtual size_t GetHeapStatsThis (OUT ITERATE_t &iAllocCount) const
 
- Public Member Functions inherited from Gray::CObject
virtual ~CObject ()
 
virtual void AssertValid () const
 < memory allocation and structure definitions are valid. More...
 
virtual void Serialize (cArchive &a)
 

Public Attributes

cVariant m_vVal
 Equate the m_aKey name to this cVariant Val. More...
 

Protected Attributes

 CHEAPOBJECT_IMPL
 

Additional Inherited Members

- Protected Member Functions inherited from Gray::cHeapObject
const void * get_HeapPtr () const noexcept override
 Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More...
 
- Protected Member Functions inherited from Gray::cNonCopyable
 cNonCopyable () noexcept
 Force the use of Factory creation via protected constructor. More...
 
 ~cNonCopyable () noexcept
 

Detailed Description

A single name,value variable pair. ex: A=2 KEY=Val (Where Val is of any cVariant type) 'Tuple' StrT::k_LEN_MAX_KEY is max string length for key/name. similar to cPair or "std::tuple<>" or "System.Collections.Generic.KeyValuePair<>" generic in c#

Constructor & Destructor Documentation

◆ cVarTuple() [1/2]

GrayLib::cVarTuple::cVarTuple ( cAtomRef  aKey)
inline

◆ cVarTuple() [2/2]

GrayLib::cVarTuple::cVarTuple ( cAtomRef  aKey,
const cVariant vVal 
)
inline

◆ ~cVarTuple()

virtual GrayLib::cVarTuple::~cVarTuple ( )
inlinevirtual

Member Function Documentation

◆ DisposeThis()

HRESULT GrayLib::cVarTuple::DisposeThis ( void  )
inline

◆ get_HashCode()

ATOMCODE_t GrayLib::cVarTuple::get_HashCode ( ) const
inlinenoexcept

◆ get_KeyA()

cAtomRef GrayLib::cVarTuple::get_KeyA ( ) const
inlinenoexcept

◆ GetHeapStats()

size_t GrayLib::cVarTuple::GetHeapStats ( OUT ITERATE_t iAllocCount) const
inline
Returns
Size of allocations (not sizeof(*this))

◆ isValidCheck()

virtual bool GrayLib::cVarTuple::isValidCheck ( ) const
inlineoverridevirtualnoexcept

Reimplemented from Gray::cHeapObject.

◆ s_Put()

HRESULT GrayLib::cVarTuple::s_Put ( const ATOMCHAR_t pszPropName,
const cVariant vValSet 
)
override

◆ SerializeOutput()

HRESULT GrayLib::cVarTuple::SerializeOutput ( cStreamOutput file) const

Binary serialize this.

Note
cVariant serialization should NEVER change. For use by XProtocol

Member Data Documentation

◆ CHEAPOBJECT_IMPL

GrayLib::cVarTuple::CHEAPOBJECT_IMPL
protected

◆ m_vVal

cVariant GrayLib::cVarTuple::m_vVal

Equate the m_aKey name to this cVariant Val.


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