|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.pj.reduction.Op
edu.rit.pj.reduction.ByteOp
public abstract class ByteOp
Class ByteOp is the abstract base class for a binary operation on byte values, used to do reduction in a parallel program.
| Field Summary | |
|---|---|
static ByteOp |
AND
The byte bitwise "and" binary operation. |
static ByteOp |
MAXIMUM
The byte maximum binary operation. |
static ByteOp |
MINIMUM
The byte minimum binary operation. |
static ByteOp |
OR
The byte bitwise "or" binary operation. |
static ByteOp |
PRODUCT
The byte product binary operation. |
static ByteOp |
SUM
The byte sum binary operation. |
static ByteOp |
XOR
The byte bitwise "exclusive or" binary operation. |
| Constructor Summary | |
|---|---|
protected |
ByteOp()
Construct a new byte binary operation. |
| Method Summary | |
|---|---|
abstract byte |
op(byte x,
byte y)
Perform this binary operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ByteOp SUM
public static final ByteOp PRODUCT
public static final ByteOp MINIMUM
public static final ByteOp MAXIMUM
public static final ByteOp AND
public static final ByteOp OR
public static final ByteOp XOR
| Constructor Detail |
|---|
protected ByteOp()
| Method Detail |
|---|
public abstract byte op(byte x,
byte y)
x - First argument.y - Second argument.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||