|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.spacedynamic.Compression
public class Compression
Field Summary | |
---|---|
CompressedSequence |
compressed
the compressed sequence, after compression is performed |
int |
compressionLevel
the compression level (number of nested compressions) that for the last compressed sequence. |
Constructor Summary | |
---|---|
Compression(Object[] nodes)
Create a new compression object that will compress the sequence nodes. |
Method Summary | |
---|---|
String |
compressedCode(String varPrefix)
Given a compressed sequence that is composed of objects with an appropriate toString() method defined, generate code (nested C for loops in an outer block) to execute the compressed schedule. |
String |
compressedSequence(CompressedSequence seq,
int level,
String varPrefix)
|
void |
fullyCompress()
Fully compress a sequcence. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int compressionLevel
public CompressedSequence compressed
Constructor Detail |
---|
public Compression(Object[] nodes)
nodes
- The sequence to compress.Method Detail |
---|
public void fullyCompress()
nodes
- The sequence to compress.public String compressedCode(String varPrefix)
seq
- varPrefix
- The prefix to use for loop indices (these have been declared previously).
public String compressedSequence(CompressedSequence seq, int level, String varPrefix)
seq
- level
- varPrefix
-
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |