This is the implementation class for Errata. More...
#include <Errata.h>
Inherits ts::IntrusivePtrCounter.
Public Types | |
typedef Data | self |
Self reference type. | |
Public Member Functions | |
Data () | |
Default constructor. | |
~Data () | |
Destructor, to do logging. | |
size_t | size () const |
Number of messages. | |
Message const & | top () const |
Get the top message on the stack. | |
void | push (Message const &msg) |
Put a message on top of the stack. | |
Data Fields | |
bool | m_log_on_delete |
Log this when it is deleted. | |
Container | m_items |
The message stack. |
This is the implementation class for Errata.
It holds the actual messages and is treated as a passive data object with nice constructors.
We implement reference counting semantics by hand for two reasons. One is that we need to do some specialized things, but mainly because the client can't see this class so we can't
Definition at line 539 of file Errata.h.
typedef Data ts::Errata::Data::self |
void ts::Errata::Data::push | ( | Message const & | msg | ) |
Put a message on top of the stack.
Definition at line 46 of file Errata.cc.
References ts::Errata::Message::m_code.
Referenced by ts::Errata::operator=().
size_t ts::Errata::Data::size | ( | void | ) | const [inline] |
Errata::Message const & ts::Errata::Data::top | ( | ) | const |
Log this when it is deleted.
Definition at line 558 of file Errata.h.
Referenced by ts::Errata::doNotLog().