Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes | Private Attributes | Friends
hashtree_rep< K, V > Class Template Reference

#include <hashtree.hpp>

Inheritance diagram for hashtree_rep< K, V >:
Inheritance graph
[legend]
Collaboration diagram for hashtree_rep< K, V >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 hashtree_rep ()
 hashtree_rep (V val)
bool contains (K key)
void add_child (K key, hashtree< K, V > &child)
void add_new_child (K key)
void set_label (V val)
V get_label ()

Public Attributes

V label

Private Attributes

hashmap< K, hashtree< K, V > > children
int ref_count

Friends

class hashtree< K, V >
int N (hashtree< K, V > tree)

Detailed Description

template<class K, class V>
class hashtree_rep< K, V >

Definition at line 23 of file hashtree.hpp.


Constructor & Destructor Documentation

template<class K, class V>
hashtree_rep< K, V >::hashtree_rep ( ) [inline]

Definition at line 28 of file hashtree.hpp.

: children(hashtree<K,V> (false)), label() {}
template<class K, class V>
hashtree_rep< K, V >::hashtree_rep ( V  val) [inline]

Definition at line 29 of file hashtree.hpp.

: children(hashtree<K,V> ()), label(val) {}

Member Function Documentation

template<class K, class V>
void hashtree_rep< K, V >::add_child ( key,
hashtree< K, V > &  child 
)

Definition at line 51 of file hashtree.cpp.

                                                         {
  child.realize();                   // make sure the child has a rep!
  children (key) = child;
}

Here is the call graph for this function:

template<class K, class V >
void hashtree_rep< K, V >::add_new_child ( key)

Definition at line 57 of file hashtree.cpp.

                                       {
  hashtree<K,V> child;
  add_child (key, child);
}

Here is the call graph for this function:

template<class K, class V >
bool hashtree_rep< K, V >::contains ( key) [inline]

Definition at line 46 of file hashtree.cpp.

                                  {
  return children->contains(key);
}

Here is the call graph for this function:

Here is the caller graph for this function:

template<class K , class V >
V hashtree_rep< K, V >::get_label ( )

Definition at line 68 of file hashtree.cpp.

                              {
  return label;
}
template<class K , class V>
void hashtree_rep< K, V >::set_label ( V  val)

Definition at line 63 of file hashtree.cpp.

                                   {
  label = val;
}

Here is the caller graph for this function:


Friends And Related Function Documentation

template<class K, class V>
friend class hashtree< K, V > [friend]

Definition at line 37 of file hashtree.hpp.

template<class K, class V>
int N ( hashtree< K, V tree) [friend]

Definition at line 118 of file hashtree.cpp.

                     {
  return N(ht->children);
}

Member Data Documentation

template<class K, class V>
hashmap<K,hashtree<K,V> > hashtree_rep< K, V >::children [private]

Definition at line 24 of file hashtree.hpp.

template<class K, class V>
V hashtree_rep< K, V >::label

Definition at line 26 of file hashtree.hpp.

int concrete_struct::ref_count [inherited]

Definition at line 135 of file basic.hpp.


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