SourcePro® 2021.1 |
SourcePro® API Reference Guide |
Product Documentation: SourcePro Documentation Home |
The Functor package supplies interfaces for invocation that are independent of the actual functions. You can combine the functor classes with others in the Threads Module to transform your existing single-threaded code into multithreaded code.
For complete information about the Functor package, see the Threads Module User's Guide.
Classes | |
class | RWFunctor0 |
Deprecated. Represents the group of functors that are invoked without any arguments and whose invocation returns no value. More... | |
class | RWFunctor0Imp |
Deprecated. Abstract base class for functor body classes that are invoked with no caller arguments and return no value. More... | |
class | RWTFunctor1< S1 > |
Deprecated. A functor that is invoked with one argument, and whose invocation returns no value. More... | |
class | RWTFunctor1Imp< S1 > |
Deprecated. Abstract base class for the family of functor bodies that are invoked with one argument and return no value. More... | |
class | RWTFunctor2< S1, S2 > |
Deprecated. A functor that is invoked with two arguments, and whose invocation returns no value. More... | |
class | RWTFunctor2Imp< S1, S2 > |
Deprecated. Abstract base class for the family of functor bodies that are invoked with two caller arguments and whose invocation returns no value. More... | |
class | RWTFunctor< R(As...)> |
A generic function object. More... | |
class | RWTFunctorR0< SR > |
Deprecated. A functor that is invoked without any arguments and whose invocation returns a value. More... | |
class | RWTFunctorR0Imp< SR > |
Deprecated. Abstract base class for the family of functor bodies that take no caller arguments at invocation time and return a value. More... | |
class | RWTFunctorR1< SR, S1 > |
Deprecated. Represents the group of functors that are invoked with one argument, and whose invocation returns a value. More... | |
class | RWTFunctorR1Imp< SR, S1 > |
Deprecated. Abstract base class for the family of functor bodies that are invoked with one caller argument and return a value. More... | |
class | RWTFunctorR2< SR, S1, S2 > |
Deprecated. Represents the group of functors that are invoked with two arguments, and whose invocation returns a value. More... | |
class | RWTFunctorR2Imp< SR, S1, S2 > |
Deprecated. Abstract base class for the family of functor bodies that are invoked with two arguments and return a value. More... | |
Enumerations | |
enum | RWCallbackScope { RW_CALL_ONCE, RW_CALL_REPEATEDLY } |
Functions | |
template<typename C , typename... As> | |
unspecified_type | rwBind (C &&c, As &&...args) |
Binds a callable and arguments into a callable object. More... | |
template<typename R , typename C , typename... As> | |
unspecified_type | rwBind< R > (C &&c, As &&...args) |
Binds a callable and arguments into a callable object that returns R . More... | |
enum RWCallbackScope |
Used when adding a callback functor to a callback list, to define how many times the functor can be invoked before being automatically removed from the list.
unspecified_type rwBind | ( | C && | c, |
As &&... | args | ||
) |
Constructs and returns a callable object of an unspecified type that invokes c, passing arguments args, and returns the result.
Assuming a bind invocation of the form rwBind(f, t1, t2, ..., tN)
, the callable will be invoked as follows:
f
is a pointer to a member function of type T
, and t1
is either an object of type T
, a reference to an object of type T
, or a reference to an object of a type derived from T:
f
is a pointer to a member function of type T
and t1
is not one of the types described above: Arguments to rwBind can be specified as placeholder values (rw1
, rw2
, ..., rw10
), allowing the arguments to be provided when the returned callable object is invoked.
unspecified_type rwBind< R > | ( | C && | c, |
As &&... | args | ||
) |
Constructs and returns a callable object of an unspecified type that invokes c, passing arguments args, and returns the result as type R
.
Assuming a bind invocation of the form rwBind<R>(f, t1, t2, ..., tN)
, the callable will be invoked as follows:
f
is a pointer to a member function of type T
, and t1
is either an object of type T
, a reference to an object of type T
, or a reference to an object of a type derived from T:
f
is a pointer to a member function of type T
and t1
is not one of the types described above: Arguments to rwBind can be specified as placeholder values (rw1
, rw2
, ..., rw10
), allowing the arguments to be provided when the returned callable object is invoked.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |