Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCIMgr Class Template Reference

Templatized run-time type-safe interface manager class. More...

#include <mcllib/MCInterface.h>

Inheritance diagram for MCIMgr:

MCIMgrBase List of all members.

Public Member Functions

 MCIMgr (const MCIMgrBase &imgr, const MCIID &iid)
 Down cast (to a derived interface).
 MCIMgr (T *pT, const MCIID &iid)
 Attach to the MCInterface derived object pT.
 MCIMgr ()
 Construct an empty interface.
T * operator-> ()
 Access the contained interface.
const T * operator-> () const
 Access the contained interface.

Detailed Description

template<class T>
class mcllib::MCIMgr< T >

Templatized run-time type-safe interface manager class.

Provides type-safe access to the contained interface.


Constructor & Destructor Documentation

MCIMgr  )  [inline]
 

Construct an empty interface.

Attempts to use the interface before it is assigned to will result in a crash.

MCIMgr T *  pT,
const MCIID iid
[inline]
 

Attach to the MCInterface derived object pT.

Note pT must have been allocated with new rather than on the stack. iid is the interface identifier that represents the interface T.

MCIMgr const MCIMgrBase imgr,
const MCIID iid
[inline]
 

Down cast (to a derived interface).

imgr contains a base (parent) interface. iid represents the derived interface identifier. The parent interface is down cast to the derived interface type.


Generated on Wed Jan 12 19:05:49 2005 for MCLLIB by  doxygen 1.3.9.1