#include <LCore/Debugable.h>
Inheritance diagram for strmod::lcore::Debugable:

Public Methods | |
| virtual int | AreYouA (const lcore::ClassIdent &cid) const |
| Asks if a class is of a particular type, or publicly derived from that type. | |
| virtual bool | invariant () const=0 |
| This should ALWAYS return true. It says whether the class invariant holds or not. | |
| virtual void | printState (::std::ostream &os) const=0 |
| This should print out as much of the internal state of a class as would be needed to debug it properly. | |
Static Public Attributes | |
| const LCore_ClassIdent | identifier |
| Globally unique identifier for this class. | |
Protected Methods | |
| virtual const ClassIdent * | i_GetIdent () const |
| Returns the class identifier for the class the object actually is. | |
You'll probable need to use a dynamic_cast to use this interface in a generic way in most cases.
Definition at line 41 of file Debugable.h.
|
|
Asks if a class is of a particular type, or publicly derived from that type. Overriden in every derived class (with a static identifier member) to compare against the identifier, then call the AreYouA methods of all the superclasses.
Reimplemented from strmod::lcore::Protocol. Reimplemented in strmod::unievent::TimerEventTracker, strmod::unievent::UnixEventPoll, strmod::strmod::BufferChunk, strmod::strmod::DynamicBuffer, and strmod::strmod::PreAllocBufferBase. |
|
|
Returns the class identifier for the class the object actually is. Should always be overridden in any class that has a static identifier member. Reimplemented from strmod::lcore::Protocol. Reimplemented in strmod::unievent::TimerEventTracker, strmod::unievent::UnixEventPoll, strmod::strmod::BufferChunk, strmod::strmod::DynamicBuffer, and strmod::strmod::PreAllocBufferBase. Definition at line 61 of file Debugable.h. |
|
|
This should ALWAYS return true. It says whether the class invariant holds or not. Your class invariant should be as strict as possible. The class invariant is used to detect when the class goes into a bad state, so all possible bad states should be caught by the invariant. Implemented in strmod::unievent::TimerEventTracker, strmod::unievent::UnixEventPoll, strmod::strmod::BufferChunk, strmod::strmod::PreAllocBufferBase, strmod::strmod::PreAllocBuffer< TInitialAlloc >, and strmod::strmod::PreAllocBuffer< 48 >. |
|
|
Globally unique identifier for this class. Every class that might need to be identified should have a public static const identifier object in it. Reimplemented from strmod::lcore::Protocol. Reimplemented in strmod::unievent::TimerEventTracker, strmod::unievent::UnixEventPoll, strmod::strmod::BufferChunk, strmod::strmod::DynamicBuffer, and strmod::strmod::PreAllocBufferBase. |
1.3-rc1