|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.knowceans.topics.cgen.Auxiliaries
public class Auxiliaries
static auxiliary functions
Field Summary | |
---|---|
static java.lang.String |
nthreads
|
static java.lang.String |
parfor
|
static java.lang.String |
thread
|
Constructor Summary | |
---|---|
Auxiliaries()
|
Method Summary | |
---|---|
static java.lang.String |
beginFor(java.lang.String index,
java.lang.String range,
java.lang.String comment)
start a for loop |
static java.lang.String |
beginForDeclared(java.lang.String index,
java.lang.String range,
java.lang.String comment)
start a for loop |
static java.lang.String |
beginParallelForDef(java.lang.String item,
java.lang.String range,
java.lang.String comment)
start a parallel for loop |
static java.lang.String |
cleanupParallelFor()
shutdown and cleanup of parallel for structure |
static java.lang.String |
endFor(java.lang.String index)
end a for loop |
static java.lang.String |
endParallelForDef(java.lang.String item)
end of parallel for definition for item |
static java.lang.String |
endRunParallelForDef(java.lang.String item,
java.lang.String range)
end definition of parallel for, run it and clean up afterwards |
static java.lang.String |
ff(java.lang.String format,
java.lang.Object... values)
shorthand for printf with guaranteed newline |
static java.lang.String |
ffunique(java.lang.String format,
java.util.Set<java.lang.String> uniqueVars,
int which,
java.lang.String... variable)
|
static java.lang.String |
ffunique(java.lang.String format,
java.lang.String variable)
control uniqueness of variable: If already in MixNetKernelGenerator.uniqueVars, ignore statement |
static java.lang.String |
ffunique(java.lang.String format,
java.lang.String variable,
java.util.Set<java.lang.String> uniqueVars)
control uniqueness of variable: If already in uniqueVars, ignore statement |
static java.lang.String |
ffunique2(java.lang.String format,
java.lang.String string,
java.lang.String variable)
|
static java.lang.String |
ffunique2(java.lang.String format,
java.lang.String string,
java.lang.String variable,
java.util.Set<java.lang.String> uniqueVars)
|
static java.lang.String |
fl(java.lang.String format,
java.lang.Object... values)
shorthand for printf without newline |
static boolean |
isSet(int data,
int mask)
checks whether any bit is set |
static boolean |
isSetAll(int data,
int mask)
checks whether all bits are set |
static java.lang.String |
runParallelFor(java.lang.String range)
execution of parallel for |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String parfor
public static java.lang.String nthreads
public static java.lang.String thread
Constructor Detail |
---|
public Auxiliaries()
Method Detail |
---|
public static java.lang.String ff(java.lang.String format, java.lang.Object... values)
format
- values
-
public static java.lang.String fl(java.lang.String format, java.lang.Object... values)
format
- values
-
public static java.lang.String ffunique(java.lang.String format, java.lang.String variable)
format
- variable
-
public static java.lang.String ffunique(java.lang.String format, java.lang.String variable, java.util.Set<java.lang.String> uniqueVars)
format
- variable
-
public static java.lang.String ffunique(java.lang.String format, java.util.Set<java.lang.String> uniqueVars, int which, java.lang.String... variable)
public static java.lang.String ffunique2(java.lang.String format, java.lang.String string, java.lang.String variable)
public static java.lang.String ffunique2(java.lang.String format, java.lang.String string, java.lang.String variable, java.util.Set<java.lang.String> uniqueVars)
public static java.lang.String beginFor(java.lang.String index, java.lang.String range, java.lang.String comment)
index
- range
- comment
-
public static java.lang.String beginForDeclared(java.lang.String index, java.lang.String range, java.lang.String comment)
index
- range
- comment
-
public static java.lang.String beginParallelForDef(java.lang.String item, java.lang.String range, java.lang.String comment)
item
- running index (m)comment
-
public static java.lang.String endParallelForDef(java.lang.String item)
item
-
public static java.lang.String runParallelFor(java.lang.String range)
parfor
- range
-
public static java.lang.String cleanupParallelFor()
parfor
-
public static java.lang.String endRunParallelForDef(java.lang.String item, java.lang.String range)
parfor
- item
- range
-
public static java.lang.String endFor(java.lang.String index)
index
-
public static boolean isSetAll(int data, int mask)
data
- mask
-
public static boolean isSet(int data, int mask)
data
- mask
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |