COPASI API  4.16.103
ConverterASTNode.h
Go to the documentation of this file.
1 /* Begin CVS Header
2  $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/ConverterASTNode.h,v $
3  $Revision: 1.8 $
4  $Name: $
5  $Author: gauges $
6  $Date: 2008/08/30 16:06:49 $
7  End CVS Header */
8 
9 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
11 // and The University of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc. and EML Research, gGmbH.
16 // All rights reserved.
17 
18 #ifndef ConverterASTNode_HPP__
19 #define ConverterASTNode_HPP__
20 
21 #include "sbml/math/ASTNode.h"
22 
23 class ConverterASTNode : public ASTNode
24  {
25  public:
26  /**
27  * Standard constructor.
28  */
30 
31  /**
32  * Sets the list of children to the one given as argument. The list is not
33  * copied.
34  */
35  void setChildren(List* children);
36 
37  /**
38  * Removes a child from the list of children.
39  */
40  ASTNode* removeChild(unsigned int index);
41 
42  /**
43  * Constructor that makes a ConverterASTNode from an ASTNode.
44  */
45  ConverterASTNode(const ASTNode& templ);
46 
47  /**
48  * This function returns true if the node represents a user defined function.
49  */
50  //bool isUserDefinedFunction();
51 
52  // make a shallow copy of an ASTNode
53  static ASTNode* shallowCopy(const ASTNode* pOrig);
54 
55 #ifdef COPASI_DEBUG
56  /**
57  * Function to print an ASTNode and its children as a simple tree.
58  * The arguments are the node to be printed and the number of spaces that this
59  * node will be indented.
60  */
61  static void printASTNode(const ASTNode* node, unsigned int indent = 0);
62 #endif // COPASI_DEBUG
63  };
64 
65 #endif
void setChildren(List *children)
static ASTNode * shallowCopy(const ASTNode *pOrig)
ASTNode * removeChild(unsigned int index)