libqi-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
qi::Signal< P0, P1, P2, P3, P4, P5, P6, P7 > Class Template Reference

#include <signal.hpp>

Public Types

typedef
detail::VoidFunctionType< P0,
P1, P2, P3, P4, P5, P6, P7 >
::type 
FunctionType
 
typedef SignalF< FunctionType > ParentType
 
typedef ParentType::OnSubscribers OnSubscribers
 
- Public Types inherited from qi::SignalF< detail::VoidFunctionType< P0, P1, P2, P3, P4, P5, P6, P7 >::type >
typedef
detail::VoidFunctionType< P0,
P1, P2, P3, P4, P5, P6, P7 >
::type 
FunctionType
 
- Public Types inherited from qi::SignalBase
typedef boost::function< void(bool)> OnSubscribers
 

Public Member Functions

 Signal (OnSubscribers onSubscribers=OnSubscribers())
 
- Public Member Functions inherited from qi::SignalF< detail::VoidFunctionType< P0, P1, P2, P3, P4, P5, P6, P7 >::type >
 SignalF (OnSubscribers onSubscribers=OnSubscribers())
 
virtual qi::Signature signature () const
 
SignalSubscriber & connect (...)
 
- Public Member Functions inherited from qi::SignalBase
 SignalBase (const Signature &signature, OnSubscribers onSubscribers=OnSubscribers())
 
 SignalBase (OnSubscribers onSubscribers=OnSubscribers())
 
virtual ~SignalBase ()
 
template<typename F >
SignalSubscriber & connect (const boost::function< F > &func)
 
SignalSubscriber & connect (const SignalSubscriber &s)
 
SignalSubscriber & connect (AnyObject object, const unsigned int slot)
 
SignalSubscriber & connect (AnyObject object, const std::string &slot)
 
bool disconnectAll ()
 
bool asyncDisconnectAll ()
 
bool disconnect (const SignalLink &link)
 
bool asyncDisconnect (const SignalLink &link)
 
virtual void trigger (const GenericFunctionParameters &params, MetaCallType callType=MetaCallType_Auto)
 
void setCallType (MetaCallType callType)
 Set the MetaCallType used by operator()(). More...
 
void operator() (qi::AutoAnyReference p1=qi::AutoAnyReference(), qi::AutoAnyReference p2=qi::AutoAnyReference(), qi::AutoAnyReference p3=qi::AutoAnyReference(), qi::AutoAnyReference p4=qi::AutoAnyReference(), qi::AutoAnyReference p5=qi::AutoAnyReference(), qi::AutoAnyReference p6=qi::AutoAnyReference(), qi::AutoAnyReference p7=qi::AutoAnyReference(), qi::AutoAnyReference p8=qi::AutoAnyReference())
 Trigger the signal with given arguments, and call type set by setCallType() More...
 
std::vector< SignalSubscriber > subscribers ()
 
bool hasSubscribers ()
 
void _setSignature (const Signature &s)
 

Additional Inherited Members

- Public Attributes inherited from qi::SignalBase
boost::shared_ptr
< SignalBasePrivate > 
_p
 
- Static Public Attributes inherited from qi::SignalBase
static const SignalLink invalidSignalLink
 
- Protected Types inherited from qi::SignalBase
typedef boost::function< void(const
GenericFunctionParameters
&params, MetaCallType callType)> 
Trigger
 
- Protected Member Functions inherited from qi::SignalBase
void callSubscribers (const GenericFunctionParameters &params, MetaCallType callType=MetaCallType_Auto)
 
void setTriggerOverride (Trigger trigger)
 
void setOnSubscribers (OnSubscribers onSubscribers)
 
void callOnSubscribe (bool v)
 
void createNewTrackLink (int &id, SignalLink *&trackLink)
 
void disconnectTrackLink (int id)
 

Detailed Description

template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
class qi::Signal< P0, P1, P2, P3, P4, P5, P6, P7 >

Class that represent an event to which function can subscribe.

Definition at line 122 of file signal.hpp.

Member Typedef Documentation

template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
typedef detail::VoidFunctionType<P0, P1, P2, P3, P4, P5, P6, P7>::type qi::Signal< P0, P1, P2, P3, P4, P5, P6, P7 >::FunctionType

Definition at line 225 of file signal.hpp.

template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
typedef ParentType::OnSubscribers qi::Signal< P0, P1, P2, P3, P4, P5, P6, P7 >::OnSubscribers

Definition at line 227 of file signal.hpp.

template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
typedef SignalF<FunctionType> qi::Signal< P0, P1, P2, P3, P4, P5, P6, P7 >::ParentType

Definition at line 226 of file signal.hpp.

Constructor & Destructor Documentation

template<typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7>
qi::Signal< P0, P1, P2, P3, P4, P5, P6, P7 >::Signal ( OnSubscribers  onSubscribers = OnSubscribers())
inline

Definition at line 228 of file signal.hpp.


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