QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches
qx::QxFunction_0< Owner, R > Class Template Reference

qx::QxFunction_0<Owner, R> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and without parameter More...

#include <QxFunction_0.h>

Inheritance diagram for qx::QxFunction_0< Owner, R >:
qx::IxFunction qx::QxPropertyBag

Classes

struct  QxInvokerFct
 
struct  QxInvokerFct< T, true >
 

Public Types

typedef std::function< R(Owner *)> type_fct
 
- Public Types inherited from qx::IxFunction
typedef std::vector< qx::anytype_any_params
 

Public Member Functions

 QX_FUNCTION_CLASS_MEMBER_FCT (QxFunction_0)
 
virtual int getParamCount () const
 
virtual qx_bool isValidParams (const QString &params) const
 
virtual qx_bool isValidParams (const type_any_params &params) const
 
- Public Member Functions inherited from qx::IxFunction
 IxFunction ()
 
virtual ~IxFunction ()
 
QString getKey () const
 
QString getSeparator () const
 
QString getDescription () const
 
void setKey (const QString &s)
 
void setSeparator (const QString &s)
 
void setDescription (const QString &s)
 
virtual qx_bool invoke (const QString &params=QString(), qx::any *ret=NULL) const =0
 
virtual qx_bool invoke (const type_any_params &params, qx::any *ret=NULL) const =0
 
virtual qx_bool invoke (void *pOwner, const QString &params=QString(), qx::any *ret=NULL) const =0
 
virtual qx_bool invoke (void *pOwner, const type_any_params &params, qx::any *ret=NULL) const =0
 
virtual qx_bool isValidFct () const =0
 
template<class T >
qx_bool isValidOwner (void *pOwner, T *dummy) const
 
template<class T >
qx_bool isValid (const T &params) const
 
template<class T , class U >
qx_bool isValid (void *pOwner, const T &params, U *dummy) const
 
- Public Member Functions inherited from qx::QxPropertyBag
 QxPropertyBag ()
 
virtual ~QxPropertyBag ()
 
void setPropertyBag (const QString &key, const QVariant &value)
 
QVariant getPropertyBag (const QString &key) const
 
void removePropertyBag (const QString &key)
 
void clearPropertyBag ()
 
long countPropertyBag () const
 
QList< QString > getAllPropertyBagKeys () const
 

Additional Inherited Members

- Protected Types inherited from qx::QxPropertyBag
typedef QHash< QString, QVariant > type_hash_prop_bag
 
typedef std::shared_ptr< type_hash_prop_bagtype_hash_prop_bag_ptr
 
- Protected Attributes inherited from qx::IxFunction
QString m_sKey
 Function key.
 
QString m_sSeparator
 Separator character(s) for 'QString' parameters type.
 
QString m_sDescription
 Function description.
 
- Protected Attributes inherited from qx::QxPropertyBag
type_hash_prop_bag_ptr m_lstPropertyBag
 List of all properties in the bag (meta-data)
 

Detailed Description

template<class Owner, typename R>
class qx::QxFunction_0< Owner, R >

qx::QxFunction_0<Owner, R> : concrete function registered into QxOrm context defined into class Owner, returning an object of type R and without parameter

Definition at line 56 of file QxFunction_0.h.

Member Typedef Documentation

◆ type_fct

template<class Owner , typename R >
typedef std::function<R (Owner *)> qx::QxFunction_0< Owner, R >::type_fct

Definition at line 61 of file QxFunction_0.h.

Member Function Documentation

◆ getParamCount()

template<class Owner , typename R >
virtual int qx::QxFunction_0< Owner, R >::getParamCount ( ) const
inlinevirtual

Implements qx::IxFunction.

Definition at line 64 of file QxFunction_0.h.

◆ isValidParams() [1/2]

template<class Owner , typename R >
virtual qx_bool qx::QxFunction_0< Owner, R >::isValidParams ( const QString & params) const
inlinevirtual

Implements qx::IxFunction.

Definition at line 65 of file QxFunction_0.h.

◆ isValidParams() [2/2]

template<class Owner , typename R >
virtual qx_bool qx::QxFunction_0< Owner, R >::isValidParams ( const type_any_params & params) const
inlinevirtual

Implements qx::IxFunction.

Definition at line 66 of file QxFunction_0.h.

◆ QX_FUNCTION_CLASS_MEMBER_FCT()

template<class Owner , typename R >
qx::QxFunction_0< Owner, R >::QX_FUNCTION_CLASS_MEMBER_FCT ( QxFunction_0< Owner, R > )

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