C# Class natix.SimilaritySearch.SpaceGenericIO

Works as cache for loaded spaces and a loader of spaces.
显示文件 Open project: sadit/natix

Public Properties

Property Type Description
DB_CACHE MetricDB>.Dictionary

Public Methods

Method Description
Load ( BinaryReader Input, bool save_into_cache ) : MetricDB
Load ( string path, bool remember_in_cache = true, bool try_load_from_cache = true ) : MetricDB
LoadCache ( string path, MetricDB &db ) : bool
NormalizePath ( string path ) : string
Save ( BinaryWriter Output, MetricDB sp, bool save_into_cache ) : void
Save ( string path, MetricDB sp, bool save_into_cache = true ) : void
SaveCache ( string path, MetricDB db ) : void
SmartLoad ( BinaryReader Input, bool save_cache ) : MetricDB
SmartSave ( BinaryWriter Output, MetricDB db ) : void

Method Details

Load() public static method

public static Load ( BinaryReader Input, bool save_into_cache ) : MetricDB
Input System.IO.BinaryReader
save_into_cache bool
return MetricDB

Load() public static method

public static Load ( string path, bool remember_in_cache = true, bool try_load_from_cache = true ) : MetricDB
path string
remember_in_cache bool
try_load_from_cache bool
return MetricDB

LoadCache() public static method

public static LoadCache ( string path, MetricDB &db ) : bool
path string
db MetricDB
return bool

NormalizePath() public static method

public static NormalizePath ( string path ) : string
path string
return string

Save() public static method

public static Save ( BinaryWriter Output, MetricDB sp, bool save_into_cache ) : void
Output System.IO.BinaryWriter
sp MetricDB
save_into_cache bool
return void

Save() public static method

public static Save ( string path, MetricDB sp, bool save_into_cache = true ) : void
path string
sp MetricDB
save_into_cache bool
return void

SaveCache() public static method

public static SaveCache ( string path, MetricDB db ) : void
path string
db MetricDB
return void

SmartLoad() public static method

public static SmartLoad ( BinaryReader Input, bool save_cache ) : MetricDB
Input System.IO.BinaryReader
save_cache bool
return MetricDB

SmartSave() public static method

public static SmartSave ( BinaryWriter Output, MetricDB db ) : void
Output System.IO.BinaryWriter
db MetricDB
return void

Property Details

DB_CACHE public_oe static_oe property

public static Dictionary DB_CACHE
return MetricDB>.Dictionary