SourcePro® 2022.1 |
SourcePro® API Reference Guide |
The Functor Map subpackage is made up of classes designed for creating functors that 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 > |
Deprecated. A functor map that takes only one argument at invocation time and returns no value. More... | |
class | RWTFunctorMap2< Key, S1 > |
Deprecated. A functor map that takes two arguments at invocation time and returns no value. More... | |
class | RWTFunctorMapR1< SR, Key > |
Deprecated. A functor map that takes only one argument at invocation time, and returns a value. More... | |
class | RWTFunctorMapR2< SR, Key, S1 > |
Deprecated. A functor map that takes two arguments at invocation time, and returns a value. More... | |
Macros | |
#define | RW_FUNCTOR_MAP_CAPACITY |
#define RW_FUNCTOR_MAP_CAPACITY |
Default capacity for a functor map.
Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |