summaryrefslogtreecommitdiff
path: root/decuda_to_ptxplus/stringList.h
blob: 5460396c814ac2db6d8e1bd6b3e119544fa4856a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
struct stringListPiece
{
	const 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();
};