-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
executable file
·116 lines (108 loc) · 3.22 KB
/
README
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
the descriptions:
It's a library about shared memory called "TimePass".It imitate the stl and redis and has these containers (array, list ,doubly_list, queue, set, multiset, hashset, multihashset, map, multimap, hashmap, multihashmap).
the directorys:
|-- automake.sh
|-- clean.sh
|-- example
| |-- array
| | |-- array.cpp
| | `-- CMakeLists.txt
| |-- CMakeLists.txt
| |-- doublylist
| | |-- CMakeLists.txt
| | `-- doublylist.cpp
| |-- hashlist
| | |-- CMakeLists.txt
| | `-- hashlist.cpp
| |-- hashmap
| | |-- CMakeLists.txt
| | `-- hashmap.cpp
| |-- hashset
| | |-- CMakeLists.txt
| | `-- hashset.cpp
| |-- list
| | |-- CMakeLists.txt
| | `-- list.cpp
| |-- map
| | |-- CMakeLists.txt
| | `-- map.cpp
| |-- multihashmap
| | |-- CMakeLists.txt
| | `-- multihashmap.cpp
| |-- multihashset
| | |-- CMakeLists.txt
| | `-- multihashset.cpp
| |-- multimap
| | |-- CMakeLists.txt
| | `-- multimap.cpp
| |-- multiset
| | |-- CMakeLists.txt
| | `-- multiset.cpp
| |-- queue
| | |-- CMakeLists.txt
| | `-- queue.cpp
| `-- set
| |-- CMakeLists.txt
| `-- set.cpp
`-- src
|-- CMakeLists.txt
|-- global
| |-- CMakeLists.txt
| |-- include
| | `-- error.h
| `-- src
| `-- error.cpp
`-- shm
|-- CMakeLists.txt
|-- include
| |-- common_list.h
| |-- shm_array.h
| |-- shm_base.h
| |-- shm_config.h
| |-- shm_doublylist.h
| |-- shm_hash.h
| |-- shm_hashlist.h
| |-- shm_hashmap.h
| |-- shm_hashrbtree.h
| |-- shm_hashset.h
| |-- shm_list.h
| |-- shm_macro.h
| |-- shm_map.h
| |-- shm_multihashmap.h
| |-- shm_multihashset.h
| |-- shm_multimap.h
| |-- shm_multiset.h
| |-- shm_queue.h
| |-- shm_rbtree.h
| `-- shm_set.h
`-- src
`-- shm_base.cpp
/example: this directory has all the test examples of all containers.
/src: this directory has all the containers
/automake.sh: make and install shell, it's very convenient.
/clean.sh remove the cmake and install files.
the library's requires:
1. CMAKE 2.6 above:
you can make the project as below(you must have gone into the project's root directory):
cd src
mkdir build
cd build
cmake ..
make && make install
the libs and includes are installed into the /usr/local/TIME_PASS
you can make the examples as below:
cd example
mkdir build
cd build
cmake ..
make && make install
the excutable files are installde into exaple/bin
2.if you want to make project easily, you can execute as below:
sh automake.sh
the shell code is strictly passed in bash.
3.the shared memory is based on posix shared memory apis. so it's used in most of linux and unix operating system, but not windows.
4. if you want to run the example with '-r' argument, you should intall the graphviz. because the comman is used to convert the data structure into pictures with the dot language.
the copyleft:
The code is protected by BSD LINENCE. You can't use it in commercial activicties directly.
the contract: