summaryrefslogtreecommitdiff
path: root/decuda_to_ptxplus/stringList.h
diff options
context:
space:
mode:
authorJimmy Kwa <[email protected]>2010-10-28 12:07:29 -0800
committerJimmy Kwa <[email protected]>2010-10-28 12:07:29 -0800
commit0586c55d7688f492d5264cb9299cf00ff73d3df7 (patch)
treeef1ecc58933398e333f16dc56915bdffc64ef422 /decuda_to_ptxplus/stringList.h
parent0efd3c00f5611bfa82b01d87d175122388d621cc (diff)
used p4 integrate to copy decuda_to_ptxplus into the distribtion folder. Edited baseline_ptxplus.config so the ptxplus regression runs properly.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7942]
Diffstat (limited to 'decuda_to_ptxplus/stringList.h')
-rw-r--r--decuda_to_ptxplus/stringList.h34
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();
+};