CLHEP
2.4.7.1
C++ Class Library for High Energy Physics
CLHEP
Exceptions
ZMerrno.icc
Go to the documentation of this file.
1
#ifndef ZMERRNO_ICC
2
#error "Exceptions/ZMerrno.icc included without Exceptions/ZMerrno.h"
3
#endif
4
5
6
// ----------------------------------------------------------------------
7
//
8
// ZMerrno.icc -- inline implementations for the error list mechanism.
9
//
10
//
11
// The following methods of ZMerrnoList are defined here:
12
// ZMerrnoList();
13
// unsigned int size();
14
// void clear();
15
// int count();
16
// int countSinceCleared();
17
//
18
// Revision History:
19
// 970916 WEB Updated per code review
20
// 970917 WEB Updated per code review 2
21
// 980617 WEB Added namespace support
22
// 011030 MF Changed return type of size to unsigned
23
//
24
// ----------------------------------------------------------------------
25
26
27
namespace
zmex
{
28
29
30
//**************
31
//
32
// ZMerrnoList()
33
//
34
//**************
35
36
// Constructor
37
38
inline
ZMerrnoList::ZMerrnoList
() :
39
max_( ZMERRNO_LENGTH )
40
, count_( 0 )
41
, countSinceCleared_( 0 )
42
{
43
}
44
45
46
//********************
47
//
48
// countSinceCleared()
49
//
50
//********************
51
52
inline
int
ZMerrnoList::countSinceCleared
()
const
{
53
// Return the number of exceptions written to the ZMerrnoList since
54
// last cleared
55
return
countSinceCleared_;
56
}
57
58
//********
59
//
60
// size()
61
//
62
//********
63
64
//
65
// unsigned int size() const;
66
// return the number of entries currently on the exception stack
67
68
inline
unsigned
int
ZMerrnoList::size
()
const
{
69
return
(
unsigned
int
)errors_.size();
70
}
71
72
//********
73
//
74
// count()
75
//
76
//********
77
78
//
79
// int count() const;
80
// return the number of entries ever ZMerrno.write() to the exception stack
81
82
inline
int
ZMerrnoList::count
()
const
{
83
return
count_;
84
}
85
86
//********
87
//
88
// clear()
89
//
90
//********
91
92
inline
void
ZMerrnoList::clear
() {
93
94
countSinceCleared_ = 0;
95
}
96
97
98
}
// namespace zmex
zmex::ZMerrnoList::clear
void clear()
Definition
ZMerrno.icc:92
zmex::ZMerrnoList::size
unsigned int size() const
Definition
ZMerrno.icc:68
zmex::ZMerrnoList::ZMerrnoList
ZMerrnoList()
Definition
ZMerrno.icc:38
zmex::ZMerrnoList::countSinceCleared
int countSinceCleared() const
Definition
ZMerrno.icc:52
zmex::ZMerrnoList::count
int count() const
Definition
ZMerrno.icc:82
zmex
Definition
ZMerrno.h:52
Generated by
1.12.0