Commit Graph

351 Commits

Author SHA1 Message Date
Tristan Penman
05ba5bf711 Update RequiredConstraint to use custom allocator, with better encapsulation 2016-02-02 15:06:16 -08:00
Tristan Penman
a0e1a2f74a Add custom allocator constructor to UniqueItemConstraint 2016-02-02 15:06:15 -08:00
Tristan Penman
00e5c051f1 Update TypeConstraint to use custom allocator for internal list of sub-schemas 2016-02-02 15:06:15 -08:00
Tristan Penman
000a1efc9a Fix errors in Doxygen comments 2016-02-02 15:06:15 -08:00
Tristan Penman
db33cb833f Update PatternConstraint to use custom allocator for pattern string 2016-02-02 15:06:15 -08:00
Tristan Penman
2bb7ce19b2 Fix bug caused by ValidationVisitor incorrectly storing target adapter by reference 2016-02-02 15:06:15 -08:00
Tristan Penman
995fc96b0d Add constructor for custom alloc and free functions to SingularItemsConstraint 2016-02-02 15:06:15 -08:00
Tristan Penman
2ecb9c8b6b Add comments to functors in ValidationVisitor 2016-02-02 15:06:15 -08:00
Tristan Penman
579b0708ee Split ItemsConstraint into SingularItemsConstraint and LinearItemsConstraint, using CustomAllocator where necessary 2016-02-02 15:06:15 -08:00
Tristan Penman
a02048cfcf Use ValidateSubschemas functor for AllOfConstraint 2016-02-02 15:06:15 -08:00
Tristan Penman
c53268ba77 Update OneOfConstraint to use custom allocator, with better encapsulation 2016-02-02 15:06:15 -08:00
Tristan Penman
d534c49393 Update AllOfConstraint and AnyOfConstraint classes to use custom allocator 2016-02-02 15:06:15 -08:00
Tristan Penman
c54bf3ba87 Fix const-ness of == and != operators in CustomAllocator 2016-02-02 15:06:15 -08:00
Tristan Penman
40df802ba8 Add arguments for set and map constructors to compile without C++11 extensions 2016-02-02 15:06:15 -08:00
Tristan Penman
b7e33b249a Remove unwanted propagate_on_container_move_assignment declaration from CustomAllocator 2016-02-02 15:06:15 -08:00
Tristan Penman
c7f2f9b802 Refactor DependenciesConstraint to use custom allocator, hidden behind a more robust encapsulation strategy 2016-02-02 15:06:14 -08:00
Tristan Penman
76f8655d21 Allow use of custom alloc/free functions within Schema class for allocation of memory for Subschemas 2016-02-02 15:06:14 -08:00
Tristan Penman
49fa41ba23 Allow use of custom alloc/free functions within Subschema class, specifically for allocating memory for Constraints 2016-02-02 15:06:14 -08:00
Tristan Penman
99455298d8 Disable copy assignment and copy construction in Subschema class 2016-02-02 15:06:14 -08:00
Tristan Penman
b1755309d2 Refactor memory management for schemas and constraints to improve API and allow for future improvements 2016-02-02 15:06:14 -08:00
Tristan Penman
015d463d0c Basic memory management for Subschema instances in Schema class 2016-02-02 15:06:14 -08:00
Tristan Penman
504d8f426e Merge branch 'update-travis-ci-build' 2016-02-02 11:38:59 -08:00
Tristan Penman
9c6e4951fd Set compiler before running Travis build script 2016-02-02 11:24:24 -08:00
Tristan Penman
0f7a4cdf8b Do not add apt repository for boost-latest 2016-02-02 11:03:18 -08:00
Tristan Penman
3a7055265e Update Travis CI build to use Ubuntu trusty; based on build config from nlohmann/json 2016-02-02 10:50:33 -08:00
Tristan Penman
a2b119eff4 Update Travis CI build script to include verbose make output in build log 2016-02-02 08:48:03 -08:00
Tristan Penman
d2e906e63b Add some debug output to Travis CI build script 2016-02-02 08:26:18 -08:00
Tristan Penman
8ee5ccbbcf Add link to nlohmann/json to README file 2016-02-02 08:14:24 -08:00
Tristan Penman
4dd19d6e5a Merge branch 'btolfa-modern-cpp-json' with minor changes 2016-02-02 08:11:52 -08:00
Tristan Penman
3e0a2d667e Add #pragma once to header files 2016-02-02 08:11:03 -08:00
Tristan Penman
4c384420c7 Add new files for nlohmann/json to Xcode project 2016-02-02 08:07:19 -08:00
Tristan Penman
491bafe256 Minor stylistic changes for consistency with existing code 2016-02-02 08:05:57 -08:00
Tristan Penman
3fa4807bcf Update travis build script to add -DBOOST_NO_CXX11_ALLOCATOR compiler flag for clang++ builds 2016-02-02 07:54:45 -08:00
Tengiz Sharafiev
f88cc803cd Implement test adapter comparison for nlohmann/json 2016-02-02 17:50:35 +03:00
Tengiz Sharafiev
8b069ccd23 Implement nlohmann/json utils 2016-02-02 17:50:35 +03:00
Tengiz Sharafiev
c1ac8ba194 Implement adapter for nlohmann/json 2016-02-02 17:50:35 +03:00
Tengiz Sharafiev
d8e217cb60 Implement test for nlohmann/json adapter 2016-02-02 17:50:35 +03:00
Tengiz Sharafiev
992fa11736 Add empty header from nlohmann/json adapter
Based on json11_adapter.hpp
2016-02-02 17:50:35 +03:00
Tengiz Sharafiev
5959c31172 Add nlohman/json library
https://github.com/nlohmann/json
2016-02-02 17:50:35 +03:00
Tristan Penman
f6476167b5 Update README to include link to json11 2016-02-01 11:38:50 -08:00
Tristan Penman
a1d330e285 Merge branch 'hotwatermorning-master' with minor changes 2016-01-29 17:59:27 -08:00
Tristan Penman
8c35752f50 Update builds in Xcode project to use project defaults for deployment target and whether to strip debug symbols 2016-01-29 17:31:43 -08:00
Tristan Penman
564f9df30f Remove redundant const references that didn't really aid readability 2016-01-29 17:30:43 -08:00
Tristan Penman
b9570e92c1 Minor tweak to capitalisation of json11 in comment 2016-01-29 17:30:11 -08:00
Tristan Penman
69c855cbfd Add json11 library to Xcode project files 2016-01-28 19:35:38 -08:00
hotwatermorning
94ea214bb0 Fix CMakeLists.txt to use json11 if compiler supports c++11. 2016-01-28 13:35:44 +09:00
hotwatermorning
57ed4783e3 Merge branch 'master' of https://github.com/tristanpenman/valijson 2016-01-28 13:18:54 +09:00
hotwatermorning
303332a209 Disable json11 unless VALIJSON_BUILD_CXX11_ADAPTERS macro is defined. 2016-01-28 13:16:08 +09:00
Tristan Penman
3117ce1100 Suppress output from pushd and popd in travis build script 2016-01-27 10:16:14 -08:00
Tristan Penman
b7bf364b98 Move Travis CI build steps to separate script that can build/run tests with C++11 enabled (when compiled with clang) 2016-01-27 10:12:05 -08:00