refactor: Break up Bts.Spark.Core into a few diff projs
This is in anticipation of decoupling BlueOrb from Spark. * Bts.Collections * Bts.Core * Bts.Disposables * Bts.Numerics
This commit is contained in:
1 parent
749fed15ad
commit
2f7e75fec0
127 files changed
+733
-310
No files matched your search
@@ -17,6 +17,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Spark.Sdk", "src\cs\Bts
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Spark.Sdk.Demo", "src\cs\Bts.Spark.Sdk.Demo\Bts.Spark.Sdk.Demo.csproj", "{FCFDBDBE-74B0-41C4-9011-C651B21056D4}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Collections", "src\cs\Bts.Collections\Bts.Collections.csproj", "{3BF4DF96-5AFF-4674-866A-71A8090627FF}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Core", "src\cs\Bts.Core\Bts.Core.csproj", "{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Disposables", "src\cs\Bts.Disposables\Bts.Disposables.csproj", "{62067659-AA2E-4CB5-B7CE-0B38EAA92080}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Numerics", "src\cs\Bts.Numerics\Bts.Numerics.csproj", "{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -87,6 +95,54 @@ Global
|
||||
{FCFDBDBE-74B0-41C4-9011-C651B21056D4}.Release|x64.Build.0 = Release|Any CPU
|
||||
{FCFDBDBE-74B0-41C4-9011-C651B21056D4}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{FCFDBDBE-74B0-41C4-9011-C651B21056D4}.Release|x86.Build.0 = Release|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Release|x64.Build.0 = Release|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF}.Release|x86.Build.0 = Release|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Release|x64.Build.0 = Release|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B}.Release|x86.Build.0 = Release|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Release|x64.Build.0 = Release|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080}.Release|x86.Build.0 = Release|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Release|x64.Build.0 = Release|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
@@ -98,5 +154,9 @@ Global
|
||||
{37E4E890-D025-4729-90F9-6F95862F47BC} = {C5A3B5EA-BE9F-76E5-E9B8-8A22B289B295}
|
||||
{A5FF3FAF-43CB-496B-AF4B-F61EFD645579} = {C5A3B5EA-BE9F-76E5-E9B8-8A22B289B295}
|
||||
{FCFDBDBE-74B0-41C4-9011-C651B21056D4} = {C5A3B5EA-BE9F-76E5-E9B8-8A22B289B295}
|
||||
{3BF4DF96-5AFF-4674-866A-71A8090627FF} = {C5A3B5EA-BE9F-76E5-E9B8-8A22B289B295}
|
||||
{CD0A3EEF-303A-44EE-85F2-76F4CE632A3B} = {C5A3B5EA-BE9F-76E5-E9B8-8A22B289B295}
|
||||
{62067659-AA2E-4CB5-B7CE-0B38EAA92080} = {C5A3B5EA-BE9F-76E5-E9B8-8A22B289B295}
|
||||
{2FE1E5D0-168A-4D83-9B18-0D48250B4BFE} = {C5A3B5EA-BE9F-76E5-E9B8-8A22B289B295}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -51,6 +51,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Net", "src\cs\Bts.Net\B
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.IO.Compression", "src\cs\Bts.IO.Compression\Bts.IO.Compression.csproj", "{BC277499-8215-4F9F-B9AB-07B6391110BF}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Collections", "src\cs\Bts.Collections\Bts.Collections.csproj", "{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Core", "src\cs\Bts.Core\Bts.Core.csproj", "{802ECF0B-7264-4168-95D1-158E47FB65CC}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Disposables", "src\cs\Bts.Disposables\Bts.Disposables.csproj", "{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Numerics", "src\cs\Bts.Numerics\Bts.Numerics.csproj", "{0354655D-2394-42BB-B1D4-2D75B9BCABF1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
@@ -571,6 +579,102 @@ Global
|
||||
{BC277499-8215-4F9F-B9AB-07B6391110BF}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BC277499-8215-4F9F-B9AB-07B6391110BF}.RelWithDebInfo|x86.ActiveCfg = Debug|Any CPU
|
||||
{BC277499-8215-4F9F-B9AB-07B6391110BF}.RelWithDebInfo|x86.Build.0 = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.MinSizeRel|x86.ActiveCfg = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.MinSizeRel|x86.Build.0 = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Release|x64.Build.0 = Release|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.Release|x86.Build.0 = Release|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.RelWithDebInfo|x86.ActiveCfg = Debug|Any CPU
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6}.RelWithDebInfo|x86.Build.0 = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.MinSizeRel|x86.ActiveCfg = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.MinSizeRel|x86.Build.0 = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Release|x64.Build.0 = Release|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.Release|x86.Build.0 = Release|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.RelWithDebInfo|x86.ActiveCfg = Debug|Any CPU
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC}.RelWithDebInfo|x86.Build.0 = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.MinSizeRel|x86.ActiveCfg = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.MinSizeRel|x86.Build.0 = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Release|x64.Build.0 = Release|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.Release|x86.Build.0 = Release|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.RelWithDebInfo|x86.ActiveCfg = Debug|Any CPU
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0}.RelWithDebInfo|x86.Build.0 = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.MinSizeRel|x86.ActiveCfg = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.MinSizeRel|x86.Build.0 = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Release|x64.Build.0 = Release|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.Release|x86.Build.0 = Release|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.RelWithDebInfo|x86.ActiveCfg = Debug|Any CPU
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1}.RelWithDebInfo|x86.Build.0 = Debug|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
@@ -592,6 +696,10 @@ Global
|
||||
{385C4948-E080-56A6-E29E-8B0F4913175C} = {267F81EF-A8AB-49FD-9F56-D7EC3C1F7C7C}
|
||||
{43FB297B-7A4D-4835-A878-E6DF345B580C} = {385C4948-E080-56A6-E29E-8B0F4913175C}
|
||||
{BC277499-8215-4F9F-B9AB-07B6391110BF} = {385C4948-E080-56A6-E29E-8B0F4913175C}
|
||||
{C42F4CCB-9E65-4370-939A-527ACDBC4DA6} = {385C4948-E080-56A6-E29E-8B0F4913175C}
|
||||
{802ECF0B-7264-4168-95D1-158E47FB65CC} = {385C4948-E080-56A6-E29E-8B0F4913175C}
|
||||
{95C5F6C0-88E5-4338-9A4F-614CF6C03CC0} = {385C4948-E080-56A6-E29E-8B0F4913175C}
|
||||
{0354655D-2394-42BB-B1D4-2D75B9BCABF1} = {385C4948-E080-56A6-E29E-8B0F4913175C}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {422D1620-0166-4C26-9A81-CA8A2EB1AB58}
|
||||
|
||||
@@ -49,6 +49,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "spark_test", "src\client\sp
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spark.Console", "src\client\Spark.Console\Spark.Console.csproj", "{2B8243FF-60C6-4607-8AAE-7762D29B0A48}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Collections", "src\cs\Bts.Collections\Bts.Collections.csproj", "{00D21F82-61F4-467F-B125-268018A185E5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Core", "src\cs\Bts.Core\Bts.Core.csproj", "{513A3F0D-46B5-4AC2-B700-8671933F6347}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Disposables", "src\cs\Bts.Disposables\Bts.Disposables.csproj", "{D419D996-9870-4FF5-82AD-08370D1C945F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Numerics", "src\cs\Bts.Numerics\Bts.Numerics.csproj", "{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -275,6 +283,102 @@ Global
|
||||
{2B8243FF-60C6-4607-8AAE-7762D29B0A48}.Release|x64.Build.0 = Release|x64
|
||||
{2B8243FF-60C6-4607-8AAE-7762D29B0A48}.Release|x86.ActiveCfg = Release|x64
|
||||
{2B8243FF-60C6-4607-8AAE-7762D29B0A48}.Release|x86.Build.0 = Release|x64
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.MinSizeRel|x86.ActiveCfg = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.MinSizeRel|x86.Build.0 = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Release|x64.Build.0 = Release|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.Release|x86.Build.0 = Release|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.RelWithDebInfo|x86.ActiveCfg = Debug|Any CPU
|
||||
{00D21F82-61F4-467F-B125-268018A185E5}.RelWithDebInfo|x86.Build.0 = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.MinSizeRel|x86.ActiveCfg = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.MinSizeRel|x86.Build.0 = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Release|x64.Build.0 = Release|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.Release|x86.Build.0 = Release|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.RelWithDebInfo|x86.ActiveCfg = Debug|Any CPU
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347}.RelWithDebInfo|x86.Build.0 = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.MinSizeRel|x86.ActiveCfg = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.MinSizeRel|x86.Build.0 = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Release|x64.Build.0 = Release|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.Release|x86.Build.0 = Release|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.RelWithDebInfo|x86.ActiveCfg = Debug|Any CPU
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F}.RelWithDebInfo|x86.Build.0 = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.MinSizeRel|x64.Build.0 = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.MinSizeRel|x86.ActiveCfg = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.MinSizeRel|x86.Build.0 = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Release|x64.Build.0 = Release|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.Release|x86.Build.0 = Release|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.RelWithDebInfo|x86.ActiveCfg = Debug|Any CPU
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049}.RelWithDebInfo|x86.Build.0 = Debug|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
@@ -302,5 +406,9 @@ Global
|
||||
{D432F3E9-3D2F-4623-B7B9-CEBA6701FFC3} = {42C014A0-00C5-0620-8552-38912E891A7F}
|
||||
{DD00F5D5-6C2F-4FDA-AE3D-25CF01A9A224} = {C5A3B5EA-BE9F-76E5-E9B8-8A22B289B295}
|
||||
{2B8243FF-60C6-4607-8AAE-7762D29B0A48} = {C5A3B5EA-BE9F-76E5-E9B8-8A22B289B295}
|
||||
{00D21F82-61F4-467F-B125-268018A185E5} = {D7C6B9C7-1058-B1EA-FEE6-34C56B05AEDB}
|
||||
{513A3F0D-46B5-4AC2-B700-8671933F6347} = {D7C6B9C7-1058-B1EA-FEE6-34C56B05AEDB}
|
||||
{D419D996-9870-4FF5-82AD-08370D1C945F} = {D7C6B9C7-1058-B1EA-FEE6-34C56B05AEDB}
|
||||
{697BC3A3-1A98-43D3-A6E8-BB39A05EA049} = {D7C6B9C7-1058-B1EA-FEE6-34C56B05AEDB}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -43,6 +43,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Net", "..\cs\Bts.Net\Bt
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.IO.Compression", "..\cs\Bts.IO.Compression\Bts.IO.Compression.csproj", "{3BF059B0-51C0-44A8-8297-9B7464DC5BA3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Collections", "..\cs\Bts.Collections\Bts.Collections.csproj", "{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Core", "..\cs\Bts.Core\Bts.Core.csproj", "{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Disposables", "..\cs\Bts.Disposables\Bts.Disposables.csproj", "{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bts.Numerics", "..\cs\Bts.Numerics\Bts.Numerics.csproj", "{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -293,6 +301,54 @@ Global
|
||||
{3BF059B0-51C0-44A8-8297-9B7464DC5BA3}.Release|x64.Build.0 = Release|Any CPU
|
||||
{3BF059B0-51C0-44A8-8297-9B7464DC5BA3}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{3BF059B0-51C0-44A8-8297-9B7464DC5BA3}.Release|x86.Build.0 = Release|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Release|x64.Build.0 = Release|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{ADBEBCB3-5367-431B-AFC8-F57CAF9F029D}.Release|x86.Build.0 = Release|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Release|x64.Build.0 = Release|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{4E3D817D-9A0A-40F4-A1A1-4865375F40DD}.Release|x86.Build.0 = Release|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Release|x64.Build.0 = Release|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{ED034E82-07F4-473D-9C3A-F5EF9C961CFD}.Release|x86.Build.0 = Release|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Release|x64.Build.0 = Release|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{9A3E289A-3A88-4A76-AD0B-32C12EBA1B8B}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
namespace mbts.ui {
|
||||
using bts.collections;
|
||||
|
||||
using Spark.Core;
|
||||
|
||||
using System.Collections;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
@@ -9,7 +11,7 @@ namespace mbts.ui {
|
||||
|
||||
[ContentProperty(nameof(Map))]
|
||||
class KeyedTemplateSelector : DataTemplateSelector {
|
||||
readonly KeyedCollection<TemplateSelectorKeyValue, object?> _map = new(kv => kv.Key);
|
||||
readonly KeyedCollection<TemplateSelectorKeyValue, object> _map = new(kv => kv.Key ?? Optional<object>.Empty);
|
||||
|
||||
public IList Map => _map;
|
||||
public DataTemplate? Default { get; set; }
|
||||
|
||||
@@ -4,6 +4,8 @@ using bts.collections;
|
||||
using bts.proto;
|
||||
using bts.utils;
|
||||
|
||||
using Bts.Collections;
|
||||
|
||||
using mbts.collections;
|
||||
using mbts.spark.utilities;
|
||||
using mbts.ui;
|
||||
|
||||
@@ -41,6 +41,7 @@ using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
|
||||
using Columns = mbts.spark.OrderBookGridView.ColumnKeys;
|
||||
using NumericExceptionAssert = Bts.Numerics.Diagnostics.ExceptionAssert;
|
||||
|
||||
namespace mbts.spark {
|
||||
partial class OrderBookVM : DisposableViewModelBase, IHandleRowSelection, IHandleGridSorting, IRequestRowSelection {
|
||||
@@ -791,7 +792,7 @@ namespace mbts.spark {
|
||||
|
||||
double validate_price() {
|
||||
if (price.HasValue) {
|
||||
ExceptionAssert.NumericArgument.is_real(price.Value, nameof(price));
|
||||
NumericExceptionAssert.Argument.is_real(price.Value, nameof(price));
|
||||
return price.Value;
|
||||
}
|
||||
return row.price;
|
||||
@@ -799,7 +800,7 @@ namespace mbts.spark {
|
||||
|
||||
double validate_quantity() {
|
||||
if (quantity.HasValue) {
|
||||
ExceptionAssert.NumericArgument.is_real_non_zero(quantity.Value, nameof(quantity));
|
||||
NumericExceptionAssert.Argument.is_real_non_zero(quantity.Value, nameof(quantity));
|
||||
return quantity.Value;
|
||||
}
|
||||
return row.quantity;
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,8 +1,4 @@
|
||||
using Spark.Core.Diagnostics;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace bts.utils {
|
||||
public static class ArrayHelper {
|
||||
@@ -95,14 +91,10 @@ namespace bts.utils {
|
||||
|
||||
public static void insert<T>(ref T[] array, int index, T value, ref int size) {
|
||||
// validate size/index
|
||||
if (size < 0)
|
||||
throw ExceptionBuilder.ArgumentOutOfRange.lt_zero(nameof(size));
|
||||
if (size > array.Length)
|
||||
throw ExceptionBuilder.ArgumentOutOfRange.gt_length(nameof(size));
|
||||
if (index < 0)
|
||||
throw ExceptionBuilder.IndexOutOfRange.lt_zero();
|
||||
if (index > size)
|
||||
throw ExceptionBuilder.IndexOutOfRange.gt_length();
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(size, 0);
|
||||
ArgumentOutOfRangeException.ThrowIfGreaterThan(size, array.Length);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(index, 0);
|
||||
ArgumentOutOfRangeException.ThrowIfGreaterThan(index, size);
|
||||
T[] old_array = array;
|
||||
checked {
|
||||
if (size == array.Length) {
|
||||
@@ -123,14 +115,10 @@ namespace bts.utils {
|
||||
|
||||
public static void remove_at<T>(ref T[] array, ref int size, int index) {
|
||||
// validate size/index
|
||||
if (size < 0)
|
||||
throw ExceptionBuilder.ArgumentOutOfRange.lt_zero(nameof(size));
|
||||
if (size > array.Length)
|
||||
throw ExceptionBuilder.ArgumentOutOfRange.gte_length(nameof(size));
|
||||
if (index < 0)
|
||||
throw ExceptionBuilder.IndexOutOfRange.lt_zero();
|
||||
if (index >= size)
|
||||
throw ExceptionBuilder.IndexOutOfRange.gte_length();
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(size, 0);
|
||||
ArgumentOutOfRangeException.ThrowIfGreaterThan(size, array.Length);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(index, 0);
|
||||
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, size);
|
||||
// shift [any]items right of 'index' left 1 pos.
|
||||
if (index < size - 1) {
|
||||
Array.Copy(array, index + 1, array, index, size - index - 1);
|
||||
File renamed without changes.
File renamed without changes.
+7
-5
@@ -145,8 +145,8 @@ public static class BlockTransactionEnumerable {
|
||||
return;
|
||||
}
|
||||
|
||||
Log.assert(srcStartIdx >= 0);
|
||||
Log.assert(dstStartIdx >= 0);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(srcStartIdx, 0);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(dstStartIdx, 0);
|
||||
var sourceSliceLength = srcStopIdx - srcStartIdx;
|
||||
var destSliceLength = dstStopIdx - dstStartIdx;
|
||||
var lengthChange = destSliceLength - sourceSliceLength;
|
||||
@@ -154,7 +154,9 @@ public static class BlockTransactionEnumerable {
|
||||
var removes = new List<int>();
|
||||
using var en = blocks.GetEnumerator();
|
||||
if (!en.MoveNext() || en.Current.DestIndex >= dstStopIdx) {
|
||||
Log.assert(destSliceLength == sourceSliceLength);
|
||||
if (destSliceLength != sourceSliceLength) {
|
||||
throw new ArgumentException("BlockTransactions didn't yield expected result (newValues)", nameof(newValues));
|
||||
}
|
||||
for (int i = 0; i < -lengthChange; i++) {
|
||||
removes.Add(srcStopIdx + lengthChange + i);
|
||||
}
|
||||
@@ -224,13 +226,13 @@ public class BlockTransactionEnumerable<T> : IEnumerable<BlockTransaction<T>> {
|
||||
while (true) {
|
||||
int? del = delCursor < sortedDeletes.Count ? sortedDeletes[delCursor] : null;
|
||||
if (del.HasValue && delCursor > lastDelCursor) {
|
||||
Log.assert(del.Value > lastDel);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(del.Value, lastDel);
|
||||
lastDel = del.Value;
|
||||
lastDelCursor = delCursor;
|
||||
}
|
||||
(int Index, T Value)? add = addCursor < sortedAdds.Count ? sortedAdds[addCursor] : null;
|
||||
if (add.HasValue && addCursor > lastAddCursor) {
|
||||
Log.assert(add.Value.Index >= lastAddIndex);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(add.Value.Index, lastAddIndex);
|
||||
lastAddIndex = add.Value.Index;
|
||||
lastAddCursor = addCursor;
|
||||
}
|
||||
File renamed without changes.
@@ -0,0 +1,24 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<Choose>
|
||||
<When Condition="'$(UseProjectRefs)' == 'true'">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Bts.Disposables\Bts.Disposables.csproj" />
|
||||
<ProjectReference Include="..\Bts.Numerics\Bts.Numerics.csproj" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Bts.Disposables" Version="$(SparkVersion)" />
|
||||
<PackageReference Include="Bts.Numerics" Version="$(SparkVersion)" />
|
||||
</ItemGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
</Project>
|
||||
File renamed without changes.
+11
-7
@@ -2,11 +2,9 @@
|
||||
|
||||
namespace Spark.Core.Collections;
|
||||
|
||||
using bts;
|
||||
using bts.collections;
|
||||
using bts.utils;
|
||||
|
||||
using Spark.Core.Diagnostics;
|
||||
using Bts.Collections.Diagnostics;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -24,8 +22,10 @@ public class CircularBuffer<T> : IList<T>, IReadOnlyList<T> {
|
||||
|
||||
public CircularBuffer(int capacity, int initialCapacity) {
|
||||
this.capacity = capacity;
|
||||
ExceptionAssert.Argument.GreaterThanEqualTo(capacity, 0);
|
||||
items = new T[initialCapacity.within_range(0, capacity)];
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(capacity, 0);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(initialCapacity, 0);
|
||||
initialCapacity = Math.Min(initialCapacity, 0);
|
||||
items = new T[initialCapacity];
|
||||
}
|
||||
|
||||
public T this[int index] {
|
||||
@@ -109,8 +109,13 @@ public class CircularBuffer<T> : IList<T>, IReadOnlyList<T> {
|
||||
public void AddRange(IList<T> itemList) {
|
||||
int count = itemList.Count;
|
||||
int nFree = capacity - this.count;
|
||||
if (nFree < 0) {
|
||||
throw new InvalidOperationException("Invalid internal state, Count exceeds Capacity");
|
||||
}
|
||||
if (nFree > 0) {
|
||||
Log.assert(origin == 0);
|
||||
if (origin != 0) {
|
||||
throw new InvalidOperationException("Origin index must be zero when there are free elements");
|
||||
}
|
||||
if (nFree > count) {
|
||||
for (int i = 0; i < nFree; i++) {
|
||||
items[i + this.count] = itemList[i];
|
||||
@@ -127,7 +132,6 @@ public class CircularBuffer<T> : IList<T>, IReadOnlyList<T> {
|
||||
this.count += count;
|
||||
}
|
||||
} else {
|
||||
Log.assert(nFree == 0);
|
||||
if (count < capacity) {
|
||||
int start = origin - count;
|
||||
if (start < 0) {
|
||||
File renamed without changes.
+5
-4
@@ -1,7 +1,7 @@
|
||||
namespace bts.utils {
|
||||
using bts.collections;
|
||||
|
||||
using Spark.Core;
|
||||
using Spark.Core.Collections;
|
||||
using Spark.Core.Disposables;
|
||||
|
||||
using System;
|
||||
@@ -11,7 +11,7 @@ namespace bts.utils {
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
static class CollectionHelper {
|
||||
public static class CollectionHelper {
|
||||
public const string indexer_name = "Item[]";
|
||||
|
||||
public static int binary_search<T>(IList<T> items, T value) =>
|
||||
@@ -44,7 +44,7 @@ namespace bts.utils {
|
||||
binary_search(items, value, 0, items.Count, comparer, key_selector);
|
||||
|
||||
public static int binary_search<T, TKey>(IList<T> items, TKey key, int index, int length, IComparer<TKey> comparer, Func<T, TKey> key_selector) =>
|
||||
binary_search(items.WrapSelector(key_selector, null), key, index, length, comparer);
|
||||
binary_search(new SelectorList<T, TKey>(items, key_selector, null), key, index, length, comparer);
|
||||
|
||||
/// <summary>
|
||||
/// Like <see cref="binary_search{T}(IList{T}, T, IComparer{T})"/>, but doesn't require deterministic sort
|
||||
@@ -131,7 +131,8 @@ namespace bts.utils {
|
||||
_ => $"Unknown-action {e.Action}"
|
||||
};
|
||||
|
||||
static string fmt_items(IList items) => ", ".join(items.Cast<object>());
|
||||
static string fmt_items(IList items) =>
|
||||
string.Join(", ", items.Cast<object>());
|
||||
}
|
||||
|
||||
public static void reflect_change<T, TData>(IList<T> target, IEnumerable<TData> source, Func<TData, T> create_item, Action<T> on_removed, NotifyCollectionChangedEventArgs e) {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -324,7 +324,7 @@ namespace System.Collections.Generic {
|
||||
var source_lookup = source.ToLookup(key_selector);
|
||||
HashSet<TKey> changes = new HashSet<TKey>(), removes = new HashSet<TKey>();
|
||||
foreach (var kv in dictionary) {
|
||||
if (source_lookup.TryGetValue(kv.Key, out IEnumerable<KeyValuePair<TSourceKey, TSourceValue>> result)) {
|
||||
if (source_lookup.TryGetValue(kv.Key, out var result)) {
|
||||
update(kv, result);
|
||||
changes.Add(kv.Key);
|
||||
} else {
|
||||
File renamed without changes.
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
|
||||
namespace bts.utils {
|
||||
namespace bts.utils {
|
||||
// See http://xmailserver.org/diff2.pdf
|
||||
public static class Diff {
|
||||
|
||||
File renamed without changes.
+10
-19
@@ -2,9 +2,9 @@
|
||||
namespace System.Collections.Generic {
|
||||
using bts.utils;
|
||||
|
||||
using Spark.Core;
|
||||
using Bts.Collections;
|
||||
|
||||
using Spark.Core.Collections;
|
||||
using Spark.Core.Diagnostics;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
@@ -13,8 +13,6 @@ namespace System.Collections.Generic {
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Reactive.Linq;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
public static class EnumerableExtensions {
|
||||
public static IEnumerable<TAccumulate> AggregateEach<T, TAccumulate>(this IEnumerable<T> source, TAccumulate seed, Func<TAccumulate, T, TAccumulate> accumulate) {
|
||||
@@ -110,16 +108,13 @@ namespace System.Collections.Generic {
|
||||
/// The easiest/most effective solution is to make a wrapper around the System.Linq fn
|
||||
/// (esp since the manner in which <see cref="values"/> is used to construct a predicate
|
||||
/// with which to filter items from <see cref="source"/> is unspecified).
|
||||
///
|
||||
/// <see cref="Optional{T}"/> (as used here) provides a means to support both value and
|
||||
/// reference types.
|
||||
source
|
||||
.Select(item => (item: new Optional<T>(item), result: selector(item)))
|
||||
.Select(item => (item, selector(item)))
|
||||
.Except(
|
||||
values.Select(result => (item: Optional<T>.Empty, result)),
|
||||
EqualityComparerWrapper<(Optional<T> item, TResult result)>.wrap(
|
||||
values.Select(result => (item: default(T)!, result)),
|
||||
EqualityComparerWrapper<(T item, TResult result)>.wrap(
|
||||
t => t.result, comparer))
|
||||
.Select(tup => tup.item.value);
|
||||
.Select(tup => tup.item!);
|
||||
|
||||
public static IEnumerable<T> Except<T, TKey>(this IEnumerable<T> enumerable, IEnumerable<TKey> second, Func<T, TKey> key_selector) =>
|
||||
enumerable.Where(t => !second.Contains(key_selector(t)));
|
||||
@@ -191,8 +186,7 @@ namespace System.Collections.Generic {
|
||||
}
|
||||
|
||||
public static bool CountAtLeast<T>(this IEnumerable<T> source, int count) {
|
||||
if (count < 0)
|
||||
throw new ArgumentException(ExceptionBuilder.Format.LessThan(0), nameof(count));
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(count, 0);
|
||||
if (count == 0)
|
||||
return true;
|
||||
foreach (var v in source) {
|
||||
@@ -203,8 +197,7 @@ namespace System.Collections.Generic {
|
||||
}
|
||||
|
||||
public static bool CountAtMost<T>(this IEnumerable<T> source, int count) {
|
||||
if (count < 0)
|
||||
throw new ArgumentException(ExceptionBuilder.Format.LessThan(0), nameof(count));
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(count, 0);
|
||||
foreach (var v in source) {
|
||||
if (--count == -1)
|
||||
return false;
|
||||
@@ -213,9 +206,7 @@ namespace System.Collections.Generic {
|
||||
}
|
||||
|
||||
public static bool CountExact<T>(this IEnumerable<T> source, int count) {
|
||||
if (count < 0) {
|
||||
throw new ArgumentException(ExceptionBuilder.Format.LessThan(0), nameof(count));
|
||||
}
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(count, 0);
|
||||
foreach (var v in source) {
|
||||
if (--count == -1) {
|
||||
return false;
|
||||
@@ -1030,7 +1021,7 @@ namespace System.Collections.Generic {
|
||||
/// <returns>An <see cref="IEnumerable{TResult}"/> that contains each element of the source sequence cast to the specified type.</returns>
|
||||
/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
|
||||
public static IEnumerable<TResult> convert<TResult>(this IEnumerable source) {
|
||||
ExceptionAssert.Argument.NotNull(source, nameof(source));
|
||||
ArgumentNullException.ThrowIfNull(source);
|
||||
foreach (object obj in source)
|
||||
yield return ConvertUtils.try_convert<TResult>(obj);
|
||||
}
|
||||
+2
-1
@@ -102,7 +102,8 @@ namespace bts.utils {
|
||||
auto_phase(items.Take(_max_auto_phase_buckets).ToList());
|
||||
|
||||
public static int auto_phase<T>(IReadOnlyList<T> hash_codes, int bit_span = 32) {
|
||||
Log.assert(bit_span > 0 && bit_span <= 32);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(bit_span, 0);
|
||||
ArgumentOutOfRangeException.ThrowIfGreaterThan(bit_span, 32);
|
||||
// don't divide by zero
|
||||
if (hash_codes.Count == 0)
|
||||
return 0;
|
||||
File renamed without changes.
@@ -0,0 +1,18 @@
|
||||
namespace Bts.Collections.Diagnostics {
|
||||
public static class ExceptionAssert {
|
||||
public static class Index {
|
||||
public static void IsValid(int index, int length, bool canInsert = false) {
|
||||
if (canInsert) {
|
||||
if (index > length) {
|
||||
throw ExceptionBuilder.IndexOutOfRange.gt_length();
|
||||
}
|
||||
} else if (index >= length) {
|
||||
throw ExceptionBuilder.IndexOutOfRange.gte_length();
|
||||
}
|
||||
if (index < 0) {
|
||||
throw ExceptionBuilder.IndexOutOfRange.lt_zero();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace Bts.Collections.Diagnostics {
|
||||
public static class ExceptionBuilder {
|
||||
public static class IndexOutOfRange {
|
||||
public static IndexOutOfRangeException lt_zero() =>
|
||||
new IndexOutOfRangeException("Index is less than 0");
|
||||
|
||||
public static IndexOutOfRangeException gt_length() =>
|
||||
new IndexOutOfRangeException("Index is greater than the number of elements.");
|
||||
|
||||
public static IndexOutOfRangeException gte_length() =>
|
||||
new IndexOutOfRangeException("Index is greater than or equal to the number of elements.");
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -18,7 +18,7 @@ namespace Spark.DataStream {
|
||||
|
||||
public GenericCollectionWrapper(ICollection source, Func<object?, T>? cast = null) {
|
||||
this.source = source;
|
||||
this.cast = cast ?? ConvertUtils.try_convert<T>;
|
||||
this.cast = cast ?? new(obj => (T)obj);
|
||||
genericSource = source as ICollection<T>;
|
||||
listSource = source as IList;
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
+25
-20
@@ -1,9 +1,5 @@
|
||||
#nullable enable
|
||||
namespace Spark.Core.Collections {
|
||||
using bts.utils;
|
||||
|
||||
using Spark.Core.Disposables;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -74,10 +70,10 @@ namespace Spark.Core.Collections {
|
||||
}
|
||||
|
||||
public ICollection<TKey2> Keys =>
|
||||
_node?.Keys ?? CollectionHelper.empty<TKey2>();
|
||||
_node?.Keys as ICollection<TKey2> ?? Array.Empty<TKey2>();
|
||||
|
||||
public ICollection<TValue> Values =>
|
||||
_node?.Values ?? CollectionHelper.empty<TValue>();
|
||||
_node?.Values as ICollection<TValue> ?? Array.Empty<TValue>();
|
||||
|
||||
public int Count =>
|
||||
_node?.Count ?? 0;
|
||||
@@ -94,8 +90,12 @@ namespace Spark.Core.Collections {
|
||||
|
||||
public void Add(TKey2 key, TValue value) {
|
||||
var n = _node ?? new();
|
||||
using var _ = _begin_mutation(n);
|
||||
n.Add(key, value);
|
||||
var end = beginMutation(n);
|
||||
try {
|
||||
n.Add(key, value);
|
||||
} finally {
|
||||
end();
|
||||
}
|
||||
}
|
||||
|
||||
public TValue this[TKey2 key] {
|
||||
@@ -108,8 +108,9 @@ namespace Spark.Core.Collections {
|
||||
}
|
||||
set {
|
||||
var n = _node ?? new();
|
||||
using var _ = _begin_mutation(n);
|
||||
var end = beginMutation(n);
|
||||
n[key] = value;
|
||||
end();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,12 +119,13 @@ namespace Spark.Core.Collections {
|
||||
|
||||
public void Clear() {
|
||||
var n = _node;
|
||||
using var _ = _begin_mutation(n);
|
||||
if (n is null) {
|
||||
return;
|
||||
}
|
||||
var end = beginMutation(n);
|
||||
_value_count -= n.Count;
|
||||
n.Clear();
|
||||
end();
|
||||
}
|
||||
|
||||
public bool Contains(KeyValuePair<TKey2, TValue> item) {
|
||||
@@ -152,8 +154,10 @@ namespace Spark.Core.Collections {
|
||||
if (n is null) {
|
||||
return false;
|
||||
}
|
||||
using var _ = _begin_mutation(n);
|
||||
return n.Remove(key);
|
||||
var end = beginMutation(n);
|
||||
bool rv = n.Remove(key);
|
||||
end();
|
||||
return rv;
|
||||
}
|
||||
|
||||
public bool Remove(KeyValuePair<TKey2, TValue> item) {
|
||||
@@ -161,8 +165,10 @@ namespace Spark.Core.Collections {
|
||||
if (n is null) {
|
||||
return false;
|
||||
}
|
||||
using var _ = _begin_mutation(n);
|
||||
return ((IDictionary<TKey2, TValue>)n).Remove(item);
|
||||
var end = beginMutation(n);
|
||||
var rv = ((IDictionary<TKey2, TValue>)n).Remove(item);
|
||||
end();
|
||||
return rv;
|
||||
}
|
||||
|
||||
public bool TryGetValue(TKey2 key, [MaybeNullWhen(false)] out TValue value) {
|
||||
@@ -181,19 +187,18 @@ namespace Spark.Core.Collections {
|
||||
/// Gets an <see cref="IDisposable"/> that synchronizes this node with
|
||||
/// <see cref="_source"/> when it is disposed
|
||||
/// </summary>
|
||||
IDisposable _begin_mutation(Dictionary<TKey2, TValue>? node) {
|
||||
if (node is null) {
|
||||
return Disposable.empty;
|
||||
}
|
||||
Action beginMutation(Dictionary<TKey2, TValue> node) {
|
||||
var orig_count = node.Count;
|
||||
return Disposable.Create(() => {
|
||||
return End;
|
||||
|
||||
void End() {
|
||||
if (node.Count == 0) {
|
||||
_source._data.Remove(_node_key);
|
||||
} else if (node.Count > 0 && !_source._data.ContainsKey(_node_key)) {
|
||||
_source._data.Add(_node_key, node);
|
||||
}
|
||||
_value_count += node.Count - orig_count;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Spark.Core.Collections;
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public interface IDualComparer<T> : IComparer<T>, IComparer {
|
||||
int IComparer.Compare(object? x, object? y) =>
|
||||
Compare((T)x, (T)y);
|
||||
}
|
||||
+2
-5
@@ -1,7 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace bts.collections {
|
||||
namespace bts.collections {
|
||||
public static class ILookupExtensions {
|
||||
public static bool TryGetValue<TKey, T>(this ILookup<TKey, T> self, TKey key, out IEnumerable<T> value) {
|
||||
bool has_value = self.Contains(key);
|
||||
@@ -11,4 +8,4 @@ namespace bts.collections {
|
||||
return has_value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-2
@@ -1,9 +1,8 @@
|
||||
#nullable enable
|
||||
namespace bts.collections {
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
static class ImmutableListExtensions {
|
||||
public static class ImmutableListExtensions {
|
||||
public static ImmutableList<T> add_range<T>(this ImmutableList<T> list, IEnumerable<T> items) {
|
||||
var bd = list.ToBuilder();
|
||||
bd.AddRange(items);
|
||||
+2
-2
@@ -370,7 +370,7 @@ public class ImmutableOrderedDictionary<TKey, TValue> : IDictionary<TKey, TValue
|
||||
return Clear();
|
||||
}
|
||||
var step = getStep(ulong.MaxValue, itemCountUL + 1UL << 8);
|
||||
Log.assert(step > 0);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(step, 0UL);
|
||||
var dataBd = data.Clear().ToBuilder();
|
||||
var ordinalKeysBd = ordinalKeys.Clear().ToBuilder();
|
||||
var ord = step * (1UL << 7);
|
||||
@@ -602,7 +602,7 @@ public class ImmutableOrderedDictionary<TKey, TValue> : IDictionary<TKey, TValue
|
||||
return;
|
||||
}
|
||||
var step = getStep(ulong.MaxValue, itemCountUL + 1UL << 8);
|
||||
Log.assert(step > 0);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(step, 0UL);
|
||||
data.Clear();
|
||||
ordinalKeys.Clear();
|
||||
var ord = step * 1UL << 7;
|
||||
+2
-2
@@ -332,7 +332,7 @@ public class ImmutableOrderedSet<T> : IReadOnlySet<T>, IList<T> where T : notnul
|
||||
return Clear();
|
||||
}
|
||||
var step = getStep(ulong.MaxValue, itemCountUL + 1UL << 8);
|
||||
Log.assert(step > 0);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(step, 0UL);
|
||||
var dataBd = data.Clear().ToBuilder();
|
||||
var ordinalKeysBd = ordinalKeys.Clear().ToBuilder();
|
||||
var ord = step * 1UL << 7;
|
||||
@@ -633,7 +633,7 @@ public class ImmutableOrderedSet<T> : IReadOnlySet<T>, IList<T> where T : notnul
|
||||
return;
|
||||
}
|
||||
var step = getStep(ulong.MaxValue, itemCountUL + 1UL << 8);
|
||||
Log.assert(step > 0);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(step, 0UL);
|
||||
data.Clear();
|
||||
ordinalKeys.Clear();
|
||||
var ord = step * 1UL << 7;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+10
-14
@@ -1,11 +1,7 @@
|
||||
using Spark.Core.Diagnostics;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
namespace bts.collections {
|
||||
class KeyedCollection<T, TKey> : IList<T>, IList, IDictionary<TKey, T> {
|
||||
public class KeyedCollection<T, TKey> : IList<T>, IList, IDictionary<TKey, T> {
|
||||
readonly Dictionary<TKey, T> _dictionary;
|
||||
readonly List<T> _list = new List<T>();
|
||||
readonly Func<T, TKey> _key;
|
||||
@@ -74,19 +70,19 @@ namespace bts.collections {
|
||||
}
|
||||
|
||||
#region IList (non-generic) members
|
||||
object IList.this[int index] {
|
||||
object? IList.this[int index] {
|
||||
get => this[index];
|
||||
set => this[index] = ExceptionAssert.Argument.Is<T>(value, nameof(value));
|
||||
set => this[index] = (T)value;
|
||||
}
|
||||
int IList.Add(object value) {
|
||||
Add(ExceptionAssert.Argument.Is<T>(value, nameof(value)));
|
||||
int IList.Add(object? value) {
|
||||
Add((T)value);
|
||||
return Count - 1;
|
||||
}
|
||||
bool IList.Contains(object value) => Contains(ExceptionAssert.Argument.Is<T>(value, nameof(value)));
|
||||
int IList.IndexOf(object value) => IndexOf(ExceptionAssert.Argument.Is<T>(value, nameof(value)));
|
||||
void IList.Insert(int index, object value) => Insert(index, ExceptionAssert.Argument.Is<T>(value, nameof(value)));
|
||||
bool IList.Contains(object? value) => Contains((T)value);
|
||||
int IList.IndexOf(object? value) => IndexOf((T)value);
|
||||
void IList.Insert(int index, object? value) => Insert(index, (T)value);
|
||||
bool IList.IsFixedSize => false;
|
||||
void IList.Remove(object value) => Remove(ExceptionAssert.Argument.Is<T>(value, nameof(value)));
|
||||
void IList.Remove(object? value) => Remove((T)value);
|
||||
IEnumerator IEnumerable.GetEnumerator() => _list.GetEnumerator();
|
||||
#endregion
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ namespace bts.api.core {
|
||||
/// Unlike <see cref="System.Collections.ObjectModel.KeyedCollection{TKey, TValue}"/>, the keys
|
||||
/// aren't functions of the corresponding values, they are orthogonal.
|
||||
/// </remarks>
|
||||
class KeyedValueCollection<TKey, TValue> : IEnumerable<TValue> where TKey : notnull {
|
||||
public class KeyedValueCollection<TKey, TValue> : IEnumerable<TValue> where TKey : notnull {
|
||||
readonly Dictionary<TKey, TValue> _cache = new();
|
||||
|
||||
public KeyedValueCollection(IEnumerable<TValue> value, Func<TValue, TKey> key) {
|
||||
+8
-7
@@ -1,8 +1,9 @@
|
||||
namespace bts.collections {
|
||||
using bts.utils;
|
||||
|
||||
using Bts.Collections.Diagnostics;
|
||||
|
||||
using Spark.Core.Collections;
|
||||
using Spark.Core.Diagnostics;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -31,7 +32,7 @@ namespace bts.collections {
|
||||
public static IReadOnlyList<T> as_immutable<T>(this IList<T> list) =>
|
||||
new ReadOnlyListWrapper<T>(list);
|
||||
|
||||
public static List<T> empty_if_null<T>(this List<T> source) =>
|
||||
public static List<T> empty_if_null<T>(this List<T>? source) =>
|
||||
source ?? new(0);
|
||||
|
||||
public static int BinarySearch<T>(this IList<T> source, T item) where T : IComparable<T> =>
|
||||
@@ -290,7 +291,7 @@ namespace bts.collections {
|
||||
IEqualityComparer<T> comparer = null,
|
||||
bool allow_duplicates = true
|
||||
) {
|
||||
Log.notnull(list);
|
||||
ArgumentNullException.ThrowIfNull(list);
|
||||
if (source is null) {
|
||||
list.Clear();
|
||||
return;
|
||||
@@ -614,10 +615,10 @@ namespace bts.collections {
|
||||
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
||||
|
||||
// Validates the index before reversing it, so any inevitable 'IndexOutOfRange' exception isn't incidentally reversed too.
|
||||
int _check_reverse(int index) =>
|
||||
index < 0 ? throw ExceptionBuilder.IndexOutOfRange.lt_zero() :
|
||||
index >= Count ? throw ExceptionBuilder.IndexOutOfRange.gte_length() :
|
||||
_reverse(index);
|
||||
int _check_reverse(int index) {
|
||||
ExceptionAssert.Index.IsValid(index, Count);
|
||||
return _reverse(index);
|
||||
}
|
||||
|
||||
int _reverse(int index) =>
|
||||
Count - index - 1;
|
||||
+1
-1
@@ -177,7 +177,7 @@ namespace bts.collections {
|
||||
}
|
||||
}
|
||||
|
||||
internal class MappedDictionary<TKey, TSrc, TRes> : IReadOnlyDictionary<TKey, TRes> {
|
||||
public class MappedDictionary<TKey, TSrc, TRes> : IReadOnlyDictionary<TKey, TRes> {
|
||||
readonly IReadOnlyDictionary<TKey, TSrc> _dict;
|
||||
readonly Func<TSrc, TRes> _map;
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-5
@@ -5,8 +5,6 @@ namespace Spark.Core.Collections {
|
||||
|
||||
using mbts;
|
||||
|
||||
using Spark.Core.Diagnostics;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -32,9 +30,7 @@ namespace Spark.Core.Collections {
|
||||
int capacity = 4) {
|
||||
_comparer = comparer ?? Comparer<T>.Default;
|
||||
_eq_comparer = eq_comparer ?? EqualityComparer<T>.Default;
|
||||
if (capacity <= 0) {
|
||||
throw ExceptionBuilder.ArgumentOutOfRange.lte_zero(nameof(capacity));
|
||||
}
|
||||
ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(capacity, 0);
|
||||
_values = new T[capacity];
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#nullable enable
|
||||
namespace Spark.Core.Collections;
|
||||
|
||||
using Spark.Core.Diagnostics;
|
||||
using Bts.Collections.Diagnostics;
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
+12
-4
@@ -88,7 +88,9 @@ public class OrderedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IList<
|
||||
throw new ArgumentException("The same key is already present at another index", nameof(value));
|
||||
}
|
||||
} else {
|
||||
Log.assert(data.Remove(currKeyAtIndex));
|
||||
if (!data.Remove(currKeyAtIndex)) {
|
||||
throw new InvalidOperationException("Failed to remove existing key");
|
||||
}
|
||||
ordinalKeys[index] = (currOrdinalAtIndex, value.Key);
|
||||
}
|
||||
data[value.Key] = (value.Value, currOrdinalAtIndex);
|
||||
@@ -240,7 +242,9 @@ public class OrderedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IList<
|
||||
|
||||
public bool Remove(TKey key) {
|
||||
if (data.TryGetValue(key, out var v)) {
|
||||
Log.assert(data.Remove(key));
|
||||
if (!data.Remove(key)) {
|
||||
throw new InvalidOperationException("Failed to remove existing key");
|
||||
}
|
||||
ordinalKeys.RemoveSorted((v.Ordinal, key), ordinalKeyComparer);
|
||||
return true;
|
||||
}
|
||||
@@ -249,7 +253,9 @@ public class OrderedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IList<
|
||||
|
||||
public bool Remove(KeyValuePair<TKey, TValue> item) {
|
||||
if (data.TryGetValue(item.Key, out var v) && EqualityComparer<TValue>.Default.Equals(v.Value, item.Value)) {
|
||||
Log.assert(data.Remove(item.Key));
|
||||
if (!data.Remove(item.Key)) {
|
||||
throw new InvalidOperationException("Failed to remove existing key");
|
||||
}
|
||||
ordinalKeys.RemoveSorted((v.Ordinal, item.Key), ordinalKeyComparer);
|
||||
return true;
|
||||
}
|
||||
@@ -385,7 +391,9 @@ public class OrderedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IList<
|
||||
data[k] = (v, ord);
|
||||
ord += step;
|
||||
}
|
||||
Log.assert(Count == origCount + insertedItemCount);
|
||||
if (Count != origCount + insertedItemCount) {
|
||||
throw new InvalidOperationException("Count was not incremented by insertedItemCount");
|
||||
}
|
||||
}
|
||||
|
||||
/// WARNING: <param name="items" /> should already be unique (this fn does NOT check)
|
||||
File renamed without changes.
File renamed without changes.
+7
-9
@@ -1,23 +1,21 @@
|
||||
using Spark.Core.Diagnostics;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
namespace bts.collections {
|
||||
static class ReadOnlyListSubRangeWrapper {
|
||||
public static class ReadOnlyListSubRangeWrapper {
|
||||
public static IReadOnlyList<T> Create<T>(IReadOnlyList<T> source, int start, int length) =>
|
||||
new ReadOnlyListSubRangeWrapper<T>(source, start, length);
|
||||
}
|
||||
|
||||
class ReadOnlyListSubRangeWrapper<T> : IReadOnlyList<T> {
|
||||
public class ReadOnlyListSubRangeWrapper<T> : IReadOnlyList<T> {
|
||||
readonly IReadOnlyList<T> _source;
|
||||
readonly int _start, _length;
|
||||
|
||||
public ReadOnlyListSubRangeWrapper(IReadOnlyList<T> source, int start, int length) {
|
||||
_source = source ?? throw new ArgumentNullException(nameof(source));
|
||||
_start = start < 0 ? throw ExceptionBuilder.ArgumentOutOfRange.lt_zero(nameof(start)) : start;
|
||||
_length = length < 0 ? throw ExceptionBuilder.ArgumentOutOfRange.lt_zero(nameof(length)) : length;
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(start, 0);
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(length, 0);
|
||||
_start = start;
|
||||
_length = length;
|
||||
}
|
||||
|
||||
public T this[int index] => _source[_start + index];
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -3,7 +3,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace bts.collections {
|
||||
class SetStack<T> : ISet<T> {
|
||||
public class SetStack<T> : ISet<T> {
|
||||
readonly SortedList<VersionedValue> _stack = new SortedList<VersionedValue>(Comparer<VersionedValue>.Default);
|
||||
readonly Dictionary<T, long> _index;
|
||||
/// Note: <see cref="_version"/> is never reset (that is why a 'long' is used instead of an 'int').
|
||||
@@ -216,7 +216,7 @@ namespace bts.collections {
|
||||
}
|
||||
}
|
||||
|
||||
static class SetStackExtensions {
|
||||
public static class SetStackExtensions {
|
||||
public static bool TryPeek<T>(this SetStack<T> set_stack, out T result) {
|
||||
if (set_stack.Count > 0) {
|
||||
result = set_stack.Peek();
|
||||
@@ -235,4 +235,4 @@ namespace bts.collections {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
-3
@@ -1,4 +1,3 @@
|
||||
#nullable enable
|
||||
namespace Spark.Core.Collections {
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -62,8 +61,13 @@ namespace Spark.Core.Collections {
|
||||
|
||||
public void Dispose() { }
|
||||
|
||||
public bool MoveNext() =>
|
||||
_initialized.toggle_to(true);
|
||||
public bool MoveNext() {
|
||||
if (_initialized) {
|
||||
return false;
|
||||
}
|
||||
_initialized = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Reset() =>
|
||||
_initialized = false;
|
||||
+6
-2
@@ -70,12 +70,16 @@ public class SliceList<T> : IMutableListFacade<T> {
|
||||
var indexRowTupleComp = Comparer<(int Index, T Row)>.Create((a, b) => a.Index.CompareTo(b.Index));
|
||||
foreach (var r in removedItems) {
|
||||
int idx = source.IndexOf(r);
|
||||
Log.assert(idx >= 0);
|
||||
if (idx < 0) {
|
||||
throw new ArgumentException("Item in not found in current items", nameof(removedItems));
|
||||
}
|
||||
sortedRemoves.InsertSorted(idx);
|
||||
}
|
||||
foreach (var r in addedItems) {
|
||||
int idx = newItems.IndexOf(r);
|
||||
Log.assert(idx >= 0);
|
||||
if (idx < 0) {
|
||||
throw new ArgumentException("Item not found in new items", nameof(addedItems));
|
||||
}
|
||||
sortedInserts.InsertSorted((idx, r), indexRowTupleComp);
|
||||
}
|
||||
sliceRemoves = new();
|
||||
File renamed without changes.
+1
-1
@@ -9,7 +9,7 @@ namespace bts.collections {
|
||||
/// </summary>
|
||||
/// <typeparam name="TKey"></typeparam>
|
||||
/// <typeparam name="TValue"></typeparam>
|
||||
class SortedSetMap<TKey, TValue> : IEnumerable<IGroupingSet<TKey, TValue>>, ICollection {
|
||||
public class SortedSetMap<TKey, TValue> : IEnumerable<IGroupingSet<TKey, TValue>>, ICollection {
|
||||
readonly IComparer<TKey> _key_comparer;
|
||||
readonly IEqualityComparer<TValue> _value_eq_comparer;
|
||||
InternalGroupSet[] _key_values;
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,4 @@
|
||||
namespace Bts.Collections;
|
||||
|
||||
public delegate bool TryGetValue<T>(out T value);
|
||||
public delegate bool TryGetValue<TKey, TValue>(TKey key, out TValue value);
|
||||
File renamed without changes.
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,8 +1,6 @@
|
||||
namespace System {
|
||||
using bts;
|
||||
|
||||
#nullable disable
|
||||
namespace System {
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
public static class ConvertUtils {
|
||||
public static object try_convert(Type type, object obj) {
|
||||
@@ -10,32 +8,6 @@
|
||||
return result;
|
||||
}
|
||||
|
||||
#nullable enable
|
||||
public static bool try_convert<T>(
|
||||
object obj,
|
||||
[NotNullWhen(true)]out T? result,
|
||||
LogLevel? log_level = null,
|
||||
LogSubsystem log_subsystem = LogSubsystem.gen,
|
||||
string? name = null) {
|
||||
if (obj is T t) {
|
||||
result = t;
|
||||
return true;
|
||||
}
|
||||
if (try_convert(typeof(T), obj, out var result_obj)) {
|
||||
result = (T)result_obj;
|
||||
return true;
|
||||
}
|
||||
if (log_level.HasValue) {
|
||||
name = name is null ? "obj" : $"'{name}'";
|
||||
var msg = $"Expected {name} to be of type '{typeof(T)}', actually " +
|
||||
$"'{obj?.GetType()?.ToString() ?? "null"}'.";
|
||||
Log.log(new(log_subsystem, log_level.Value, msg));
|
||||
}
|
||||
result = default;
|
||||
return false;
|
||||
}
|
||||
#nullable disable
|
||||
|
||||
public static bool try_convert(Type type, object obj, out object result) {
|
||||
if (obj == null) {
|
||||
result = get_default(type);
|
||||
@@ -68,6 +40,10 @@
|
||||
try_convert(obj, out T result) ? result : default_value;
|
||||
|
||||
public static bool try_convert<T>(object obj, out T result) {
|
||||
if (obj is T t) {
|
||||
result = t;
|
||||
return true;
|
||||
}
|
||||
bool rv = try_convert(typeof(T), obj, out object r_obj);
|
||||
result = (T)r_obj;
|
||||
return rv;
|
||||
+1
-55
@@ -1,7 +1,4 @@
|
||||
#nullable enable
|
||||
using bts.utils;
|
||||
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
@@ -191,57 +188,6 @@ namespace Spark.Core.Diagnostics {
|
||||
}
|
||||
}
|
||||
|
||||
public static class NumericArgument {
|
||||
public static void is_real<T>(T argument, [CallerArgumentExpression(nameof(argument))] string? name = null)
|
||||
where T : IFloatingPoint<T> {
|
||||
if (!argument.is_real()) {
|
||||
throw ExceptionBuilder.NumericArgument.must_be_real(name);
|
||||
}
|
||||
}
|
||||
|
||||
public static void is_real_non_zero<T>(T argument, [CallerArgumentExpression(nameof(argument))] string? name = null)
|
||||
where T : IFloatingPoint<T> {
|
||||
if (!argument.is_real_non_zero()) {
|
||||
throw ExceptionBuilder.NumericArgument.must_be_real_non_zero(name);
|
||||
}
|
||||
}
|
||||
|
||||
public static void is_real_negative<T>(T argument, [CallerArgumentExpression(nameof(argument))] string? name = null)
|
||||
where T : IFloatingPoint<T> {
|
||||
if (!argument.is_real_negative()) {
|
||||
throw ExceptionBuilder.NumericArgument.must_be_real_negative(name);
|
||||
}
|
||||
}
|
||||
|
||||
public static void is_real_non_negative<T>(T argument, [CallerArgumentExpression(nameof(argument))] string? name = null)
|
||||
where T : IFloatingPoint<T> {
|
||||
if (!argument.is_real_non_negative()) {
|
||||
throw ExceptionBuilder.NumericArgument.must_be_real_non_negative(name);
|
||||
}
|
||||
}
|
||||
|
||||
public static void is_real_positive<T>(T argument, [CallerArgumentExpression(nameof(argument))] string? name = null)
|
||||
where T : IFloatingPoint<T> {
|
||||
if (!argument.is_real_positive()) {
|
||||
throw ExceptionBuilder.NumericArgument.must_be_real_positive(name);
|
||||
}
|
||||
}
|
||||
|
||||
public static void is_real_non_positive<T>(T argument, [CallerArgumentExpression(nameof(argument))] string? name = null)
|
||||
where T : IFloatingPoint<T> {
|
||||
if (!argument.is_real_non_positive()) {
|
||||
throw ExceptionBuilder.NumericArgument.must_be_real_non_positive(name);
|
||||
}
|
||||
}
|
||||
|
||||
public static void not_infinity<T>(T argument, [CallerArgumentExpression(nameof(argument))] string? name = null)
|
||||
where T : IFloatingPoint<T> {
|
||||
if (T.IsInfinity(argument)) {
|
||||
throw ExceptionBuilder.NumericArgument.must_not_be_infinity(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class InvalidOperation {
|
||||
public static void That(bool condition, string message) {
|
||||
if (!condition)
|
||||
-33
@@ -24,29 +24,6 @@ namespace Spark.Core.Diagnostics {
|
||||
new ArgumentException("Value is null or empty.", name);
|
||||
}
|
||||
|
||||
public static class NumericArgument {
|
||||
public static ArgumentException must_be_real(string name) =>
|
||||
new(Format.MustBe(NumericTerms.real()), name);
|
||||
|
||||
public static ArgumentException must_be_real_non_zero(string name) =>
|
||||
new(Format.MustBe(NumericTerms.real_non_zero()), name);
|
||||
|
||||
public static ArgumentException must_be_real_non_negative(string name) =>
|
||||
new(Format.MustBe(NumericTerms.real_non_negative()), name);
|
||||
|
||||
public static ArgumentException must_be_real_non_positive(string name) =>
|
||||
new(Format.MustBe(NumericTerms.real_non_positive()), name);
|
||||
|
||||
public static ArgumentException must_be_real_negative(string name) =>
|
||||
new(Format.MustBe(NumericTerms.real_negative()), name);
|
||||
|
||||
public static ArgumentException must_be_real_positive(string name) =>
|
||||
new(Format.MustBe(NumericTerms.real_positive()), name);
|
||||
|
||||
public static ArgumentException must_not_be_infinity(string name) =>
|
||||
new(Format.must_not_be(NumericTerms.not_infinity()), name);
|
||||
}
|
||||
|
||||
public static class IndexOutOfRange {
|
||||
public static IndexOutOfRangeException lt_zero() =>
|
||||
new IndexOutOfRangeException("Index is less than 0");
|
||||
@@ -103,15 +80,5 @@ namespace Spark.Core.Diagnostics {
|
||||
GreaterThan = "Greater than",
|
||||
GreaterThanOrEqualTo = "Greater than or equal to";
|
||||
}
|
||||
|
||||
public static class NumericTerms {
|
||||
public static string real() => "real";
|
||||
public static string real_non_zero() => "real non-zero";
|
||||
public static string real_non_negative() => "real non-negative";
|
||||
public static string real_non_positive() => "real non-positive";
|
||||
public static string real_positive() => "real positive";
|
||||
public static string real_negative() => "real negative";
|
||||
public static string not_infinity() => "not infinity";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loaded 100 of 127 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user