IStringTestMemberFn

The IStringTestMemberFn class is a template class that provides an IStringTest-type wrapper for particular C++ member functions. You can use such member functions in conjunction with functions from IString and I0String that accept an IStringTest object as an parameter.

Customization (Template Argument)

IStringTestMemberFn is a template class that is instantiated with the following template argument:

T
The class of object whose member function is to be wrappered.


IStringTestMemberFn - Member Functions and Data by Group

Constructors & Destructor

You can construct objects of this class in the following ways:

Both constructors for the object require the following:


[view class]
IStringTestMemberFn
Constructs an IStringTestMemberFn objects.


Overload 1
public:
IStringTestMemberFn(T& object, NonconstFn nonconstFn)

Use this for the non-const member functions. The object of the class T must be non-const.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
IStringTestMemberFn(const T& object, ConstFn constFn)

Use this for the const member functions.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Testing

Use these members to dispatch member functions.


[view class]
test
public:
virtual bool test(int c) const
Overridden to dispatch a member function against an object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IStringTestMemberFn - Type Definitions


[view class]
ConstFn
typedef bool (T::*ConstFn)(int) const
A prototype for the test function, which works on const strings.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
NonconstFn
typedef bool (T::*NonconstFn)(int)
A prototype for the test function, which works on non-const strings.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IStringTestMemberFn - Inherited Member Functions and Data

Inherited Public Functions

IStringTest

Inherited Public Data

Inherited Protected Functions

IStringTest

Inherited Protected Data

IStringTest