[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 756 of file klfpobj.h.

Member Typedef Documentation

◆ Type

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

Definition at line 761 of file klfpobj.h.

Constructor & Destructor Documentation

◆ KLFPObjPropRef() [1/4]

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

Definition at line 763 of file klfpobj.h.

◆ KLFPObjPropRef() [2/4]

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

Definition at line 767 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 777 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 788 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 851 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 855 of file klfpobj.h.

◆ operator QVariant()

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

Definition at line 795 of file klfpobj.h.

◆ operator T()

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

Definition at line 799 of file klfpobj.h.

◆ operator()()

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

Definition at line 803 of file klfpobj.h.

◆ operator=() [1/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 818 of file klfpobj.h.

◆ operator=() [2/3]

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

Definition at line 807 of file klfpobj.h.

◆ operator=() [3/3]

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

Definition at line 812 of file klfpobj.h.

◆ operator==() [1/2]

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

Definition at line 864 of file klfpobj.h.

◆ operator==() [2/2]

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

Definition at line 860 of file klfpobj.h.

◆ set() [1/2]

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

Definition at line 841 of file klfpobj.h.

◆ set() [2/2]

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

Definition at line 845 of file klfpobj.h.

◆ value() [1/2]

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

Definition at line 828 of file klfpobj.h.

Referenced by KLFPObjPropRef< T >::equals().

◆ value() [2/2]

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

Definition at line 834 of file klfpobj.h.

References QVariant::value().

◆ variantValue()

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

Definition at line 823 of file klfpobj.h.


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

Generated by doxygen 1.8.16