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

#include <property.hh>

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

List of all members.

Public Member Functions

 property ()
 property (const char *keyname)
void set (Tree t, Tree data)
bool get (Tree t, Tree &data)
void clear (Tree t)

Private Attributes

Tree fKey

Detailed Description

template<>
class property< Tree >

Definition at line 52 of file property.hh.


Constructor & Destructor Documentation

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

Definition at line 58 of file property.hh.

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

Definition at line 60 of file property.hh.

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

Member Function Documentation

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

Definition at line 78 of file property.hh.

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

    {
        t->clearProperty(fKey);
    }

Here is the call graph for this function:

bool property< Tree >::get ( Tree  t,
Tree data 
) [inline]

Definition at line 67 of file property.hh.

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

Referenced by a2sb(), boxSimplification(), symlist(), and symlistVisit().

    {
        Tree d = t->getProperty(fKey);
        if (d) {
            data = d;
            return true;
        } else {
            return false;
        }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 62 of file property.hh.

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

Referenced by a2sb(), boxSimplification(), and symlist().

    {
        t->setProperty(fKey, data);
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Tree property< Tree >::fKey [private]

Definition at line 54 of file property.hh.


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