diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-10-15 15:12:31 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-10-15 15:12:31 +0000 |
commit | 93c028162318a00b9bd03fc4a48383f830cc529d (patch) | |
tree | 26a2edd7b3e12922d046cfbc41a40fce819c56d9 /src/list.h | |
parent | 867dae89929a11a421ec21af71d494ad0ecc1963 (diff) | |
download | libbu++-93c028162318a00b9bd03fc4a48383f830cc529d.tar.gz libbu++-93c028162318a00b9bd03fc4a48383f830cc529d.tar.bz2 libbu++-93c028162318a00b9bd03fc4a48383f830cc529d.tar.xz libbu++-93c028162318a00b9bd03fc4a48383f830cc529d.zip |
RingBuffer is now SharedCore. I think that's all the container classes, there
may be a few other things that should change too, we'll see.
Played with doxygen docs on List, we can actually use @cond to remove things
from the docs, either permenently or conditionally, and so I could trick it into
making all of the sharedcore classes inherit from the same SharedCore in the
docs instead of different ones. Or, just not inherit from SharedCore at all.
What to do...? :-P
I also got rid of ListHash, it wasn't working out yet anyway.
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | namespace Bu | 17 | namespace Bu |
18 | { | 18 | { |
19 | /** @cond DEVEL */ | ||
19 | template<typename value> | 20 | template<typename value> |
20 | struct ListLink | 21 | struct ListLink |
21 | { | 22 | { |
@@ -185,6 +186,7 @@ namespace Bu | |||
185 | } | 186 | } |
186 | } | 187 | } |
187 | }; | 188 | }; |
189 | /** @endcond */ | ||
188 | 190 | ||
189 | /** | 191 | /** |
190 | * Linked list template container. This class is similar to the stl list | 192 | * Linked list template container. This class is similar to the stl list |
@@ -197,14 +199,15 @@ namespace Bu | |||
197 | *@param value (typename) The type of data to store in your list | 199 | *@param value (typename) The type of data to store in your list |
198 | *@param valuealloc (typename) Memory Allocator for your value type | 200 | *@param valuealloc (typename) Memory Allocator for your value type |
199 | *@param linkalloc (typename) Memory Allocator for the list links. | 201 | *@param linkalloc (typename) Memory Allocator for the list links. |
202 | *@extends SharedCore | ||
200 | *@ingroup Containers | 203 | *@ingroup Containers |
201 | */ | 204 | */ |
202 | template<typename value, typename valuealloc=std::allocator<value>, | 205 | template<typename value, typename valuealloc=std::allocator<value>, |
203 | typename linkalloc=std::allocator<struct ListLink<value> > > | 206 | typename linkalloc=std::allocator<struct ListLink<value> > > |
204 | class List : public SharedCore< | 207 | class List /** @cond */ : public SharedCore< |
205 | List<value, valuealloc, linkalloc>, | 208 | List<value, valuealloc, linkalloc>, |
206 | ListCore<value, valuealloc, linkalloc> | 209 | ListCore<value, valuealloc, linkalloc> |
207 | > | 210 | > /** @endcond */ |
208 | { | 211 | { |
209 | private: | 212 | private: |
210 | typedef struct ListLink<value> Link; | 213 | typedef struct ListLink<value> Link; |