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

#include <klfpobj.h>

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

List of all members.

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

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

Definition at line 762 of file klfpobj.h.


Constructor & Destructor Documentation

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

Definition at line 764 of file klfpobj.h.

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

Definition at line 768 of file klfpobj.h.

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.

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

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().

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

Definition at line 856 of file klfpobj.h.

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

Definition at line 796 of file klfpobj.h.

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

Definition at line 800 of file klfpobj.h.

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

Definition at line 804 of file klfpobj.h.

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

Definition at line 808 of file klfpobj.h.

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

Definition at line 813 of file klfpobj.h.

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().

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

Definition at line 861 of file klfpobj.h.

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

Definition at line 865 of file klfpobj.h.

References KLFPObjPropRef< T >::value().

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

Definition at line 842 of file klfpobj.h.

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

Definition at line 846 of file klfpobj.h.

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

Definition at line 835 of file klfpobj.h.

References QVariant::value().

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.7.6.1. The KLatexFormula website is hosted on sourceforge.net