ATLAS Offline Software
|
Return value from object correction CP tools. More...
#include <CorrectionCode.h>
Public Types | |
enum | ErrorCode { Error = 0, OutOfValidityRange = 1, Ok = 2 } |
Possible values for the correction code. More... | |
Public Member Functions | |
CorrectionCode (ErrorCode code=Ok) noexcept | |
Constructor with a correction code. More... | |
ErrorCode | code () const noexcept |
The code stored internally. More... | |
operator ErrorCode () const noexcept | |
Automatic conversion to the enumeration value. More... | |
bool | operator< (const CorrectionCode &rhs) const noexcept |
Ordering operator. More... | |
void | ignore () const noexcept |
Ignore the correction code. More... | |
void | setChecked () const noexcept |
Older functions for backward compatibility with the pre-nondiscard version of this class in which we tracked in the object itself whether the content was checked. More... | |
Static Public Member Functions | |
static void | enableFailure () noexcept |
static void | disableFailure () noexcept |
Private Attributes | |
ErrorCode | m_code |
The stored correction code. More... | |
Return value from object correction CP tools.
This class needs to be used in CP tools implementing object corrections when they implement the interface described in: https://cds.cern.ch/record/1667206 In short, all such CP tools should implement the two following functions:
CorrectionCode Tool::applyCorrection( xAODObjectType& inputObject );
CorrectionCode Tool::correctedCopy( const xAODObjectType& inputObject,
xAODObjectType*& outputObject );
Definition at line 31 of file CorrectionCode.h.
Possible values for the correction code.
Enumerator | |
---|---|
Error | Some error happened during the object correction. |
OutOfValidityRange | Input object is out of validity range. |
Ok | The correction was done successfully. |
Definition at line 35 of file CorrectionCode.h.
Constructor with a correction code.
Definition at line 42 of file CorrectionCode.h.
|
inlinenoexcept |
|
inlinestaticnoexcept |
Definition at line 65 of file CorrectionCode.h.
|
inlinestaticnoexcept |
Definition at line 64 of file CorrectionCode.h.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Ordering operator.
To make it possible to use this type as an STL container key
Definition at line 52 of file CorrectionCode.h.
|
inlinenoexcept |
Older functions for backward compatibility with the pre-nondiscard version of this class in which we tracked in the object itself whether the content was checked.
These may go away at some point.
Definition at line 63 of file CorrectionCode.h.
|
private |
The stored correction code.
Definition at line 68 of file CorrectionCode.h.