CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Code Class Reference

#include <Code.h>

Public Member Functions

 Code (int s=1, int f=0)
 
 Code (const Code &c)
 
int fail () const
 
int success () const
 
void setFail (int i)
 
void setSuccess (int i)
 
 Code (int s=1, int f=0)
 
 Code (const Code &c)
 
int fail () const
 
int success () const
 
void setFail (int i)
 
void setSuccess (int i)
 

Detailed Description

Constructor & Destructor Documentation

◆ Code() [1/4]

Code::Code ( int  s = 1,
int  f = 0 
)
inline

Definition at line 38 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/Code.h.

38 :_fail(0),_success(0)
39 {
40 if(f==0) {setSuccess(s);}
41 else if(s==0) {setFail(f);}
42 }
XmlRpcServer s
Definition: HelloServer.cpp:11

◆ Code() [2/4]

Code::Code ( const Code c)
inline

Definition at line 45 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/Code.h.

46 :_fail(c.fail()),_success(c.success())
47 {}

◆ Code() [3/4]

Code::Code ( int  s = 1,
int  f = 0 
)
inline

Definition at line 38 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/Code.h.

38 :_fail(0),_success(0)
39 {
40 if(f==0) {setSuccess(s);}
41 else if(s==0) {setFail(f);}
42 }

◆ Code() [4/4]

Code::Code ( const Code c)
inline

Definition at line 45 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/Code.h.

46 :_fail(c.fail()),_success(c.success())
47 {}

Member Function Documentation

◆ fail() [1/2]

int Code::fail ( ) const
inline

Definition at line 51 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/Code.h.

51{return _fail;}

◆ fail() [2/2]

int Code::fail ( ) const
inline

◆ setFail() [1/2]

void Code::setFail ( int  i)
inline

Definition at line 55 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/Code.h.

56 {assert(i); _fail=i; _success=0;}

Referenced by Code(), and solveQuad().

◆ setFail() [2/2]

void Code::setFail ( int  i)
inline

Definition at line 55 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/Code.h.

56 {assert(i); _fail=i; _success=0;}

◆ setSuccess() [1/2]

void Code::setSuccess ( int  i)
inline

Definition at line 57 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/Code.h.

58 {assert(i); _success=i; _fail=0;}

Referenced by Code(), and solveQuad().

◆ setSuccess() [2/2]

void Code::setSuccess ( int  i)
inline

Definition at line 57 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/Code.h.

58 {assert(i); _success=i; _fail=0;}

◆ success() [1/2]

int Code::success ( ) const
inline

Definition at line 52 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/Code.h.

52{return _success;}

◆ success() [2/2]

int Code::success ( ) const
inline

Definition at line 52 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/Code.h.

52{return _success;}

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