COPASI API  4.16.103
Classes | Functions
CCopasiTree.h File Reference
#include <iterator>
#include <set>
#include <cstddef>
Include dependency graph for CCopasiTree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CCopasiTree< _Node >
 
class  CCopasiTree< _Node >
 
class  CCopasiTree< _Node >::const_iterator
 
class  CCopasiTree< _Node >::iterator
 

Functions

template<class _Node >
std::ostream & operator<< (std::ostream &os, const CCopasiTree< _Node > &A)
 

Function Documentation

template<class _Node >
std::ostream & operator<< ( std::ostream &  os,
const CCopasiTree< _Node > &  A 
)

Definition at line 395 of file CCopasiTree.h.

References CCopasiTree< _Node >::begin(), and CCopasiTree< _Node >::end().

397 {
398  typename CCopasiTree< _Node >::iterator it = A.begin();
399  typename CCopasiTree< _Node >::iterator end = A.end();
400 
401  for (; it != end && &*it != NULL; ++it)
402  os << &*it << ": parent: " << it->getParent()
403  << ", child: " << it->getChild()
404  << ", sibling: " << it->getSibling() << std::endl;
405 
406  os << std::endl;
407  return os;
408 }
iterator begin() const
Definition: CCopasiTree.h:264
iterator end() const
Definition: CCopasiTree.h:270