Commit Graph

630 Commits

Author SHA1 Message Date
Tristan Penman
ee2d24714a Merge branch 'refactor-memory-management' 2016-02-04 16:50:44 -08:00
Tristan Penman
03749c0498 Add details about updated memory management scheme to README 2016-02-04 16:49:02 -08:00
Tristan Penman
70f066b3f9 Only enable clang-specific pragmas when clang is actually being used 2016-02-02 22:21:08 -08:00
Tristan Penman
5085804d80 Minor variation in spelling of warning to be ignored 2016-02-02 22:15:16 -08:00
Tristan Penman
c3da89bbd7 Try ignoring -Wunused-local-typedef from within schema_parser.hpp file 2016-02-02 22:07:46 -08:00
Tristan Penman
a816284bc3 Remove unnecessary reference to SchemaParser in custom_schema example 2016-02-02 22:00:03 -08:00
Tristan Penman
68664a5781 Fix example in README file 2016-02-02 15:06:17 -08:00
Tristan Penman
282fbd0c7b Add missing #includes to util headers 2016-02-02 15:06:17 -08:00
Tristan Penman
171820d1fe Fix inconsistencies in error messages for cardinality/length constraints in SchemaParser 2016-02-02 15:06:17 -08:00
Tristan Penman
b44826434b Enable signed/unsigned comparison warnings in Xcode project 2016-02-02 15:06:17 -08:00
Tristan Penman
661fa1f6d6 Fix signed/unsigned comparisons in tests 2016-02-02 15:06:17 -08:00
Tristan Penman
f039e269dc Fix signed/unsigned comparison in json_pointer namespace 2016-02-02 15:06:17 -08:00
Tristan Penman
a92f8bf60a Update various cardinality and length constraints to use unsigned integer types 2016-02-02 15:06:17 -08:00
Tristan Penman
f2eed08cab Add compiler flags for -Wall and -Werror to Xcode project files and CMake configuration 2016-02-02 15:06:17 -08:00
Tristan Penman
0d028fb188 Upgrade rapidjson from version 0.1 to version 1.0.2 2016-02-02 15:06:17 -08:00
Tristan Penman
6c8907ce5f Remove unused forward declaration of FormatConstraint struct 2016-02-02 15:06:17 -08:00
Tristan Penman
0f81f72a26 Add range check to MaxItemsConstraint and MaxLengthConstraint classes 2016-02-02 15:06:17 -08:00
Tristan Penman
2bcaaac344 Improve encapsulation in MinPropertiesConstraint and MaxPropertiesConstraint classes 2016-02-02 15:06:16 -08:00
Tristan Penman
8f4dbc63c9 Fix inconsistencies in Doxygen comments 2016-02-02 15:06:16 -08:00
Tristan Penman
7aa0ccb468 Split MultipleOfConstraint into separate classes for integers and doubles, with improved encapsulation 2016-02-02 15:06:16 -08:00
Tristan Penman
14e31be16d Improve encapsulation in MinLengthConstraint and MaxLengthConstraint classes 2016-02-02 15:06:16 -08:00
Tristan Penman
31c0fce2b3 Improve encapsulation in MinItemsConstraint and MaxItemsConstraint classes 2016-02-02 15:06:16 -08:00
Tristan Penman
4d0d38566c Improve encapsulation in MinimumConstraint class 2016-02-02 15:06:16 -08:00
Tristan Penman
65e2c662cc Improve encapsulation in MaximumConstraint class 2016-02-02 15:06:16 -08:00
Tristan Penman
38c540a5d0 Fix memory leak in EnumConstraint 2016-02-02 15:06:16 -08:00
Tristan Penman
b71de6dec0 Update PropertiesConstraint class to use custom allocator, with better encapsulation 2016-02-02 15:06:16 -08:00
Tristan Penman
23ff06541e Make argument names and ordering more consistent across validation functors 2016-02-02 15:06:16 -08:00
Tristan Penman
f779b0780c Update EnumConstraint to use custom allocator for collection (but not frozen values) 2016-02-02 15:06:16 -08:00
Tristan Penman
99a5c2f604 Update NotConstraint to use custom allocator, with better encapsulation 2016-02-02 15:06:16 -08:00
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