Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWTFunctorList2


RWTFunctorList2 RWTFunctor2<S1,S2>

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Member Functions

Package

Functor List, subpackage of Functor

Header File

#include <rw/functor/list/RWTFunctorList2.h>

Description

The RWTFunctorList2 class is a sequence of functors whose invocation takes two arguments.

A function object, or a functor, is an object that encapsulates a call to an associated function. When a functor is invoked, it calls the associated function.

A functor list is a sequence of such functors. The list's invocation results in the invocation of all functors contained in the list. This is useful when you wish to connect more that one invocation to a particular action.

Example

Public Constructors

RWTFunctorList2(void);
RWTFunctorList2(const RWTFunctorList2<S1,S2>& second);

Public Operators

RWTFunctorList2<S1,S2>& 
operator=(const RWTFunctorList2<S1,S2>& second);
void 
operator()(S1 s1, S2 s2) const;

Public Member Functions

void 
add(const RWTFunctor2<S1,S2>& functor, RWCallbackScope scope);
void 
remove(const RWTFunctor2<S1,S2>& functor);
void 
update();


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.