rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

Functor Map
[Functors]


Module Description

The Functor Map subpackage is made up of classes designed for creating functors which are themselves a collection of functors, one of which is to be invoked according to a given key. Functor map classes are an extension to the functor class hierarchy.

Class names are constructed from the base name RWTFunctorMap by adding 1 or 2 for the number of caller arguments and an optional R if the map returns a value. Because every functor map invocation requires a key, there is no RWTFunctorMap0.

The formal template parameters include:

SR The type of the functor's map's return value.
Key The type of the functor map's key (which is the functor map's first argument).
S1 The type of the encapsulated functor's first argument (which is the functor map's second argument).

Classes

class  RWTFunctorMap1< Key >
 A functor map that takes only one argument at invocation time and returns no value. More...
class  RWTFunctorMap2< Key, S1 >
 A functor map that takes two arguments at invocation time and returns no value. More...
class  RWTFunctorMapR1< SR, Key >
 A functor map that takes only one argument at invocation time, and returns a value. More...
class  RWTFunctorMapR2< SR, Key, S1 >
 A functor map that takes two arguments at invocation time, and returns a value. More...

Defines

#define RW_FUNCTOR_MAP_CAPACITY

Define Documentation

#define RW_FUNCTOR_MAP_CAPACITY

Default capacity for a functor map.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.