Public Types | Public Member Functions | Data Fields

ts::Errata::Data Struct Reference

This is the implementation class for Errata. More...

#include <Errata.h>

Inherits ts::IntrusivePtrCounter.

Collaboration diagram for ts::Errata::Data:
Collaboration graph
[legend]

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.

Detailed Description

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.


Member Typedef Documentation

Self reference type.

Definition at line 540 of file Errata.h.


Constructor & Destructor Documentation

ts::Errata::Data::Data (  )  [inline]

Default constructor.

Definition at line 883 of file Errata.h.

ts::Errata::Data::~Data (  ) 

Destructor, to do logging.

Definition at line 59 of file Errata.cc.


Member Function Documentation

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]

Number of messages.

Definition at line 884 of file Errata.h.

References m_items.

Errata::Message const & ts::Errata::Data::top (  )  const

Get the top message on the stack.

Definition at line 51 of file Errata.cc.

References m_items.


Field Documentation

The message stack.

Definition at line 561 of file Errata.h.

Referenced by size(), and top().

Log this when it is deleted.

Definition at line 558 of file Errata.h.

Referenced by ts::Errata::doNotLog().


The documentation for this struct was generated from the following files: