File: SortedListTest.h

package info (click to toggle)
pwlib 1.10.10-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 15,064 kB
  • ctags: 15,167
  • sloc: cpp: 112,149; ansic: 6,061; sh: 2,920; makefile: 1,054; yacc: 861; asm: 161
file content (41 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (5)
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
35
36
37
38
39
40
41

#include <ptlib.h>
#include <ptlib/safecoll.h>

class SortedListTest:public PProcess {
  PCLASSINFO(SortedListTest, PProcess);
public:
  SortedListTest();
  void Main();
};


class DoSomeThing:public PThread {
  PCLASSINFO(DoSomeThing, PThread);
public:
  DoSomeThing(PINDEX _index);
  void Main();
private:
  PINDEX index;
  PSortedList<PString> list;
};

class PSafeString:public PSafeObject {
  PCLASSINFO(PSafeString, PSafeObject);
  PSafeString(const PString & _string);
  void PrintOn(ostream &strm) const;
private:
  PString string;
};

class DoSomeThing2:public PThread {
  PCLASSINFO(DoSomeThing2, PThread);
public:
  DoSomeThing2(PINDEX _index);
  void Main();
private:
  PINDEX index;
  PSafeSortedList<PSafeString> list;
};