Commit 112a3f4c authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Add ObjectWithState companion for IR_LayoutTransformationCollection.

parent a101415f
......@@ -21,5 +21,22 @@ package
import scala.collection.mutable.ListBuffer
import exastencils.core.ObjectWithState
import exastencils.core.StateManager
object IR_LayoutTransformationCollection extends ObjectWithState {
// buffer looked up reference to reduce execution time
var selfRef : Option[IR_LayoutTransformationCollection] = None
override def clear() = { selfRef = None }
// looks itself up starting from the current root
def get = {
if (selfRef.isEmpty)
selfRef = StateManager.findFirst[IR_LayoutTransformationCollection]()
case class IR_LayoutTransformationCollection(var trafoStmts : ListBuffer[IR_LayoutTransformStatement]) extends IR_Node
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment