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:
Constructors & DestructorYou can construct objects of this class in the following ways:
Both constructors for the object require the following:
![]() |
public:
IStringTestMemberFn(T& object, NonconstFn nonconstFn)
Use this for the non-const member functions. The object of the class T must be non-const.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IStringTestMemberFn(const T& object, ConstFn constFn)
Use this for the const member functions.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
TestingUse these members to dispatch member functions.
![]() |
public:
virtual bool test(int c) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
typedef bool (T::*ConstFn)(int) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
typedef bool (T::*NonconstFn)(int)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
virtual ~IStringTest()
IStringTest(CFunction& cFunc)
IStringTest(FnType type, void* userData)
FnType type