Inheritance diagram for MCBase:
Public Member Functions
|MCBase (const MCBase &)|
|copy constructor |
|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. |
Protected Member Functions
|void||attach (void *impl)|
|safe attach to the implementation specified by impl. |
|safe detach from the implementation |
|MCBase (void *impl)|
|Constructor with an implementation. |
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.