[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Public Types | Public Member Functions | List of all members
KLFPObjPropRef< T > Class Template Reference

#include <klfpobj.h>

Inheritance diagram for KLFPObjPropRef< T >:
Inheritance graph
[legend]
Collaboration diagram for KLFPObjPropRef< T >:
Collaboration graph
[legend]

Public Types

typedef T Type
 

Public Member Functions

 KLFPObjPropRef (KLFPropertizedObject *pobj, int propId)
 
 KLFPObjPropRef (const KLFPObjPropRef &other)
 
 KLFPObjPropRef (KLFPropertizedObject *pobj, int builtInPropId, const QString &pname)
 
 KLFPObjPropRef (KLFPropertizedObject *pobj, int builtInPropId, const QString &pname, const T &value)
 
 operator QVariant () const
 
 operator T () const
 
const T operator() () const
 
const KLFPObjPropRefoperator= (const QVariant &v)
 
const KLFPObjPropRefoperator= (const T &value)
 
const KLFPObjPropRefoperator= (const KLFPObjPropRef &value)
 
QVariant variantValue () const
 
const T value () const
 
template<class VariantType >
const T value () const
 
template<class VariantType >
void set (const T &value)
 
void set (const T &value)
 
template<class VariantType >
bool equals (const KLFPObjPropRef &other) const
 
bool equals (const KLFPObjPropRef &other) const
 
bool operator== (const T &val) const
 
bool operator== (const KLFPObjPropRef &other) const
 

Detailed Description

template<class T>
class KLFPObjPropRef< T >

Definition at line 757 of file klfpobj.h.

Member Typedef Documentation

◆ Type

template<class T >
typedef T KLFPObjPropRef< T >::Type

Definition at line 762 of file klfpobj.h.

Constructor & Destructor Documentation

◆ KLFPObjPropRef() [1/4]

template<class T >
KLFPObjPropRef< T >::KLFPObjPropRef ( KLFPropertizedObject pobj,
int  propId 
)
inline

Definition at line 764 of file klfpobj.h.

◆ KLFPObjPropRef() [2/4]

template<class T >
KLFPObjPropRef< T >::KLFPObjPropRef ( const KLFPObjPropRef< T > &  other)
inline

Definition at line 768 of file klfpobj.h.

◆ KLFPObjPropRef() [3/4]

template<class T >
KLFPObjPropRef< T >::KLFPObjPropRef ( KLFPropertizedObject pobj,
int  builtInPropId,
const QString pname 
)
inline

Constructs the object and automatically registers the given property in pobj as a built-in property.

Warning
Should ONLY be used by KLFPropertizedObject subclasses in their constructor, for KLFPObjPropRef objects that are declared as members.

Definition at line 778 of file klfpobj.h.

◆ KLFPObjPropRef() [4/4]

template<class T >
KLFPObjPropRef< T >::KLFPObjPropRef ( KLFPropertizedObject pobj,
int  builtInPropId,
const QString pname,
const T &  value 
)
inline

Constructs the object and automatically registers the given property in pobj as a built-in property. Initializes the property's value to value.

Warning
Should ONLY be used by KLFPropertizedObject subclasses in their constructor, for KLFPObjPropRef objects that are declared as members.

Definition at line 789 of file klfpobj.h.

Member Function Documentation

◆ equals() [1/2]

template<class T >
template<class VariantType >
bool KLFPObjPropRef< T >::equals ( const KLFPObjPropRef< T > &  other) const
inline

Definition at line 852 of file klfpobj.h.

References KLFPObjPropRef< T >::value().

◆ equals() [2/2]

template<class T >
bool KLFPObjPropRef< T >::equals ( const KLFPObjPropRef< T > &  other) const
inline

Definition at line 856 of file klfpobj.h.

◆ operator QVariant()

template<class T >
KLFPObjPropRef< T >::operator QVariant ( ) const
inline

Definition at line 796 of file klfpobj.h.

◆ operator T()

template<class T >
KLFPObjPropRef< T >::operator T ( ) const
inline

Definition at line 800 of file klfpobj.h.

◆ operator()()

template<class T >
const T KLFPObjPropRef< T >::operator() ( ) const
inline

Definition at line 804 of file klfpobj.h.

◆ operator=() [1/3]

template<class T >
const KLFPObjPropRef& KLFPObjPropRef< T >::operator= ( const QVariant v)
inline

Definition at line 808 of file klfpobj.h.

◆ operator=() [2/3]

template<class T >
const KLFPObjPropRef& KLFPObjPropRef< T >::operator= ( const T &  value)
inline

Definition at line 813 of file klfpobj.h.

◆ operator=() [3/3]

template<class T >
const KLFPObjPropRef& KLFPObjPropRef< T >::operator= ( const KLFPObjPropRef< T > &  value)
inline
Note
This assigns the value; it does NOT change the property reference!

Definition at line 819 of file klfpobj.h.

References KLFPObjPropRef< T >::value().

◆ operator==() [1/2]

template<class T >
bool KLFPObjPropRef< T >::operator== ( const T &  val) const
inline

Definition at line 861 of file klfpobj.h.

◆ operator==() [2/2]

template<class T >
bool KLFPObjPropRef< T >::operator== ( const KLFPObjPropRef< T > &  other) const
inline

Definition at line 865 of file klfpobj.h.

References KLF_ASSERT_CONDITION, and KLFPObjPropRef< T >::value().

◆ set() [1/2]

template<class T >
template<class VariantType >
void KLFPObjPropRef< T >::set ( const T &  value)
inline

Definition at line 842 of file klfpobj.h.

◆ set() [2/2]

template<class T >
void KLFPObjPropRef< T >::set ( const T &  value)
inline

Definition at line 846 of file klfpobj.h.

◆ value() [1/2]

template<class T >
const T KLFPObjPropRef< T >::value ( ) const
inline

◆ value() [2/2]

template<class T >
template<class VariantType >
const T KLFPObjPropRef< T >::value ( ) const
inline

Definition at line 835 of file klfpobj.h.

References QVariant::value().

◆ variantValue()

template<class T >
QVariant KLFPObjPropRef< T >::variantValue ( ) const
inline

Definition at line 824 of file klfpobj.h.


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

Generated by doxygen 1.8.13