libdrmconf  0.10.4
A library to program DMR radios.
Public Member Functions | List of all members
ErrorStack::Stack Class Reference

The actual error message stack. More...

#include <errorstack.hh>

Public Member Functions

 Stack () noexcept
 Empty constructor.
 
bool isEmpty () const
 Returns true if there are any error messages.
 
unsigned count () const
 Returns the number of error messages.
 
const Messagemessage (unsigned i) const
 Returns a specific error message.
 
QString format (const QString &indent=" ") const
 Returns a formatted string of error messages.
 
void push (const Message &msg)
 Adds an error message to the stack.
 
void push (const Stack &other)
 Adds the error messages from another stack.
 
void clear ()
 Clears the error stack.
 
Stackref ()
 Returns a new reference to the stack.
 
void unref ()
 Dereferences a stack, this decreases the ref count. More...
 

Detailed Description

The actual error message stack.

Member Function Documentation

◆ unref()

void ErrorStack::Stack::unref ( )

Dereferences a stack, this decreases the ref count.

When 0 is reached, the stack is destroyed.


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