#include <ZMerrno.h>
Definition at line 57 of file ZMerrno.h.
◆ ZMerrnoList()
zmex::ZMerrnoList::ZMerrnoList |
( |
| ) |
|
◆ ~ZMerrnoList()
zmex::ZMerrnoList::~ZMerrnoList |
( |
| ) |
|
Definition at line 50 of file ZMerrno.cc.
50 {
51
52 while (
size() > 0 ) {
53 const ZMexception * e = errors_.front();
54 errors_.pop_front();
55 delete const_cast<ZMexception *>( e );
56 }
57
58}
unsigned int size() const
◆ clear()
void zmex::ZMerrnoList::clear |
( |
| ) |
|
◆ count()
int zmex::ZMerrnoList::count |
( |
| ) |
const |
◆ countSinceCleared()
int zmex::ZMerrnoList::countSinceCleared |
( |
| ) |
const |
◆ erase()
void zmex::ZMerrnoList::erase |
( |
| ) |
|
Definition at line 130 of file ZMerrno.cc.
130 {
131
133 const ZMexception * e = errors_.back();
134 errors_.pop_back();
135 delete const_cast<ZMexception *>( e );
136 }
137
138}
◆ get()
const ZMexception * zmex::ZMerrnoList::get |
( |
unsigned int |
k = 0 | ) |
const |
◆ name()
std::string zmex::ZMerrnoList::name |
( |
unsigned int |
k = 0 | ) |
const |
Definition at line 113 of file ZMerrno.cc.
113 {
114
115
117 : std::string();
118
119}
const ZMexception * get(unsigned int k=0) const
virtual std::string name() const
◆ setMax()
unsigned int zmex::ZMerrnoList::setMax |
( |
unsigned int |
limit | ) |
|
Definition at line 147 of file ZMerrno.cc.
147 {
148
149
150
151 unsigned int oldMax = max_;
152
153 while ( newMax <
size() ) {
154 const ZMexception * e = errors_.front();
155 errors_.pop_front();
156 delete const_cast<ZMexception *>( e );
157 }
158 max_ = newMax;
159 return oldMax;
160
161}
Referenced by main().
◆ size()
unsigned int zmex::ZMerrnoList::size |
( |
| ) |
const |
◆ write()
Definition at line 67 of file ZMerrno.cc.
67 {
68
69
70 ++count_;
71 ++countSinceCleared_;
72
73 if ( max_ <= 0 ) {
74 return;
75 }
76
77 if ( max_ <=
size() ) {
78
79 const ZMexception * e = errors_.front();
80 errors_.pop_front();
81 delete const_cast<ZMexception *>( e );
82 }
83
84 errors_.push_back( x.clone() );
85
86}
Referenced by zmex::ZMthrow_().
The documentation for this class was generated from the following files: