RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions
Datacratic::SlotT< Fn > Struct Template Reference
Inheritance diagram for Datacratic::SlotT< Fn >:
Datacratic::Slot

List of all members.

Public Member Functions

 SlotT (const Slot &slot)
 SlotT (const boost::function< Fn > &fn, Operations ops=FunctionOps< Fn >::ops, JS::JSOperations jsops=JS::getOps(typeid(Fn)))
 SlotT (const v8::Handle< v8::Function > &fn)
 SlotT (const v8::Handle< v8::Value > &fn)
std::string print () const
template<typename... Args>
boost::function< Fn >::result_type call (Args...args) const
template<typename... Args>
boost::function< Fn >::result_type operator() (Args...args) const
boost::function< Fn > toBoost (JS::JSOperations jsops=0) const
 operator boost::function< Fn > () const
std::function< Fn > toStd (JS::JSOperations jsops=0) const
 operator std::function< Fn > () const

Detailed Description

template<typename Fn>
struct Datacratic::SlotT< Fn >

Definition at line 320 of file slot.h.


Constructor & Destructor Documentation

template<typename Fn>
Datacratic::SlotT< Fn >::SlotT ( const v8::Handle< v8::Function > &  fn) [inline]

Initialize from a Javascript function.

Definition at line 339 of file slot.h.

template<typename Fn>
Datacratic::SlotT< Fn >::SlotT ( const v8::Handle< v8::Value > &  fn) [inline]

Initialize from a Javascript value that must be convertible to a function.

Definition at line 346 of file slot.h.


Member Function Documentation

template<typename Fn>
template<typename... Args>
boost::function<Fn>::result_type Datacratic::SlotT< Fn >::call ( Args...  args) const [inline]

Call from C++, knowing exactly what kinds of parameters there are.

Reimplemented from Datacratic::Slot.

Definition at line 357 of file slot.h.

template<typename Fn>
Datacratic::SlotT< Fn >::operator boost::function< Fn > ( ) const [inline]

Implicit conversion to boost::function<x>

Reimplemented from Datacratic::Slot.

Definition at line 381 of file slot.h.

template<typename Fn>
Datacratic::SlotT< Fn >::operator std::function< Fn > ( ) const [inline]

Implicit conversion to std::function<x>

Definition at line 396 of file slot.h.

template<typename Fn>
std::string Datacratic::SlotT< Fn >::print ( ) const

Print a string representation giving information about the slot.

Reimplemented from Datacratic::Slot.

template<typename Fn>
boost::function<Fn> Datacratic::SlotT< Fn >::toBoost ( JS::JSOperations  jsops = 0) const [inline]

Return a boost function object that will synchronously call the given callback.

Definition at line 375 of file slot.h.

template<typename Fn>
std::function<Fn> Datacratic::SlotT< Fn >::toStd ( JS::JSOperations  jsops = 0) const [inline]

Return a boost function object that will synchronously call the given callback.

Definition at line 390 of file slot.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator