Commit Graph

228 Commits

Author SHA1 Message Date
Shane Grant
a0e64ebc7b Adopting new operator() syntax 2013-06-18 16:53:02 -07:00
Shane Grant
66eb6cc86a Merge branch 'master' of git.r-c-v.com:rand/cereal
Conflicts:
	Makefile
	sandbox.cpp
2013-06-18 16:22:11 -07:00
Shane Grant
1b8dbfb96a Non default constructors now supported by pointers 2013-06-18 16:16:24 -07:00
Randolph Voorhies
8615e52a54 Base class tracking for deadly diamond of death 2013-06-18 15:37:44 -07:00
Randolph Voorhies
5c3c162fd1 Added cereal::access for private members 2013-06-17 17:57:36 -07:00
Randolph Voorhies
c4bb0de8b1 Ending comments on namespaces 2013-06-17 16:50:10 -07:00
Randolph Voorhies
ab36753dec Removed commented couts 2013-06-17 16:30:53 -07:00
Randolph Voorhies
3201b05336 Added a cereal::Exception 2013-06-17 16:28:17 -07:00
Randolph Voorhies
18676e251f Restructuring 2013-06-17 16:17:20 -07:00
Randolph Voorhies
9961b85d6c Minor case changes 2013-06-17 16:08:03 -07:00
Randolph Voorhies
68eded48ea Took comments out of LICENSE 2013-06-17 15:51:19 -07:00
Shane Grant
6152551dd1 added license 2013-06-17 12:01:39 -07:00
Shane Grant
ddcefaf15d Specialized save/load for vectors with default allocator 2013-06-17 11:50:41 -07:00
Shane Grant
ed522117dc fixed issue with cereal load percentage. adding derived class performance 2013-06-17 11:04:45 -07:00
Shane Grant
782338cb61 Performance testing pod struct with no binary writeout.
We are significantly faster than boost (up to about twice as fast) when not just dumping binary data.  Size seems to be
negligable between the two.  Speed goes up as data gets larger.  Boost's overhead for metadata is actually pretty small
when the data types themselves are not small.  For very small data types, it might start to make a difference.
2013-06-17 10:22:27 -07:00
Shane Grant
30a1fa6d38 Adding initial performance testing
So far I've only played around with std::vector<double> for size 7 or size 1M, we are smaller when the header is a
significant portion and the same size (though always smaller due to no header) at larger sizes, but we basically run at
the same speed and same size for vectors of doubles
2013-06-16 19:10:09 -07:00
Shane Grant
e2d07a1670 Added unit tests for complex and bitset
Made all template functions for the various types inline
2013-06-16 11:31:59 -07:00
Shane Grant
0c56175a1c Adding bitset and complex, both untested
This makes us "feature complete (tm)" as far as things that look worth serializing in the standard library

just need the unit tests for these then we can profile size and speed vs boost
2013-06-15 23:26:47 -07:00
Shane Grant
adcc2532db Unit tests for std::tuple, fixed tuple serialization
Boost check for tuple serialization check could be made better, pair probably the same as well.  boost doesn't like
pairs or tuples in BOOST_CHECK_EQUAL
2013-06-15 22:54:03 -07:00
Shane Grant
d4f7c4b1e1 Adding unit tests for std::pair 2013-06-15 22:21:25 -07:00
Randolph Voorhies
4aecb595d5 Empty class elision, and priority_queue unit tests 2013-06-14 18:05:08 -07:00
Shane Grant
2ba3fe9165 Merge branch 'master' of git.r-c-v.com:rand/cereal 2013-06-14 16:20:57 -07:00
Randolph Voorhies
7c3c3781ce unit tests for priority_queue, fixed bug in priority_queue 2013-06-14 16:15:43 -07:00
Randolph Voorhies
6fc81554dc Unit tests for unordered_multiset 2013-06-14 16:12:06 -07:00
Randolph Voorhies
ce983a1bb4 Unit tests for unordered_set 2013-06-14 16:03:13 -07:00
Randolph Voorhies
8a775ecdcb Unit tests for unordered_multimap 2013-06-14 15:49:50 -07:00
Randolph Voorhies
68ada7b613 Unit tests for multimap 2013-06-14 15:39:07 -07:00
Randolph Voorhies
e2e6002f67 Unit tests for unordered_map 2013-06-14 15:35:15 -07:00
Randolph Voorhies
9ccd18fad9 Unit tests for string 2013-06-14 15:28:46 -07:00
Randolph Voorhies
84acf887bb Unit tests for stack 2013-06-14 15:04:04 -07:00
Shane Grant
618b9c5815 Added macro guard for restricting serialization type 2013-06-14 15:01:46 -07:00
Randolph Voorhies
4abde8093a Unit tests for set 2013-06-14 15:01:06 -07:00
Randolph Voorhies
dab76ebd79 Fixed template arguments in set 2013-06-14 15:00:57 -07:00
Randolph Voorhies
3691ec192a Unit tests for queue 2013-06-14 14:54:11 -07:00
Shane Grant
e66e6d38df Adding pair and tuple 2013-06-14 14:50:57 -07:00
Randolph Voorhies
6d8b3f16d4 Merge branch 'master' of git.r-c-v.com:rand/cereal
Conflicts:
	binary_archive/list.hpp
2013-06-14 14:46:17 -07:00
Randolph Voorhies
0dd44928c3 Added map unit tests.
Something funky is going on with the stream operator here, but whatever.
2013-06-14 14:45:11 -07:00
Shane Grant
156704dfe0 adding ignore rules, finished container support 2013-06-14 14:36:54 -07:00
Randolph Voorhies
57a1a8fb53 Merge branch 'master' of git.r-c-v.com:rand/cereal 2013-06-14 13:51:09 -07:00
Shane Grant
b50e0d6b2c adding unordered map, some cleanup 2013-06-14 13:47:52 -07:00
Randolph Voorhies
70225c8e31 Merge branch 'master' of git.r-c-v.com:rand/cereal
Conflicts:
	binary_archive/array.hpp
	binary_archive/forward_list.hpp
2013-06-14 13:46:20 -07:00
Randolph Voorhies
73fda0f5d9 Starting map unit tests 2013-06-14 13:45:10 -07:00
Shane Grant
3785c759c8 working on more stl functionality 2013-06-14 13:43:49 -07:00
Shane Grant
50ab9ea53f removing extra non const versions of save 2013-06-14 13:35:32 -07:00
Shane Grant
9225d1c741 Fixed error with push/pop position, works fine now 2013-06-14 13:32:54 -07:00
Shane Grant
e9d277025f const_cast for save(), seeking for binary_oarchive
Using const cast to get rid of having two versions of save (changed vector and array so far)

Initial implementation of seeking to allow saving and restoring position within a binary archive
2013-06-14 12:17:21 -07:00
Randolph Voorhies
d060da918c Added list unit tests 2013-06-13 18:45:33 -07:00
Randolph Voorhies
6821955323 Added forward_list unit tests
Also, forward_list has no .size() method. For now, we're using a linear
traversal of the container with std::distance. We may want to do
something more efficient later?
2013-06-13 18:40:57 -07:00
Randolph Voorhies
11019ef8de Adding deque unit tests 2013-06-13 18:31:29 -07:00
Randolph Voorhies
010252c1d7 Fixed serialization error in vector, added tests 2013-06-13 18:26:29 -07:00