diff options
Diffstat (limited to 'decuda_to_ptxplus/stringList.h')
| -rw-r--r-- | decuda_to_ptxplus/stringList.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/decuda_to_ptxplus/stringList.h b/decuda_to_ptxplus/stringList.h new file mode 100644 index 0000000..25d10f7 --- /dev/null +++ b/decuda_to_ptxplus/stringList.h @@ -0,0 +1,34 @@ +struct stringListPiece +{ + char* stringText; + + stringListPiece* nextString; +}; + + +class stringList +{ + +private: + //List size + int m_size; + + //Start is the first entry, end is the last entry + stringListPiece* m_listStart; + stringListPiece* m_listEnd; +public: + //constructor + stringList(); + + //accessors + int getSize(); + stringListPiece* getListStart(); + stringListPiece* getListEnd(); + + //mutator + int add(stringListPiece* newString); //add String to list + bool remove(int index); //remove string at index + + //print representation + void printStringList(); +}; |
