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

#include <property.hh>

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

List of all members.

Public Member Functions

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

Private Attributes

Tree fKey

Detailed Description

template<>
class property< int >

Definition at line 85 of file property.hh.


Constructor & Destructor Documentation

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

Definition at line 91 of file property.hh.

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

Definition at line 93 of file property.hh.

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

Member Function Documentation

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

Definition at line 111 of file property.hh.

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

    {
        t->clearProperty(fKey);
    }

Here is the call graph for this function:

bool property< int >::get ( Tree  t,
int &  i 
) [inline]

Definition at line 100 of file property.hh.

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

    {
        Tree d = t->getProperty(fKey);
        if (d) {
            i = d->node().getInt();
            return true;
        } else {
            return false;
        }
    }

Here is the call graph for this function:

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

Definition at line 95 of file property.hh.

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

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

Here is the call graph for this function:


Member Data Documentation

Tree property< int >::fKey [private]

Definition at line 87 of file property.hh.


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