|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Jump to another instruction, unconditionally or, per the constructor comment, while a counter is less than a test value. More...
#include <user_sequence.hh>
Inherits TPGen::Instruction.
Public Member Functions | |
| Branch (unsigned address) | |
| Unconditional jump to address (counter ctrA, test 0). | |
| Branch (unsigned address, CCnt counter, unsigned test) | |
| Conditional jump: per the code comments, jump to address while counter (which is tested and incremented) is less than test. | |
| ~Branch () | |
| Does nothing; empty body. | |
| Instruction::Type | instr () const |
| Return Instruction::Branch. | |
Public Member Functions inherited from TPGen::Instruction | |
| virtual | ~Instruction () |
| Does nothing; empty virtual destructor. | |
Public Attributes | |
| unsigned | address |
| Target address; XpmSequenceEngine treats it as an instruction index within the sequence. | |
| CCnt | counter |
| Counter tested by a conditional branch. | |
| unsigned | test |
| Test value; 0 means an unconditional branch to XpmSequenceEngine. | |
Additional Inherited Members | |
Public Types inherited from TPGen::Instruction | |
| enum | Type { Fixed , AC , Branch , Check , Request } |
| Instruction type returned by instr(). More... | |
Jump to another instruction, unconditionally or, per the constructor comment, while a counter is less than a test value.
| TPGen::Branch::Branch | ( | unsigned | address | ) |
Unconditional jump to address (counter ctrA, test 0).
| TPGen::Branch::Branch | ( | unsigned | address, |
| CCnt | counter, | ||
| unsigned | test | ||
| ) |
Conditional jump: per the code comments, jump to address while counter (which is tested and incremented) is less than test.
| TPGen::Branch::~Branch | ( | ) |
Does nothing; empty body.
|
virtual |
Return Instruction::Branch.
Implements TPGen::Instruction.
| unsigned TPGen::Branch::address |
Target address; XpmSequenceEngine treats it as an instruction index within the sequence.
| CCnt TPGen::Branch::counter |
Counter tested by a conditional branch.
| unsigned TPGen::Branch::test |
Test value; 0 means an unconditional branch to XpmSequenceEngine.