sigorderrules.hh File Reference

#include "signals.hh"
Include dependency graph for sigorderrules.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int getSigOrder (Tree sig)
 retrieve the order annotation (between 0 and 3) of a signal.

Function Documentation

int getSigOrder ( Tree  sig  ) 

retrieve the order annotation (between 0 and 3) of a signal.

(compute the order the first time). Orders have the following meanings 0 : numbers 1 : constants 2 : user interface values 3 : audio values

Parameters:
sig the signal we want to know the order
Returns:
the order number

Definition at line 62 of file sigorderrules.cpp.

References getProperty(), infereSigOrder(), setProperty(), tree(), and tree2int().

Referenced by mterm::complexity(), mterm::normalizedTree(), aterm::normalizedTree(), and normalizeFixedDelayTerm().

00063 {
00064     Tree tt;
00065     if (getProperty(sig, ORDERPROP, tt)) { 
00066         return tree2int(tt); 
00067     } else {
00068         int order = infereSigOrder(sig);
00069         setProperty(sig, ORDERPROP, tree(order));
00070         return order;
00071     }
00072 }   

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Thu Jul 15 15:47:25 2010 for FAUST compiler by  doxygen 1.6.3