Torque3D Documentation / _generateds / internal::Schema

internal::Schema

Engine/source/persistence/rapidjson/schema.h

More...

Classes:

Private Types

enum
SchemaValueType {
  kNullSchemaType 
  kBooleanSchemaType 
  kObjectSchemaType 
  kArraySchemaType 
  kStringSchemaType 
  kNumberSchemaType 
  kIntegerSchemaType 
  kTotalSchemaType 
}

Public Types

SchemaDocumentType::AllocatorType
AllocatorType 
EncodingType::Ch
Ch 
SchemaValidationContext< SchemaDocumentType >
Context 
ValueType::EncodingType
EncodingType 
SchemaDocumentType::PointerType
PointerType 
Schema< SchemaDocumentType >
SchemaType 
SchemaDocumentType::ValueType
ValueType 

Public Functions

Schema(SchemaDocumentType * schemaDocument, const PointerType & p, const ValueType & value, const ValueType & document, AllocatorType * allocator)
bool
BeginValue(Context & context)
bool
Bool(Context & context, bool )
bool
Double(Context & context, double d)
bool
EndArray(Context & context, SizeType elementCount)
bool
EndObject(Context & context, SizeType memberCount)
RAPIDJSON_FORCEINLINE bool
EndValue(Context & context)
bool
Int(Context & context, int i)
bool
Int64(Context & context, int64_t i)
bool
Key(Context & context, const Ch * str, SizeType len, bool )
bool
Null(Context & context)
bool
StartArray(Context & context)
bool
StartObject(Context & context)
bool
String(Context & context, const Ch * str, SizeType length, bool )
bool
Uint(Context & context, unsigned u)
bool
Uint64(Context & context, uint64_t u)

Private Functions

AddUniqueElement(V1 & a, const V2 & v)
AssignIfExist(SchemaArray & out, SchemaDocumentType & schemaDocument, const PointerType & p, const ValueType & value, const ValueType & name, const ValueType & document)
bool
CheckDoubleMaximum(Context & context, double d)
bool
CheckDoubleMinimum(Context & context, double d)
bool
CheckDoubleMultipleOf(Context & context, double d)
bool
CheckInt(Context & context, int64_t i)
bool
CheckUint(Context & context, uint64_t i)
CreateSchemaValidators(Context & context, const SchemaArray & schemas)
DisallowedType(Context & context, const ValueType & actualType)
bool

Private Static Functions

Detailed Description

Private Types

SchemaValueType

Enumerator

kNullSchemaType
kBooleanSchemaType
kObjectSchemaType
kArraySchemaType
kStringSchemaType
kNumberSchemaType
kIntegerSchemaType
kTotalSchemaType
typedef internal::GenericRegex< EncodingType, AllocatorType > RegexType 

Public Types

typedef SchemaDocumentType::AllocatorType AllocatorType 
typedef EncodingType::Ch Ch 
typedef SchemaValidationContext< SchemaDocumentType > Context 
typedef ValueType::EncodingType EncodingType 
typedef IValidationErrorHandler< Schema > ErrorHandler 
typedef SchemaDocumentType::PointerType PointerType 
typedef Schema< SchemaDocumentType > SchemaType 
typedef GenericValue< EncodingType, AllocatorType > SValue 
typedef SchemaDocumentType::ValueType ValueType 

Public Friends

Private Attributes

bool additionalItems_ 
const SchemaType * additionalItemsSchema_ 
bool additionalProperties_ 
const SchemaType * additionalPropertiesSchema_ 
AllocatorType * allocator_ 
SchemaArray allOf_ 
SchemaArray anyOf_ 
SizeType defaultValueLength_ 
uint64_t * enum_ 
SizeType enumCount_ 
bool exclusiveMaximum_ 
bool exclusiveMinimum_ 
bool hasDependencies_ 
bool hasRequired_ 
bool hasSchemaDependencies_ 
const SchemaType * itemsList_ 
const SchemaType ** itemsTuple_ 
SizeType itemsTupleCount_ 
SValue maximum_ 
SizeType maxItems_ 
SizeType maxLength_ 
SizeType maxProperties_ 
SValue minimum_ 
SizeType minItems_ 
SizeType minLength_ 
SizeType minProperties_ 
SValue multipleOf_ 
const SchemaType * not_ 
SizeType notValidatorIndex_ 
SchemaArray oneOf_ 
RegexType * pattern_ 
PatternProperty * patternProperties_ 
SizeType patternPropertyCount_ 
PointerType pointer_ 
Property * properties_ 
SizeType propertyCount_ 
unsigned type_ 
const SchemaType * typeless_ 
bool uniqueItems_ 
SValue uri_ 
SizeType validatorCount_ 

Public Functions

Schema(SchemaDocumentType * schemaDocument, const PointerType & p, const ValueType & value, const ValueType & document, AllocatorType * allocator)

~Schema()

BeginValue(Context & context)

Bool(Context & context, bool )

Double(Context & context, double d)

EndArray(Context & context, SizeType elementCount)

EndObject(Context & context, SizeType memberCount)

EndValue(Context & context)

GetPointer()

GetURI()

Int(Context & context, int i)

Int64(Context & context, int64_t i)

Key(Context & context, const Ch * str, SizeType len, bool )

Null(Context & context)

StartArray(Context & context)

StartObject(Context & context)

String(Context & context, const Ch * str, SizeType length, bool )

Uint(Context & context, unsigned u)

Uint64(Context & context, uint64_t u)

Private Functions

AddType(const ValueType & type)

AddUniqueElement(V1 & a, const V2 & v)

AssignIfExist(SchemaArray & out, SchemaDocumentType & schemaDocument, const PointerType & p, const ValueType & value, const ValueType & name, const ValueType & document)

CheckDoubleMaximum(Context & context, double d)

CheckDoubleMinimum(Context & context, double d)

CheckDoubleMultipleOf(Context & context, double d)

CheckInt(Context & context, int64_t i)

CheckUint(Context & context, uint64_t i)

CreateParallelValidator(Context & context)

CreatePattern(const ValueType & value)

CreateSchemaValidators(Context & context, const SchemaArray & schemas)

DisallowedType(Context & context, const ValueType & actualType)

FindPropertyIndex(const ValueType & name, SizeType * outIndex)

Private Static Functions

AssignIfExist(bool & out, const ValueType & value, const ValueType & name)

AssignIfExist(SizeType & out, const ValueType & value, const ValueType & name)

GetMember(const ValueType & value, const ValueType & name)

IsPatternMatch(const RegexType * pattern, const Ch * str, SizeType )