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