libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Typedefs | Functions
object.hxx File Reference
#include <boost/mpl/if.hpp>
#include <qi/future.hpp>
#include <qi/type/typeinterface.hpp>
#include <qi/type/typeobject.hpp>
#include <qi/type/detail/typeimpl.hxx>
#include <qi/type/detail/genericobject.hpp>
#include <qi/type/metasignal.hpp>
#include <qi/type/metamethod.hpp>
#include <qi/type/metaobject.hpp>

Go to the source code of this file.

Classes

class  qi::Empty
 
struct  qi::detail::ForceProxyInclusion< T >
 
class  qi::detail::GenericObjectBounce< O >
 
class  qi::Object< T >
 
class  qi::WeakObject< T >
 
class  qi::TypeImpl< Object< T > >
 

Namespaces

 qi
 
 qi::detail
 

Macros

#define _QI_TYPE_DETAIL_OBJECT_HXX_
 
#define genCall(n, ATYPEDECL, ATYPES, ADECL, AUSE, comma)
 
#define genCall(n, ATYPEDECL, ATYPES, ADECL, AUSE, comma)
 

Typedefs

typedef std::map< TypeInfo,
boost::function< AnyReference(AnyObject)> > 
qi::detail::ProxyGeneratorMap
 
typedef WeakObject< Empty > qi::AnyWeakObject
 

Functions

ProxyGeneratorMap & qi::detail::proxyGeneratorMap ()
 
template<typename T , typename U >
ManagedObjectPtr qi::detail::fromSharedPtr (Object< T > &dst, boost::shared_ptr< U > &other, boost::false_type)
 
template<typename U >
ManagedObjectPtr qi::detail::fromSharedPtr (AnyObject &dst, boost::shared_ptr< U > &other, boost::true_type)
 

Macro Definition Documentation

#define _QI_TYPE_DETAIL_OBJECT_HXX_

Definition at line 8 of file object.hxx.

#define genCall (   n,
  ATYPEDECL,
  ATYPES,
  ADECL,
  AUSE,
  comma 
)
Value:
template<typename T comma ATYPEDECL> \
Object<T> constructObject(ADECL) \
{ \
return Object<T>(new T(AUSE)); \
}

create a T, wrap in a AnyObject All template parameters are given to the T constructor except the first one

Definition at line 174 of file object.hxx.

#define genCall (   n,
  ATYPEDECL,
  ATYPES,
  ADECL,
  AUSE,
  comma 
)
Value:
template<typename R> qi::Future<R> async( \
const std::string& methodName comma \
return go()->template async<R>(methodName comma AUSE); \
} \
template<typename R> R call( \
const std::string& methodName comma \
return go()->template call<R>(methodName comma AUSE); \
}
Future< R > async(boost::function< R()> callback, uint64_t usDelay=0)
Definition: eventloop.hpp:176
#define QI_GEN_ARGSDECLSAMETYPE(n, t)
Definition: preproc.hpp:470

create a T, wrap in a AnyObject All template parameters are given to the T constructor except the first one

Definition at line 174 of file object.hxx.