roadrunner  2.6.0
Fast simulator for SBML models
rrArrayList.h
1 #ifndef rrArrayListH
2 #define rrArrayListH
3 #include <vector>
4 #include <string>
5 #include <list>
6 #include <ostream>
7 #include "rrArrayListItem.h"
8 #include "rrc_exporter.h"
9 #include "rrcStringList.h"
10 
11 
12 namespace rrc
13 {
14  class StringList;
15  using std::vector;
16  using std::string;
17 
22  class C_DECL_SPEC ArrayList
23  {
24  protected:
25  public:
26  vector< ArrayListItemBase* > mList; //List of ArrayListItemBase items
27 
28  public:
29  ArrayList();
30  ArrayList(const ArrayList& cpyMe);
31  ArrayList(const string& lbl, const StringList& stringList);
32  ArrayList(const string& lbl, const ArrayList& stringList);
33  ~ArrayList();
34  unsigned int Count() const;
35  void Clear();
36  void Add(const int& item);
37  void Add(const double& item);
38  void Add(const string& item);
39  void Add(const ArrayList& item);
40  void Add(const StringList& list);
41  void Add(const string& lbl, const StringList& list);
42  void Add(const string& lbl, const ArrayList& list);
43 
44 
45  const ArrayListItemBase& operator[](int pos) const;
46  ArrayListItemBase& operator[](int pos);
47  void operator = (const ArrayList& rhs);
48  StringList GetStringList(const string& lName);
49  StringList GetStringList(const int& index);
50  string GetString(const int& index);
51  string AsString();
52  };
53 
54  C_DECL_SPEC std::ostream& operator<<(std::ostream& stream, const ArrayList& list);
55 
57 }
58 #endif
roadRunner C wrappers 2012