CIDLib Mixin Classes
Welcome To CIDCorp
Home of the CIDLib Class Libraries


Core Mixin Classes

These classes are mixin classes, that have no life of their own. They exist just to tack a particular API onto other classes. Mixin refers to the process of multiple inheritance, which is a topic very much unto itself.
Class Name Header File
MDuplicable CIDLib_Duplicable.Hpp
This is a mixin that tacks on a polymorphic duplication API to the mixed into class. It provides the pobjDuplicate() virtual method which the mixed into class must override and call its copy constructor.
MFormattable CIDLib_Formattable.Hpp
This is a mixin that tacks on a text formatting API. Classes that mix in this class can format themselves to a text stream.
MLockable CIDLib_Lock.Hpp
This is a mixin that tacks on a locking API to the mixed into class. This mixin is used to be able to treat lockable objects generically.
MStreamable CIDLib_Streamable.Hpp
This is a mixin that tacks on a persistence API to the mixed into class. Classes that mixin streamability can be flattened and resurrected via a stream object. This is a fundamental capability that the CIDLib system uses to great effect. When possible and appropriate, a class should support streaming. See the Developers Reference for details on streaming.

CIDCorp
Dean Roddey
Internet: droddey@ng.netgate.net
CIS: 72170,1614