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

#include <property.hh>

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

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.

58 : fKey(tree(Node(unique("property_")))) {}
Symbol * unique(const char *str)
Returns a new unique symbol of name strxxx.
Definition: symbol.hh:97
Class Node = (type x (int + double + Sym + void*))
Definition: node.hh:75
Tree tree(const Node &n)
Definition: tree.hh:186
property< Tree >::property ( const char *  keyname)
inline

Definition at line 60 of file property.hh.

60 : fKey(tree(Node(keyname))) {}
Class Node = (type x (int + double + Sym + void*))
Definition: node.hh:75
Tree tree(const Node &n)
Definition: tree.hh:186

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.

79  {
80  t->clearProperty(fKey);
81  }
void clearProperty(Tree key)
Definition: tree.hh:168

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().

68  {
69  Tree d = t->getProperty(fKey);
70  if (d) {
71  data = d;
72  return true;
73  } else {
74  return false;
75  }
76  }
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
Definition: tree.hh:109
Tree getProperty(Tree key)
Definition: tree.hh:173

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().

63  {
64  t->setProperty(fKey, data);
65  }
void setProperty(Tree key, Tree value)
Definition: tree.hh:167

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: