C# Class BTDB.EventStoreLayer.EnumTypeDescriptor

Inheritance: ITypeDescriptor, IPersistTypeDescriptor
Show file Open project: Bobris/BTDB Class Usage Examples

Public Methods

Method Description
AnyOpNeedsCtx ( ) : bool
BuildHumanReadableFullName ( StringBuilder text, HashSet stack, uint indent ) : void
BuildNewDescriptorGenerator ( ) : ITypeNewDescriptorGenerator
ClearMappingToType ( ) : void
CloneAndMapNestedTypes ( ITypeDescriptorCallbacks typeSerializers, ITypeDescriptor>.Func map ) : ITypeDescriptor
ContainsField ( string name ) : bool
EnumTypeDescriptor ( ITypeDescriptorCallbacks typeSerializers, AbstractBufferedReader reader ) : System
EnumTypeDescriptor ( ITypeDescriptorCallbacks typeSerializers, Type type ) : System
EnumTypeDescriptor ( ITypeDescriptorCallbacks typeSerializers, Type type, string name, bool signed, bool flags, ulong>.List pairs ) : System
Equals ( ITypeDescriptor other ) : bool
Equals ( ITypeDescriptor other, HashSet stack ) : bool
FinishBuildFromType ( ITypeDescriptorFactory factory ) : bool
GenerateLoad ( IILGen ilGenerator, Action pushReader, Action pushCtx, Action pushDescriptor, Type targetType ) : void
GenerateSave ( IILGen ilGenerator, Action pushWriter, Action pushCtx, Action pushValue, Type valueType ) : void
GenerateSkip ( IILGen ilGenerator, Action pushReader, Action pushCtx ) : void
GetPreferedType ( ) : Type
GetPreferedType ( Type targetType ) : Type
MapNestedTypes ( ITypeDescriptor>.Func map ) : void
NestedType ( int index ) : ITypeDescriptor
Persist ( AbstractBufferedWriter writer, ITypeDescriptor>.Action nestedDescriptorPersistor ) : void

Private Methods

Method Description
AppendIndent ( StringBuilder text, uint indent ) : void
IsFlagsEnum ( Type type ) : bool
IsSignedEnum ( Type enumType ) : bool
UlongValueToString ( ulong value ) : string
UlongValueToStringAsNumber ( ulong value ) : string
UlongValueToStringFlags ( ulong value ) : string

Method Details

AnyOpNeedsCtx() public method

public AnyOpNeedsCtx ( ) : bool
return bool

BuildHumanReadableFullName() public method

public BuildHumanReadableFullName ( StringBuilder text, HashSet stack, uint indent ) : void
text StringBuilder
stack HashSet
indent uint
return void

BuildNewDescriptorGenerator() public method

public BuildNewDescriptorGenerator ( ) : ITypeNewDescriptorGenerator
return ITypeNewDescriptorGenerator

ClearMappingToType() public method

public ClearMappingToType ( ) : void
return void

CloneAndMapNestedTypes() public method

public CloneAndMapNestedTypes ( ITypeDescriptorCallbacks typeSerializers, ITypeDescriptor>.Func map ) : ITypeDescriptor
typeSerializers ITypeDescriptorCallbacks
map ITypeDescriptor>.Func
return ITypeDescriptor

ContainsField() public method

public ContainsField ( string name ) : bool
name string
return bool

EnumTypeDescriptor() public method

public EnumTypeDescriptor ( ITypeDescriptorCallbacks typeSerializers, AbstractBufferedReader reader ) : System
typeSerializers ITypeDescriptorCallbacks
reader BTDB.StreamLayer.AbstractBufferedReader
return System

EnumTypeDescriptor() public method

public EnumTypeDescriptor ( ITypeDescriptorCallbacks typeSerializers, Type type ) : System
typeSerializers ITypeDescriptorCallbacks
type System.Type
return System

EnumTypeDescriptor() public method

public EnumTypeDescriptor ( ITypeDescriptorCallbacks typeSerializers, Type type, string name, bool signed, bool flags, ulong>.List pairs ) : System
typeSerializers ITypeDescriptorCallbacks
type System.Type
name string
signed bool
flags bool
pairs ulong>.List
return System

Equals() public method

public Equals ( ITypeDescriptor other ) : bool
other ITypeDescriptor
return bool

Equals() public method

public Equals ( ITypeDescriptor other, HashSet stack ) : bool
other ITypeDescriptor
stack HashSet
return bool

FinishBuildFromType() public method

public FinishBuildFromType ( ITypeDescriptorFactory factory ) : bool
factory ITypeDescriptorFactory
return bool

GenerateLoad() public method

public GenerateLoad ( IILGen ilGenerator, Action pushReader, Action pushCtx, Action pushDescriptor, Type targetType ) : void
ilGenerator IILGen
pushReader Action
pushCtx Action
pushDescriptor Action
targetType System.Type
return void

GenerateSave() public method

public GenerateSave ( IILGen ilGenerator, Action pushWriter, Action pushCtx, Action pushValue, Type valueType ) : void
ilGenerator IILGen
pushWriter Action
pushCtx Action
pushValue Action
valueType System.Type
return void

GenerateSkip() public method

public GenerateSkip ( IILGen ilGenerator, Action pushReader, Action pushCtx ) : void
ilGenerator IILGen
pushReader Action
pushCtx Action
return void

GetPreferedType() public method

public GetPreferedType ( ) : Type
return System.Type

GetPreferedType() public method

public GetPreferedType ( Type targetType ) : Type
targetType System.Type
return System.Type

MapNestedTypes() public method

public MapNestedTypes ( ITypeDescriptor>.Func map ) : void
map ITypeDescriptor>.Func
return void

NestedType() public method

public NestedType ( int index ) : ITypeDescriptor
index int
return ITypeDescriptor

Persist() public method

public Persist ( AbstractBufferedWriter writer, ITypeDescriptor>.Action nestedDescriptorPersistor ) : void
writer BTDB.StreamLayer.AbstractBufferedWriter
nestedDescriptorPersistor ITypeDescriptor>.Action
return void