FAUST compiler  0.9.9.6b8
Functions
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:
sigthe 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(), aterm::normalizedTree(), mterm::normalizedTree(), and normalizeFixedDelayTerm().

{
    Tree tt;
    if (getProperty(sig, ORDERPROP, tt)) { 
        return tree2int(tt); 
    } else {
        int order = infereSigOrder(sig);
        setProperty(sig, ORDERPROP, tree(order));
        return order;
    }
}   

Here is the call graph for this function:

Here is the caller graph for this function: