Implementation of ISchemaStateFactory
| 1739 | |
| 1740 | // Implementation of ISchemaStateFactory<SchemaType> |
| 1741 | virtual ISchemaValidator* CreateSchemaValidator(const SchemaType& root) { |
| 1742 | return new (GetStateAllocator().Malloc(sizeof(GenericSchemaValidator))) GenericSchemaValidator(*schemaDocument_, root, |
| 1743 | #if RAPIDJSON_SCHEMA_VERBOSE |
| 1744 | depth_ + 1, |
| 1745 | #endif |
| 1746 | &GetStateAllocator()); |
| 1747 | } |
| 1748 | |
| 1749 | virtual void DestroySchemaValidator(ISchemaValidator* validator) { |
| 1750 | GenericSchemaValidator* v = static_cast<GenericSchemaValidator*>(validator); |
no test coverage detected