exptree Class Reference

#include <storage.hh>

List of all members.

Public Member Functions

 exptree ()
 exptree (tree< str_node >::iterator)
 exptree (const str_node &)
std::ostream & print_entire_tree (std::ostream &str) const
iterator named_parent (iterator it, const std::string &) const
iterator erase_expression (iterator it)
iterator keep_only_last (iterator it)
hashval_t calc_hash (iterator it) const
sibling_iterator arg (iterator, unsigned int) const
unsigned int arg_size (sibling_iterator) const
multiplier_t arg_to_num (sibling_iterator, unsigned int) const
sibling_iterator tensor_index (const iterator_base &position, unsigned int) const
iterator active_expression (iterator it) const
unsigned int number_of_steps (iterator it) const
unsigned int number_of_equations () const
unsigned int equation_number (iterator it) const
nset_t::iterator equation_label (iterator it) const
iterator equation_by_number (unsigned int i) const
iterator equation_by_name (nset_t::iterator it) const
iterator equation_by_name (nset_t::iterator it, unsigned int &) const
iterator equation_by_number_or_name (iterator it, unsigned int last_used_equation) const
iterator equation_by_number_or_name (iterator it, unsigned int last_used_equation, unsigned int &) const
std::string equation_number_or_name (iterator it, unsigned int last_used_equation) const
iterator procedure_by_name (nset_t::iterator it) const
iterator replace_index (iterator position, const iterator &from)
iterator move_index (iterator position, const iterator &from)
 pointing to the original remain valid).
iterator flatten_and_erase (iterator position)

Static Public Member Functions

static std::ostream & print_recursive_treeform (std::ostream &str, exptree::iterator it)
static std::ostream & print_recursive_treeform (std::ostream &str, exptree::iterator it, unsigned int &number)
static unsigned int number_of_indices (iterator it)
static index_iterator begin_index (iterator it)
static index_iterator end_index (iterator it)

Classes

class  index_iterator


Constructor & Destructor Documentation

exptree::exptree  ) 
 

exptree::exptree tree< str_node >::iterator   ) 
 

exptree::exptree const str_node  ) 
 


Member Function Documentation

iterator exptree::active_expression iterator  it  )  const
 

exptree::sibling_iterator exptree::arg iterator  ,
unsigned  int
const
 

unsigned int exptree::arg_size sibling_iterator   )  const
 

multiplier_t exptree::arg_to_num sibling_iterator  ,
unsigned  int
const
 

exptree::index_iterator exptree::begin_index iterator  it  )  [static]
 

hashval_t exptree::calc_hash iterator  it  )  const
 

exptree::index_iterator exptree::end_index iterator  it  )  [static]
 

exptree::iterator exptree::equation_by_name nset_t::iterator  it,
unsigned int & 
const
 

exptree::iterator exptree::equation_by_name nset_t::iterator  it  )  const
 

exptree::iterator exptree::equation_by_number unsigned int  i  )  const
 

exptree::iterator exptree::equation_by_number_or_name iterator  it,
unsigned int  last_used_equation,
unsigned int & 
const
 

exptree::iterator exptree::equation_by_number_or_name iterator  it,
unsigned int  last_used_equation
const
 

nset_t::iterator exptree::equation_label iterator  it  )  const
 

unsigned int exptree::equation_number iterator  it  )  const
 

std::string exptree::equation_number_or_name iterator  it,
unsigned int  last_used_equation
const
 

iterator exptree::erase_expression iterator  it  ) 
 

exptree::iterator exptree::flatten_and_erase iterator  position  ) 
 

Replace the node with the only child of the node, useful for e.g. {A} -> A. This algorithm takes care of the multiplier of the top node, i.e. it does 2{A} -> 2 A.

iterator exptree::keep_only_last iterator  it  ) 
 

exptree::iterator exptree::move_index iterator  position,
const iterator &  from
 

pointing to the original remain valid).

As in replace_index, but moves the index rather than making a copy (so that iterators

iterator exptree::named_parent iterator  it,
const std::string & 
const
 

unsigned int exptree::number_of_equations  )  const
 

unsigned int exptree::number_of_indices iterator  it  )  [static]
 

unsigned int exptree::number_of_steps iterator  it  )  const
 

std::ostream & exptree::print_entire_tree std::ostream &  str  )  const
 

std::ostream & exptree::print_recursive_treeform std::ostream &  str,
exptree::iterator  it,
unsigned int &  number
[static]
 

std::ostream & exptree::print_recursive_treeform std::ostream &  str,
exptree::iterator  it
[static]
 

exptree::iterator exptree::procedure_by_name nset_t::iterator  it  )  const
 

exptree::iterator exptree::replace_index iterator  position,
const iterator &  from
 

Replace the object, keeping the original bracket and parent_rel (originally intended to replace indices only, but now used also for e.g. normal function arguments, as in {z}{ A(z) } with a replacement of z).

exptree::sibling_iterator exptree::tensor_index const iterator_base &  position,
unsigned  int
const
 


The documentation for this class was generated from the following files:
Generated on Sat Jul 18 23:03:16 2009 for cadabra by  doxygen 1.4.6