SRef<IString> Class Template Reference


Public Methods

 SRef (const NString &in)
 operator const char * () const

Detailed Description

template<>
class SRef< IString >

This is a full specialization of the SRef class for the IString interface type. It is defined to add the following convenience functions that are described below.

SRef<IString>::SRef(const NString &in) SRef<IString>::operator const char*() const

All other members are identical to the standard SRef.


Constructor & Destructor Documentation

SRef< IString >::SRef const NString &    in
 

This constructor takes in a reference to an NString class (the plug-in system Narrow String representation). It constructs an instance of the StringImp, which implements IString and derives from NString. The pointer to this instance is then controlled by this SRef class via the IString interface.

Parameters:
in A reference to an NString class.


Member Function Documentation

SRef< IString >::operator const char *   const [inline]
 

This operator is provided as a convenience for use with functions that return IString interface pointers controlled by the SRef class. It allows the return value of the function to be passed directly into a function that takes a const char *.


The documentation for this class was generated from the following files:

Return to top of page