FAUST compiler  0.9.9.6b8
Public Member Functions | Private Attributes
property< double > Class Template Reference

#include <property.hh>

Collaboration diagram for property< double >:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

template<>
class property< double >

Definition at line 118 of file property.hh.


Constructor & Destructor Documentation

property< double >::property ( ) [inline]

Definition at line 124 of file property.hh.

: fKey(tree(Node(unique("property_")))) {}
property< double >::property ( const char *  keyname) [inline]

Definition at line 126 of file property.hh.

: fKey(tree(Node(keyname))) {}

Member Function Documentation

void property< double >::clear ( Tree  t) [inline]

Definition at line 144 of file property.hh.

References CTree::clearProperty(), and property< P >::fKey.

    {
        t->clearProperty(fKey);
    }

Here is the call graph for this function:

bool property< double >::get ( Tree  t,
double &  x 
) [inline]

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;
        }
    }

Here is the call graph for this function:

void property< double >::set ( Tree  t,
double  x 
) [inline]

Definition at line 128 of file property.hh.

References property< P >::fKey, CTree::setProperty(), and tree().

    {
        t->setProperty(fKey, tree(Node(x)));
    }

Here is the call graph for this function:


Member Data Documentation

Tree property< double >::fKey [private]

Definition at line 120 of file property.hh.


The documentation for this class was generated from the following file: