Commit graph

240 commits

Author SHA1 Message Date
syntheticpp
40cc0f1923 add Visitor example
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@395 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-02 10:54:13 +00:00
syntheticpp
b302ff3049 add visitor example to build process
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@394 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-02 10:51:27 +00:00
syntheticpp
0dd0c7089b add Visitor example
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@392 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-02 10:38:25 +00:00
syntheticpp
bf9071ebdb generate library also with the ms toolkit
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@383 7ec92016-0320-0410-acc4-a06ded1c099a
2005-12-19 07:54:40 +00:00
rich_sposato
6b6854d53e Added checks for whether loki's allocator is corrupted.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@379 7ec92016-0320-0410-acc4-a06ded1c099a
2005-12-08 22:23:33 +00:00
rich_sposato
fb0f712fde Changed template parameter values for SmallObject allocator.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@376 7ec92016-0320-0410-acc4-a06ded1c099a
2005-12-08 21:03:02 +00:00
syntheticpp
6b5d0e2629 add speed comparison
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@375 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-29 14:20:23 +00:00
syntheticpp
7eb9f2e6ae disable %p tests due to different snprintf implementations
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@374 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-29 13:46:20 +00:00
syntheticpp
fa05da94c0 astyle --style=ansi
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@373 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-29 13:20:54 +00:00
syntheticpp
3b596259ec make output code more readable
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@372 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-29 13:17:20 +00:00
syntheticpp
75722359cf point operator added
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@371 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-20 13:16:04 +00:00
syntheticpp
d26ecb6716 change documentation of function
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@365 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-16 13:36:38 +00:00
syntheticpp
f10f61534c add removed tests with NoDestroy plolicy
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@358 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-13 13:39:15 +00:00
syntheticpp
735cde8666 protect private data, add std::vector<IdType> RegisteredIds()
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@356 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-12 16:52:36 +00:00
syntheticpp
1c8bce4d43 remove warnings and adjust code to new default lifetimes of SmallObjects
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@354 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-12 15:13:36 +00:00
syntheticpp
0fc58a0e86 change lifetime policy DieOrder to a msvc7.1 compilable version. Make this the default lifetime for SmallObject
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@353 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-07 12:06:43 +00:00
syntheticpp
4e97accb6a disable FollowIntoDeath/DieOrder lifetime policies when using the msvc 7.1 compiler, bug article: 839821 'Microsoft has confirmed that this is a problem..'
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@352 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-05 17:43:55 +00:00
syntheticpp
cff0fad314 use new singleton lifetime policies
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@346 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-02 15:00:38 +00:00
syntheticpp
8d8988f5c0 use new singleton lifetime policies
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@345 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-02 14:15:44 +00:00
syntheticpp
5bbe746eee use new singleton lifetime policies
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@344 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-02 14:11:18 +00:00
syntheticpp
6c8b1660b4 use new singleton lifetime policies
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@343 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-02 13:58:18 +00:00
rich_sposato
6f647c1a21 Added explanatory comment about why class has no new [] and delete []
operators.  Removed other comment which is now useless.


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@341 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-02 01:46:04 +00:00
syntheticpp
d805e8d90b apply new lifetime policy to avoid crash on exit in test/Factory
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@340 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-01 11:38:19 +00:00
syntheticpp
a17791f2c8 test program for lifetime policies FollowIntoDeath and DieOrder
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@339 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-01 11:15:22 +00:00
syntheticpp
a7687a05a1 add lifetime policies to manage singleton lifetime dependencies: FollowIntoDeath and DieOrder. Change SmallObject.h to avoid memory leaks by default
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@338 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-01 11:11:52 +00:00
syntheticpp
698ffbff54 disable mt classes when threading is disabled
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@337 7ec92016-0320-0410-acc4-a06ded1c099a
2005-11-01 11:03:31 +00:00
syntheticpp
a2d383198c test correct also when boost is disabled
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@336 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-30 14:33:33 +00:00
syntheticpp
41d2cb34f5 disable threading because the sdk (windows.h) is not detected automatically by the batch scripts
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@335 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-30 14:22:31 +00:00
syntheticpp
7fe4c81ff0 replace tabs space
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@334 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-30 14:03:23 +00:00
syntheticpp
570f0ed652 make disabling the TYPELIST macros possible
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@333 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-30 13:49:44 +00:00
syntheticpp
ba524baf5a replace with new implementation
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@332 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-29 12:38:22 +00:00
syntheticpp
de09eec49b find loki include files without a correct sreach pathand some small fixes
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@331 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-29 10:21:46 +00:00
syntheticpp
cb9492fca9 new bechmark with: new, SmallObj, SmallValueObj, boost::object_pool, malloc and std::allocator
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@329 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-27 19:11:01 +00:00
syntheticpp
9e333d1dec gcc fix
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@328 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-27 19:10:32 +00:00
syntheticpp
4978cfb9d8 make object size more flexible
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@327 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-26 23:30:06 +00:00
rich_sposato
b078e019be Added comparison to boost::pool memory allocator.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@325 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-26 00:41:00 +00:00
rich_sposato
b8142d7acc Added CVS keywords and header lines.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@324 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-26 00:38:49 +00:00
rich_sposato
71e9d5aa2d Added seconds back to output.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@323 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-26 00:33:06 +00:00
syntheticpp
8f382ba936 Table is out of date
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@322 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-24 20:51:38 +00:00
syntheticpp
23ade9b6f0 small changes for Threads; add compile test for Threads.h
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@321 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-24 20:35:12 +00:00
syntheticpp
da979a7e0e add boost/TR1 like usage of Functor, with a test program from boost 1.33
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@320 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-24 15:40:22 +00:00
syntheticpp
7d66b82b9a bug fix: Unix compilation problems
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@318 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-24 12:13:07 +00:00
rich_sposato
2d4f6a82e6 Removed file which is not needed for project.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@312 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-17 18:04:44 +00:00
syntheticpp
a60cd00348 add test for static member variables
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@309 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-17 09:43:45 +00:00
syntheticpp
d1a5bd2ec8 add SmallSingleton to build process
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@308 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-17 09:03:54 +00:00
syntheticpp
a61d7f7127 add DeletableSingleton policy and examples from Curtis Krauskopf's CUJ article 'Creating Dynamic Singletons & the Loki Library' - www.decompile.com
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@307 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-17 08:43:42 +00:00
syntheticpp
6c7cedb361 add example from Curtis Krauskopf's CUJ article 'Creating Dynamic Singletons & the Loki Library' - www.decompile.com
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@306 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-17 08:24:50 +00:00
rich_sposato
b6916ef5fe Adding SmallSingleton project to CVS.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@301 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-14 20:28:51 +00:00
rich_sposato
ea12936779 Adding SmallSingleton test project to CVS.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@300 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-14 18:48:10 +00:00
rich_sposato
7cebdb5f96 Added cvs keywords.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@299 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-14 18:35:06 +00:00
rich_sposato
01349cc358 Added program to test how compiler uses default new and delete operators.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@295 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-13 00:40:38 +00:00
syntheticpp
ebde306337 Bug [ 1314453 ] AssocVector<>: hinted insert does not preservedering. Thanks to Christopher Twigg
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@294 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-10 15:02:57 +00:00
syntheticpp
98c07576c8 adding template based list/sequence implementation, should replace LOKI_TYPELIST_, update some files
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@292 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-06 17:50:51 +00:00
syntheticpp
1eb831f009 calculate also speed-up factor
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@290 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-06 10:17:56 +00:00
rich_sposato
4e035929fd Added tests for new [] and delete [].
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@289 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-06 00:20:24 +00:00
syntheticpp
bf144a940b remove some unnecessary code
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@287 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-05 22:43:00 +00:00
syntheticpp
3156804c37 update build process
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@285 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-05 18:14:21 +00:00
syntheticpp
b44c50216e add OrderedStatic test
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@284 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-05 17:57:54 +00:00
syntheticpp
d0e75dd3b1 add Longevity test
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@281 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-05 09:11:58 +00:00
syntheticpp
dee53adb01 update msvc build process
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@277 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-29 08:09:17 +00:00
rich_sposato
98734a38e9 Added comments saying how to test array forms of new and delete.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@276 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-27 17:04:30 +00:00
syntheticpp
dcb1d09cd5 undo msvc project-file changes
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@270 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-26 08:43:29 +00:00
syntheticpp
6e99716c13 move macros into LOKI_ namespace
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@269 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-26 07:33:05 +00:00
syntheticpp
2ee111e98a upate to general makefiles
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@263 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-25 00:06:40 +00:00
syntheticpp
09022968ca update Dev-C++ project files
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@262 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-25 00:06:27 +00:00
syntheticpp
b38c147bc3 upate to general makefiles
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@261 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 23:47:39 +00:00
syntheticpp
62de511210 new version of TypeTest2 from Kalle Rutanen
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@260 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 23:38:58 +00:00
syntheticpp
79f4f270a5 gcc fix
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@258 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 23:09:13 +00:00
syntheticpp
c6e143aba7 add general gcc makefiles
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@257 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 23:08:48 +00:00
syntheticpp
4043617da0 remove mingw specific makefiles
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@256 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 23:08:20 +00:00
syntheticpp
9429d59bd4 update include path
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@255 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 16:50:33 +00:00
syntheticpp
36a07386f0 update include path
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@254 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 16:39:00 +00:00
syntheticpp
ef9dd3d9fc move Factory example
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@252 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 16:11:08 +00:00
syntheticpp
6c0ebe3692 is it really binary?
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@251 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 15:49:40 +00:00
syntheticpp
0da44abd31 ove RegressionTest
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@249 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 15:25:20 +00:00
syntheticpp
d58ac310b5 try it again
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@248 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 15:21:31 +00:00
syntheticpp
96109fc2fc move directory
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@247 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 15:19:39 +00:00
syntheticpp
0aa5e9f5c1 move directory
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@246 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-24 15:11:56 +00:00
syntheticpp
ac5f2fe935 compare /MT with /MD
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@242 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-16 08:13:29 +00:00
syntheticpp
34ae78978c disable debug code, force compiling
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@241 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-16 08:13:10 +00:00
syntheticpp
657f03db57 fix typing mistake which kills ALL speedup
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@240 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-16 07:22:24 +00:00
syntheticpp
7dac470d9f add mingw make files
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@235 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-15 14:33:27 +00:00
syntheticpp
2221554050 add build process for msvc also the toolkit (no nmake, no lib)
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@234 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-15 14:33:01 +00:00
syntheticpp
5c10a8b01c add mingw make files
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@233 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-15 13:52:16 +00:00
syntheticpp
e9b0d29ab9 add build process for msvc also the toolkit (no nmake, no lib)
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@232 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-15 13:46:57 +00:00
syntheticpp
8e64258f52 add buildprocess for msvc also the toolkit (no nmake, no lib)
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@231 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-15 12:02:46 +00:00
rich_sposato
3410d5ae8f Added call to the allocator's new_handler to trim memory as part of test.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@230 7ec92016-0320-0410-acc4-a06ded1c099a
2005-09-09 00:25:48 +00:00
syntheticpp
01656e16cc adding small object benchmark
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@221 7ec92016-0320-0410-acc4-a06ded1c099a
2005-08-27 13:05:20 +00:00
syntheticpp
cdb70a208b small gcc and msvc8 corrections
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@220 7ec92016-0320-0410-acc4-a06ded1c099a
2005-08-27 12:47:56 +00:00
syntheticpp
af8bdb7ca2 add test programs
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@216 7ec92016-0320-0410-acc4-a06ded1c099a
2005-08-27 10:38:52 +00:00