#include <mcllib/MCBase.h>
Inheritance diagram for MCBase:
Public Member Functions | |
MCBase (const MCBase &) | |
copy constructor | |
MCBase () | |
Default constructor. | |
bool | operator!= (const MCBase &) const |
Test for in-equality on the implementation. | |
bool | operator< (const MCBase &) const |
Test for less-than on the implementation. | |
MCBase & | operator= (const MCBase &) |
assignment operator | |
bool | operator== (const MCBase &) const |
Test for equality on the implementation. | |
~MCBase () | |
Destructor. | |
Protected Member Functions | |
void | attach (void *impl) |
safe attach to the implementation specified by impl. | |
void | detach () |
safe detach from the implementation | |
MCBase (void *impl) | |
Constructor with an implementation. | |
Friends | |
class | mclpriv::MCBaseAccessor |
Derived class constructors must provide a pointer to a private implementation class derived from MCBaseImpl which is reference counted to promote fast and simple copying. It is still better to pass as const references instead of by value to avoid the reference counting overhead.
|
Constructor with an implementation. The implementation pointer must be derived from the private class MCBaseImpl. |
|
safe attach to the implementation specified by impl. See note on MCBase(void* impl) constructor |
|
Test for less-than on the implementation. Useful in conjunction with STL containers, sorting etc. |