|
FAUST compiler
0.9.9.6b8
|
#include <property.hh>

Public Member Functions | |
| property () | |
| property (const char *keyname) | |
| void | set (Tree t, double x) |
| bool | get (Tree t, double &x) |
| void | clear (Tree t) |
Private Attributes | |
| Tree | fKey |
Definition at line 118 of file property.hh.
Definition at line 126 of file property.hh.
Definition at line 144 of file property.hh.
References CTree::clearProperty(), and property< P >::fKey.
{
t->clearProperty(fKey);
}

Definition at line 133 of file property.hh.
References property< P >::fKey, Node::getDouble(), CTree::getProperty(), and CTree::node().
{
Tree d = t->getProperty(fKey);
if (d) {
x = d->node().getDouble();
return true;
} else {
return false;
}
}

Definition at line 128 of file property.hh.
References property< P >::fKey, CTree::setProperty(), and tree().
{
t->setProperty(fKey, tree(Node(x)));
}

Definition at line 120 of file property.hh.
1.8.0