コード例 #1
0
ファイル: Geobase.cs プロジェクト: nomaly/metaquotetest
        private Geobase(UnmanagedBuffer buffer)
        {
            _buffer = buffer;

            var cityIndexData = GeobaseIndexData <GLocation> .Create(Header.Records, GetCityLocationIndex, GetLocation);

            CityIndex = new GeobaseIndex <string, GLocation>(cityIndexData, new GCityComparer());

            var ipIntervalIndexData = GeobaseIndexData <GIpInterval> .Create(Header.Records, idx => idx, GetIpInterval);

            IpIntervalIndex = new GeobaseIndex <string, GIpInterval>(ipIntervalIndexData, new GIpComparer());
        }
コード例 #2
0
 public GeobaseIndex(GeobaseIndexData <TStruct> indexData, IGComparer <TKey, TStruct> comparer)
 {
     IndexData = indexData;
     Comparer  = comparer;
 }