Commit graph

216 commits

Author SHA1 Message Date
syntheticpp
aab36b5ebb patch undefined uintptr_t, thx to Regis Desgroppes
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@609 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-17 20:22:14 +00:00
syntheticpp
2dd3452a84 gcc: specialization only in the correct namespace, thx to Sam Miller
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@608 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-15 08:47:19 +00:00
syntheticpp
e816b5bc78 doxygen fixes
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@604 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-08 18:33:38 +00:00
syntheticpp
ed8237ac69 doxygen fixes
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@603 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-08 18:22:42 +00:00
syntheticpp
d72b2ff1b3 replace tabs with 4 spaces in all files
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@600 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-08 17:07:20 +00:00
syntheticpp
00011a8634 add Register.h
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@597 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-08 16:50:53 +00:00
syntheticpp
57cbca7429 remove second $
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@593 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-08 16:41:38 +00:00
syntheticpp
e9711d3cfe add documenation
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@592 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-08 16:39:27 +00:00
syntheticpp
a08b05e131 add gcc export specifier
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@587 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-03 15:23:35 +00:00
syntheticpp
bc355b1b0a also compile with gcc
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@583 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-03 11:58:24 +00:00
syntheticpp
a28d4d6ddd don't compile with incomplete types
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@579 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-02 09:55:37 +00:00
syntheticpp
ab94f134e4 add documenation how to avoid the -deletion of pointer to incomplete type- error
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@577 7ec92016-0320-0410-acc4-a06ded1c099a
2006-03-01 15:20:19 +00:00
syntheticpp
867fb85151 undo disabling checking, remove warnings, many thanks to Sam Miller
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@574 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-28 16:55:56 +00:00
syntheticpp
9eb276e401 fix wrong RejectNull implementation, thanks to Sam Miller
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@573 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-28 12:59:59 +00:00
syntheticpp
5c225a1935 add export specifier
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@572 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-28 11:13:20 +00:00
syntheticpp
83046e76e4 add new line at the end of file
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@569 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-28 10:33:11 +00:00
syntheticpp
93f7324b36 don't use __declspec on non win32 systems
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@568 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-28 10:32:07 +00:00
syntheticpp
4b98d7cc4b replace tabs
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@567 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-28 10:31:01 +00:00
syntheticpp
c80e88d8c0 add singleton object getter function template
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@566 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-28 10:30:17 +00:00
syntheticpp
4fbed79847 add support of loki.dll
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@564 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-27 19:59:20 +00:00
syntheticpp
f987e34c91 make it possible for Functor not to be a small object because it introduces sometimes problems, add documentation
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@562 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-27 18:53:41 +00:00
syntheticpp
8d18124dc8 guard including
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@557 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-26 23:39:59 +00:00
syntheticpp
8139b0efdb add constness policy to doc
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@556 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-25 13:48:54 +00:00
syntheticpp
d9a835a2d5 add const member function OnDereference to non static RejectNull policies
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@550 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-25 13:01:40 +00:00
rich_sposato
9f532a3ea0 Moved a monolithic base class from header file to new source file.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@548 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-25 01:52:17 +00:00
rich_sposato
2c0f44456f Fixed typo.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@539 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-20 21:56:06 +00:00
rich_sposato
4a46d84c35 Removed struct Locking - no longer needed.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@538 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-20 21:45:40 +00:00
syntheticpp
9a013e8905 gcc needs the template parameter, gcc warns about missing virtual destructor (because there is already a virtual function)
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@536 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-20 16:08:32 +00:00
rich_sposato
059eba4ae1 Moved Const-policy structs from SmartPtr.h to ConstPolicy.h.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@535 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-19 22:04:28 +00:00
rich_sposato
1c4109e72d Added explicit call to base copy-constructor. Changed base class from
SmallObject to SmallValueObject.


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@534 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-18 19:37:40 +00:00
syntheticpp
87efaadca0 doc: ByRef is part of ScopeGuard
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@532 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-14 12:12:34 +00:00
syntheticpp
51335c7899 don't break old ScopeGuard code
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@531 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-14 12:11:06 +00:00
syntheticpp
1cd7d08d7c rename SmartPtr-ByRef and ScopeGuard-ByRefHolder into RefToValue and move it to loki/RefToValue.h
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@530 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-14 11:54:46 +00:00
rich_sposato
261f5f3cc0 Fixed bug 1425890. Last SmartPtr in linked chain NULLs its prev & next
pointers to prevent infinite recursion.  Added asserts.


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@527 7ec92016-0320-0410-acc4-a06ded1c099a
2006-02-08 18:12:29 +00:00
syntheticpp
9412bbe3a3 use policies from SmartPtr.h, clean up
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@526 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-30 20:33:01 +00:00
syntheticpp
afed2567d1 replace tabss
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@524 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-30 20:07:38 +00:00
syntheticpp
9166ca1eeb add ArrayStorage and propagating constness policies
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@523 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-30 20:01:37 +00:00
syntheticpp
147eca6930 replace implementation with a auto-create and propagating-const wrapper for smart pointers which auto delete the holded pointer on destruction
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@522 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-28 20:13:57 +00:00
syntheticpp
698214fb58 replace unsigned int with the platform independent uintptr_t to make it more 64bit portable, and work around for mac gcc 4.0.0 bug in assert
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@521 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-27 08:58:17 +00:00
syntheticpp
b98b203765 remove wrong 'typename'
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@520 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-26 14:28:59 +00:00
syntheticpp
853d58a218 add support of deep constness, only supported by (future) Loki::SmartPtr, not supported by boost::shared_ptr and plain pointer. Maybe deep constness forces a redesign of Pimpl. Is there a way to support deep constness by a rimpl?
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@517 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-23 17:23:46 +00:00
syntheticpp
02709b67ec a -pedantic fix
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@515 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-22 15:33:41 +00:00
syntheticpp
2dc4c649e0 use macro LOKI_DEFAULT_MUTEX for Mutex default value, defined in Threads.h
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@514 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-22 13:37:33 +00:00
syntheticpp
e3dc79f363 add additional template parameter for the changed threading classes
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@513 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-22 13:31:45 +00:00
syntheticpp
7dc0df52d0 add additional template parameter for the changed threading classes
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@512 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-22 00:44:17 +00:00
syntheticpp
69c31ce7f3 add dummy Mutex for single threading and additional template parameter
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@511 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-22 00:32:29 +00:00
syntheticpp
5e5965fdc1 replace LockPtr/ConstLockPtr implementation with a template policy based one
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@508 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-21 14:13:48 +00:00
syntheticpp
6a86ae304a complete usage of Loki::Mutex, gcc can't compile without these corrections
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@506 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-21 14:11:09 +00:00
syntheticpp
d032ef4528 don't compile Mutex when multi threading is disabled
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@505 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-21 13:09:45 +00:00
rich_sposato
48ec640065 Removed volatile keyword from 2 data members.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@504 7ec92016-0320-0410-acc4-a06ded1c099a
2006-01-21 01:05:44 +00:00