The IStringGeneratorFn template class is an abstract base class defining
the protocol for storing and calling functions to generate IStrings.
Objects of this class represent functions to be called when the
stringFor function is called.
The stringFor pure virtual function accepts an object reference of the
template class type.
Note:
Use the subclasses IStringGeneratorMemberFn and IStringGeneratorRefMemberFn or create your own subclass to represent functions. These subclasses do two things:
These objects are reference-counted to manage their destruction.
IStringGeneratorMemberFn and IStringGeneratorRefMemberFn objects represent member functions of the template class type. Review these classes for example usage.
Constructors & DestructorYou do not create objects of this class. It is an abstract base class.
![]() |
public:
virtual ~IStringGeneratorFn()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IStringGeneratorFn()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Miscellaneous Members![]() |
public:
virtual IString stringFor(const T& object) const = 0
Is a pure virtual function. It accepts an object reference as a parameter; it is this object for which subclass objects generate a string. IStringGeneratorFn subclasses override this function to call the appropriate member function with the appropriate number of parameters.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
void addRef()
unsigned long count() const
void removeRef()
virtual ~IMRefCounted()
IMRefCounted()
IMRefCounted(const IMRefCounted&)
IMRefCounted& operator =(const IMRefCounted&)