Commit Graph

2848 Commits

Author SHA1 Message Date
c80d1723bf Use referencing iterator for array iteration 2012-04-13 11:30:50 +10:00
8153d048c2 Add referencing_iterator to build
A simple iterator which converts a random access iterator to a
dereferencable type into a random access iterator to a reference of said
type.
2012-04-13 11:30:50 +10:00
18b862350a Add traits helpers for dereferencable types 2012-04-13 11:30:50 +10:00
af05331358 Move sign function to maths.hpp 2012-04-13 11:23:55 +10:00
fe77bf9d7d Add and use type_error for type conversion failure 2012-04-13 11:23:13 +10:00
86b5abde08 Add json::null::as_null implementation 2012-04-13 11:15:08 +10:00
c0476c553e Use unique_ptr for all compound node children 2012-04-12 16:09:49 +10:00
4a092f92cb Update header licences and copyright dates 2012-04-12 16:09:02 +10:00
45d8cfffbf Rename "to_<type>" functions to "as_<type>"
'to' implies a copy, 'as' implies reinterpret.
2012-04-12 16:08:06 +10:00
e6ad6c2db3 Use check{_hard,_soft} in preference to assert 2012-04-12 16:06:28 +10:00
040e565a18 Split json::error into parse and schema errors 2012-04-12 14:36:05 +10:00
937d9522e0 Add simple json validator application 2012-04-12 14:19:01 +10:00
4ab352036d Add simple json reformatter utility 2012-04-12 14:19:01 +10:00
e44e629ba7 Add c++0x to AM_CXXFLAGS 2012-04-12 14:19:01 +10:00
3a37fcde35 Add convenience wrapper json::write function 2012-04-12 14:19:01 +10:00
d42fdfc771 Add indentation to json output 2012-04-12 14:09:33 +10:00
a13c1b9183 Unneeded namespace qualification for json::parse 2012-04-12 14:08:41 +10:00
0fe4726d9f Add 'unused' annotation 2012-04-12 14:08:01 +10:00
f75c514d96 Add scoped ostream indenter class 2012-04-12 14:07:46 +10:00
40267cad05 Add macro that creates unique variable names 2012-04-12 14:07:46 +10:00
57bc1af1ae Explicitly initialise to remove compile warning
IP temporary variables shouldn't be used before initialisation due to
the parsing rules, but explicitly assigning them dummy values makes GCC
stop complaining.
2012-04-11 15:54:52 +10:00
134ab02ba6 Change ragel index variables to avoid signed warns 2012-04-11 15:49:11 +10:00
5f6504de73 Merge perlin parameter class updates 2012-04-11 15:25:10 +10:00
043ee6d31e Make header guards consistent 2012-04-11 15:21:00 +10:00
cc2c726801 Repurpose rotate function as rotate_left 2012-04-11 15:21:00 +10:00
a3d965b917 Change licencing from waif to libgim 2012-04-11 15:21:00 +10:00
c2ca63e024 Add unsigned long instantiation of extent and region 2012-02-09 14:55:14 +11:00
f009e96b91 Use the lerp header to pull in the correct lerp 2012-01-05 13:23:33 +11:00
9c63070718 Add various interpolation routines for perlin 2012-01-04 17:19:50 +11:00
f71f15ebf1 Add convenience typed hash functions 2012-01-04 17:19:50 +11:00
e01fcdcd59 Add bitwise rotate function 2012-01-04 17:19:50 +11:00
857dd8a111 Add simple 2d perlin noise function 2012-01-04 17:19:50 +11:00
02d5705cc3 Use the passed in data value 2012-01-04 17:16:13 +11:00
b302b510c3 Return unique_ptr from json routines 2012-01-04 17:05:40 +11:00
af97b70377 Add floating specialisations for range::random 2012-01-04 17:05:09 +11:00
f499779ffc Use forwarding for make_unique arguments 2012-01-04 17:04:17 +11:00
601c40a63b Instance various uint random functions 2012-01-04 17:03:49 +11:00
f07dda9116 Add a random choice from container function 2012-01-04 17:03:27 +11:00
e2b56f3b77 Add a warn macro 2012-01-04 17:03:00 +11:00
cdd1f60b0d Update tests to use the util namespace 2011-11-04 17:28:04 +11:00
6560353cb0 Add some simple checksum algorithms
* adler
* bsdsum
* crc
* fletcher
2011-11-04 17:04:42 +11:00
6b38a3486c Add a warn_if macro 2011-11-04 16:57:20 +11:00
ea50f64857 Add spherical/cartesian transforms 2011-10-29 23:14:07 +11:00
16d05e9ea6 Add to/from radian helpers 2011-10-29 23:13:47 +11:00
bd12deed4e Correctly set max for region json extractor 2011-10-29 21:44:30 +11:00
205b43b682 Add json extraction operator for vector 2011-10-29 21:17:48 +11:00
b774a6490d Add scalar multiply for colour 2011-10-29 21:17:28 +11:00
d3baffc2e5 Add json extraction operator for colour 2011-10-29 21:17:10 +11:00
0946382b71 Add vector equality operator 2011-10-29 15:07:34 +11:00
10b127415a Publically expose iterator typedef for json::array 2011-10-29 15:07:03 +11:00