32#ifndef _QX_ANY_CAST_DYNAMIC_H_
33#define _QX_ANY_CAST_DYNAMIC_H_
46#include <QtCore/qsharedpointer.h>
63 if (a.
empty()) {
return NULL; }
66 if (! t) {
return NULL; }
71#ifdef _QX_ENABLE_BOOST
78 if (a.
empty()) {
return boost::shared_ptr<T>(); }
81 if (! t) {
return boost::shared_ptr<T>(); }
93 if (a.
empty()) {
return QSharedPointer<T>(); }
96 if (! t) {
return QSharedPointer<T>(); }
119 if (a.
empty()) {
return std::shared_ptr<T>(); }
122 if (! t) {
return std::shared_ptr<T>(); }
qx::any : basic implementation of boost::any (written by Kevlin Henney) when boost dependency is not ...
qx::dao::ptr<T> : provide a classic smart-pointer (like boost::shared_ptr<T> or QSharedPointer<T>) wi...
qx::dao::ptr<T> : provide a classic smart-pointer (like boost::shared_ptr<T> or QSharedPointer<T>) wi...
Root namespace for all QxOrm library features.
ValueType * any_cast(any *)
ValueType * unsafe_any_cast(any *)
static QSharedPointer< T > get(const qx::any &a)
static T * get(const qx::any &a)
static boost::shared_ptr< T > get(const qx::any &a)
static qx::dao::ptr< T > get(const qx::any &a)
static std::shared_ptr< T > get(const qx::any &a)
static T get(const qx::any &a)