TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
VarCast Struct Reference
Inheritance diagram for VarCast:
Var VarData

Public Member Functions

 operator int () const
 
 operator unsigned () const
 
 operator ni::tI8 () const
 
 operator ni::tU8 () const
 
 operator ni::tI16 () const
 
 operator ni::tU16 () const
 
 operator ni::tI32 () const
 
 operator ni::tU32 () const
 
 operator ni::tI64 () const
 
 operator ni::tU64 () const
 
 operator ni::tF32 () const
 
 operator ni::tF64 () const
 
 operator ni::sVec2f () const
 
 operator ni::sVec2i () const
 
 operator ni::sVec3f () const
 
 operator ni::sVec3i () const
 
 operator ni::sVec4f () const
 
 operator ni::sVec4i () const
 
 operator ni::sMatrixf () const
 
 operator ni::tHStringPtr () const
 
template<typename T >
 operator T * () const
 
template<typename T >
 operator const T * () const
 
- Public Member Functions inherited from Var
bool operator< (const Var &aR) const
 
bool operator> (const Var &aR) const
 
bool operator<= (const Var &aR) const
 
bool operator>= (const Var &aR) const
 
bool operator== (const Var &aR) const
 
bool operator!= (const Var &aR) const
 
 Var ()
 
 Var (int n)
 
 Var (unsigned int n)
 
 Var (const void *n)
 
 Var (tType aType, tU8 *apData, tU32 anSize)
 
void Set (tType aType, tU8 *apData, tU32 anSize)
 
void SetVar (const Var &aV)
 
 Var (const Var &aV)
 
Varoperator= (const Var &aV)
 
 ~Var ()
 
void SetNull ()
 
tBool IsNull () const
 
tBool IsNullPointer () const
 
tType GetType () const
 
 C_V (tI8, I8, tI8)
 
 C_V (tU8, U8, tU8)
 
 C_V (tI16, I16, tI16)
 
 C_V (tU16, U16, tU16)
 
 C_V (tI32, I32, tI32)
 
 C_V (tU32, U32, tU32)
 
 C_V (tI64, I64, tI64)
 
 C_V (tU64, U64, tU64)
 
 C_V (tUUID, UUID, tUUID)
 
 C_V (tF32, F32, tF32)
 
 C_V (tF64, F64, tF64)
 
 C_V_NC (tInt, Int, tInt)
 
 C_V_NC (tUInt, UInt, tUInt)
 
 C_V_NC (tIntPtr, IntPtr, tIntPtr)
 
 C_V_NC (tUIntPtr, UIntPtr, tUIntPtr)
 
 C_CP (achar, AChar)
 
 C_V (sVec2i, Vec2i, sVec2i)
 
 C_V (sVec2f, Vec2f, sVec2f)
 
 C_V (sVec3i, Vec3i, sVec3i)
 
 C_V (sVec3f, Vec3f, sVec3f)
 
 C_V (sVec4i, Vec4i, sVec4i)
 
 C_V (sVec4f, Vec4f, sVec4f)
 
 C_VPNEW (sMatrixf, Matrixf)
 
 C_VPNEW (cString, String)
 
const acharGetChars () const
 
 Var (const tHStringPtr &v)
 
Varoperator= (const tHStringPtr &v)
 
 Var (iHString *anV)
 
Varoperator= (iHString *anV)
 
 Var (const iUnknown *anV)
 
Varoperator= (const iUnknown *anV)
 
template<typename S >
 Var (const Ptr< S > &aP)
 
template<typename S >
Varoperator= (const Ptr< S > &aP)
 
void SetIUnknownPointer (iUnknown *anV)
 
void SetIUnknownPointer (const iUnknown *anV)
 
tBool IsIUnknownPointer () const
 
iUnknownGetIUnknownPointer () const
 
iUnknownQueryInterface (const tUUID &aIID) const
 
iUnknownGetRawIUnknownPointerAndSetNull ()
 
tBool IsPtrValue () const
 Check whether the variant is a pointer type value. More...
 
tIntPtr GetPtrValue () const
 Get the variant's pointer type value. More...
 
tBool IsIntValue () const
 Check whether the variant is a number type value. More...
 
tI64 GetIntValue () const
 Get the variant's number value. More...
 
tBool IsFloatValue () const
 Check whether the variant is a float type value. More...
 
tF64 GetFloatValue () const
 Get the variant's float value. More...
 
tBool IsEnumValue () const
 Check whether the variant is an enum value. More...
 
tU32 GetEnumValue () const
 Get the variant's enum value. More...
 
tBool IsVec2fValue () const
 Check whether the variant is a vec2f type value. More...
 
tBool IsVec2iValue () const
 Check whether the variant is a vec2i type value. More...
 
sVec2f GetVec2fValue () const
 Get the variant's vec2f type value. More...
 
sVec2i GetVec2iValue () const
 Get the variant's vec2i type value. More...
 
tBool IsVec3fValue () const
 Check whether the variant is a vec3f type value. More...
 
tBool IsVec3iValue () const
 Check whether the variant is a vec3i type value. More...
 
sVec3f GetVec3fValue () const
 Get the variant's vec3f type value. More...
 
sVec3i GetVec3iValue () const
 Get the variant's vec3i type value. More...
 
tBool IsVec4fValue () const
 Check whether the variant is a vec4f type value. More...
 
tBool IsVec4iValue () const
 Check whether the variant is a vec4i type value. More...
 
sVec4f GetVec4fValue () const
 Get the variant's vec4f type value. More...
 
sVec4i GetVec4iValue () const
 Get the variant's vec4i type value. More...
 
tBool IsBoolValue () const
 Check whether the variant is a bool type value. More...
 
tBool GetBoolValue (tBool abDefault=eFalse) const
 Get the variant's bool type value. Returns abDefault if the variant is not a boolean type. More...
 

Additional Inherited Members

- Public Attributes inherited from VarData
tType mType
 
union {
   tBool   mBool
 
   tI8   mI8
 
   tU8   mU8
 
   tI16   mI16
 
   tU16   mU16
 
   tI32   mI32
 
   tU32   mU32
 
   tI64   mI64
 
   tU64   mU64
 
   tInt   mInt
 
   tUInt   mUInt
 
   tIntPtr   mIntPtr
 
   tUIntPtr   mUIntPtr
 
   tUUID   mUUID
 
   tF32   mF32
 
   tF64   mF64
 
   tF32   mC3F [3]
 
   tF32   mC4F [4]
 
   tU8   mC3UB [3]
 
   tU8   mC4UB [4]
 
   tI32   mV2L [2]
 
   tI32   mV3L [3]
 
   tI32   mV4L [4]
 
   tF32   mV2F [2]
 
   tF32   mV3F [3]
 
   tF32   mV4F [4]
 
   tF32   mRectf [4]
 
   tI32   mRecti [4]
 
   tF32   mQuat [4]
 
   tF32 *   mpFloats
 
   const achar *   mcpAChar
 
   struct iUnknown *   mpIUnknown
 
   const struct iUnknown *   mcpIUnknown
 
   void *   mpPointer
 
   sVec2i   mVec2i
 
   sVec3i   mVec3i
 
   sVec4i   mVec4i
 
   sVec2f   mVec2f
 
   sVec3f   mVec3f
 
   sVec4f   mVec4f
 
   cString *   mpString
 
   sMatrixf *   mpMatrixf
 
   tU8   mData [niVarDataSize]
 
   tU32   mDataU32 [niVarDataSize/4]
 
niAligned
 

Member Function Documentation

operator int ( ) const
operator unsigned ( ) const
operator ni::tI8 ( ) const
operator ni::tU8 ( ) const
operator ni::tI16 ( ) const
operator ni::tU16 ( ) const
operator ni::tI32 ( ) const
operator ni::tU32 ( ) const
operator ni::tI64 ( ) const
operator ni::tU64 ( ) const
operator ni::tF32 ( ) const
operator ni::tF64 ( ) const
operator ni::sVec2f ( ) const
operator ni::sVec2i ( ) const
operator ni::sVec3f ( ) const
operator ni::sVec3i ( ) const
operator ni::sVec4f ( ) const
operator ni::sVec4i ( ) const
operator ni::sMatrixf ( ) const
operator ni::tHStringPtr ( ) const
operator T * ( ) const
operator const T * ( ) const