609 Commits

Author SHA1 Message Date
Shane Grant
4283d1142c Update README.md 2013-06-25 23:51:59 -06:00
Shane Grant
c4b8fb092f Create README.md 2013-06-25 23:49:32 -06:00
Shane Grant
f306189215 Merge branch 'master' of git.r-c-v.com:rand/cereal 2013-06-25 14:53:09 -07:00
Shane Grant
e1fe25b66f Added a way to disambiguate serialization in cases where cereal can't figure it out on its own thanks to C++. In
access.hpp, there is now a struct called specialize which can be specialized to explicitly specify what type of
serialization a class will need.  This is mostly useful for derived classes that switch from one method of serialization
(that is member/non-member serialize vs load/split).
2013-06-25 14:51:43 -07:00
Randolph Voorhies
8bd7cd1e45 Making list templated on Archive 2013-06-25 13:43:02 -07:00
Shane Grant
514b08a2a0 sandbox playbox 2013-06-21 16:12:32 -07:00
Shane Grant
56f0561bd7 breaking out access and base_class into their own headers 2013-06-21 12:11:01 -07:00
Randolph Voorhies
6e5252c215 Need to clear containers (*set, *map) before loading them 2013-06-20 19:30:29 -07:00
Shane Grant
7af76f4c97 Added a map of vectors to the unit test 2013-06-20 17:24:03 -07:00
Shane Grant
292cc8d66d Got rid of allocator handling 2013-06-20 16:38:36 -07:00
Shane Grant
b7d00eb7b7 typo 2013-06-20 14:14:28 -07:00
Shane Grant
d4391d67eb fixed typo 2013-06-20 14:10:16 -07:00
Shane Grant
50b736eb35 removing extra includes 2013-06-20 13:31:30 -07:00
Shane Grant
ad513228f1 Moving common serialization routines into common 2013-06-20 13:27:41 -07:00
Shane Grant
d5579d696d modifying tests for new file layout 2013-06-20 11:14:33 -07:00
Shane Grant
bc790ea5ff Moving things into new directories to match generic style now made possible 2013-06-20 11:12:00 -07:00
Randolph Voorhies
27ef76de78 Added case for nullptr smart pointers 2013-06-19 19:04:21 -07:00
Randolph Voorhies
8849251bb1 More chrono unit tests 2013-06-19 18:37:06 -07:00
Shane Grant
c400a2b355 making things generic 2013-06-19 18:15:13 -07:00
Shane Grant
0e02b784be Merge branch 'master' of git.r-c-v.com:rand/cereal 2013-06-19 18:04:05 -07:00
Shane Grant
d3a53fbcb4 working on making generic 2013-06-19 18:03:54 -07:00
Randolph Voorhies
24ad0341ad Added binary enum serialization 2013-06-19 17:56:30 -07:00
Randolph Voorhies
d82ecd7b63 Fixing static_assert messages 2013-06-19 17:04:32 -07:00
Randolph Voorhies
f8502c368c Making access a class instead of struct 2013-06-19 16:48:51 -07:00
Randolph Voorhies
20ad9f5d8b Minor constructor error 2013-06-19 16:11:10 -07:00
Randolph Voorhies
c67bc00bb7 Making sure we're using size_t in load/saveBinary 2013-06-19 14:53:49 -07:00
Shane Grant
394af15ab1 added BinaryData and binary_data (to make it)
Use this instead of calling ar.saveBinary or ar.LoadBinary directly
2013-06-19 14:45:22 -07:00
Shane Grant
d5afb78fcc Adding chrono. Some docs/cleanup. NVP now works with R-values and l-values 2013-06-19 14:19:48 -07:00
Randolph Voorhies
a09841ad4d Nicer function call operator on Archives (not &) 2013-06-18 18:10:12 -07:00
Shane Grant
e40468f188 Merge branch 'master' of git.r-c-v.com:rand/cereal 2013-06-18 17:33:55 -07:00
Randolph Voorhies
47a7655eee Added boost variant serialization 2013-06-18 17:33:34 -07:00
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