#include <TrkErrCode.h>
◆ TrkSuccess [1/2]
◆ TrkSuccess [2/2]
◆ TrkErrCode() [1/4]
TrkErrCode::TrkErrCode |
( |
TrkSuccess |
succ = succeed , |
|
|
int |
code = 1 , |
|
|
const char * |
str = 0 |
|
) |
| |
Definition at line 23 of file TrkErrCode.cxx.
24 : _string(0)
25{
27 if (succ) {
28 _failure = 0; _success = code;
29 } else {
30 _success = 0; _failure = code;
31 }
32}
void setMessage(const char *str=0)
◆ ~TrkErrCode() [1/2]
TrkErrCode::~TrkErrCode |
( |
| ) |
|
Definition at line 48 of file TrkErrCode.cxx.
48 {
49 if (_string != 0) {
50 delete _string;
51 _string = 0;
52 }
53}
◆ TrkErrCode() [2/4]
TrkErrCode::TrkErrCode |
( |
const TrkErrCode & |
theCode | ) |
|
Definition at line 35 of file TrkErrCode.cxx.
36 : _failure(theCode._failure)
37 , _success(theCode._success)
38{
39 if (theCode._string != 0) {
40 _string = new std::string(*theCode._string);
41 }
42 else {
43 _string = 0;
44 }
45}
◆ TrkErrCode() [3/4]
◆ ~TrkErrCode() [2/2]
TrkErrCode::~TrkErrCode |
( |
| ) |
|
◆ TrkErrCode() [4/4]
◆ failure() [1/2]
int TrkErrCode::failure |
( |
| ) |
const |
|
inline |
Definition at line 61 of file InstallArea/include/TrkBase/TrkBase/TrkErrCode.h.
Referenced by TrkDifPieceTraj::append(), MdcTrackListBase::arbitrateHits(), TrkSimpTraj::changePoint(), HoughValidUpdate::execute(), MdcHoughFinder::execute(), MdcTrackList::finishCircle(), MdcTrackList::finishHelix(), TrkHelixFitter::fit(), TrkHitOnTrk::getFitStuff(), TrkDifPieceTraj::prepend(), TrkHelixRep::resid(), TrkDifPieceTraj::TrkDifPieceTraj(), TrkPocaXY::TrkPocaXY(), and TrkHitOnTrk::updatePoca().
◆ failure() [2/2]
int TrkErrCode::failure |
( |
| ) |
const |
|
inline |
◆ message() [1/2]
const std::string & TrkErrCode::message |
( |
| ) |
const |
|
inline |
◆ message() [2/2]
const std::string & TrkErrCode::message |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
Definition at line 56 of file TrkErrCode.cxx.
57{
58 _failure = theCode._failure;
59 _success = theCode._success;
60
61 if (theCode._string != 0) {
62 if (_string != 0) {
63 *_string = *theCode._string;
64 }
65 else {
66 _string = new std::string(*theCode._string);
67 }
68 }
69 else {
70 if (_string != 0) delete _string;
71 _string = 0;
72 }
73
74 return *this;
75}
◆ operator=() [2/2]
◆ print() [1/2]
void TrkErrCode::print |
( |
std::ostream & |
ostr | ) |
const |
◆ print() [2/2]
void TrkErrCode::print |
( |
std::ostream & |
ostr | ) |
const |
◆ setFailure() [1/2]
void TrkErrCode::setFailure |
( |
int |
i, |
|
|
const char * |
str = 0 |
|
) |
| |
|
inline |
◆ setFailure() [2/2]
void TrkErrCode::setFailure |
( |
int |
i, |
|
|
const char * |
str = 0 |
|
) |
| |
|
inline |
◆ setMessage() [1/2]
void TrkErrCode::setMessage |
( |
const char * |
str = 0 | ) |
|
|
inline |
◆ setMessage() [2/2]
void TrkErrCode::setMessage |
( |
const char * |
str = 0 | ) |
|
|
inline |
◆ setSuccess() [1/2]
void TrkErrCode::setSuccess |
( |
int |
i, |
|
|
const char * |
str = 0 |
|
) |
| |
|
inline |
◆ setSuccess() [2/2]
void TrkErrCode::setSuccess |
( |
int |
i, |
|
|
const char * |
str = 0 |
|
) |
| |
|
inline |
◆ success() [1/2]
int TrkErrCode::success |
( |
| ) |
const |
|
inline |
◆ success() [2/2]
int TrkErrCode::success |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: