00001 #ifndef _ASTINDEXNAMENODE_H_
00002 #define _ASTINDEXNAMENODE_H_
00003
00004 #include "sbml/math/ASTNode.h"
00005
00006 #include "sbmlsolver/exportdefs.h"
00007
00008 #ifdef __cplusplus
00009
00010 class ASTIndexNameNode :
00011 public ASTNode
00012 {
00013 public:
00014 ASTIndexNameNode();
00015 virtual ~ASTIndexNameNode(void);
00016
00017 unsigned int getIndex() const { return index; }
00018 unsigned int isSetIndex() const { return indexSet; }
00019 void setIndex(unsigned int i) { index = i; indexSet = 1; }
00020
00021 private:
00022 unsigned int index ;
00023 int indexSet ;
00024 };
00025
00026 #endif
00027
00028 BEGIN_C_DECLS
00029
00030 SBML_ODESOLVER_API ASTNode_t *ASTNode_createIndexName(void);
00031 SBML_ODESOLVER_API int ASTNode_isIndexName(ASTNode_t *);
00032
00033
00034 SBML_ODESOLVER_API unsigned int ASTNode_getIndex(ASTNode_t *);
00035
00036
00037 SBML_ODESOLVER_API unsigned int ASTNode_isSetIndex(ASTNode_t *);
00038
00039
00040 SBML_ODESOLVER_API void ASTNode_setIndex(ASTNode_t *, unsigned int);
00041
00042 END_C_DECLS
00043
00044 #endif