CGEM BOSS 6.6.5.g
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)
 

Detailed Description

Definition at line 31 of file Code.h.

Constructor & Destructor Documentation

◆ Code() [1/2]

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

Definition at line 38 of file 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
void setFail(int i)
Definition: Code.h:55
void setSuccess(int i)
Definition: Code.h:57

◆ Code() [2/2]

Code::Code ( const Code c)
inline

Definition at line 45 of file Code.h.

46 :_fail(c.fail()),_success(c.success())
47 {}
int success() const
Definition: Code.h:52
int fail() const
Definition: Code.h:51

Member Function Documentation

◆ fail()

int Code::fail ( ) const
inline

Definition at line 51 of file Code.h.

51{return _fail;}

◆ setFail()

void Code::setFail ( int  i)
inline

Definition at line 55 of file Code.h.

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

Referenced by Code(), and solveQuad().

◆ setSuccess()

void Code::setSuccess ( int  i)
inline

Definition at line 57 of file Code.h.

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

Referenced by Code(), and solveQuad().

◆ success()

int Code::success ( ) const
inline

Definition at line 52 of file Code.h.

52{return _success;}

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