### 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:

- Use the constructor that supports const member functions.
- Use the constructor that supports non-const member functions. You must specify a non-const member function as the first parameter.

Both constructors for the object require the following:

- An object of the class T (non-const object for non-const member functions).
- A pointer to a member function of the class T. The Open Class Library applies this member function to the specified object to test each character passed to the test member of this class. The member function must accept a single integer parameter and return a boolean.

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.

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

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

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

  -     virtual ~IStringTest()

  -     IStringTest(CFunction& cFunc)

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  IStringTest

  -     IStringTest(FnType type, void* userData)

#### Inherited Protected Data

  IStringTest

  -     FnType type