Ejemplo n.º 1
0
void RGHashTable :: RestoreAll (RGFile& f) {

	RGPersistent::RestoreAll (f);
	ClearAndDelete ();
	int TempNumberOfLists;
	f.Read (TempNumberOfLists);
	RGDList** TempArray;

	if (TempNumberOfLists < NumberOfLists) {

		TempArray = new RGDList* [TempNumberOfLists];
		
		for (int i=0; i<NumberOfLists; i++) {

			if (i >= TempNumberOfLists)
				delete ListArray [i];

			else
				TempArray [i] = ListArray [i];
		}

		delete[] ListArray;
		ListArray = TempArray;
		NumberOfLists = TempNumberOfLists;
	}

	else if (TempNumberOfLists > NumberOfLists) {

		TempArray = new RGDList* [TempNumberOfLists];

		for (int i=0; i<TempNumberOfLists; i++) {

			if (i < NumberOfLists)
				TempArray [i] = ListArray [i];

			else
				TempArray [i] = new RGDList;
		}

		delete[] ListArray;
		ListArray = TempArray;
		NumberOfLists = TempNumberOfLists;
	}

	f.Read (NumberOfEntries);

	for (int i=0; i<NumberOfLists; i++)
		ListArray [i]->RestoreAll (f);

}
Ejemplo n.º 2
0
void DataInterval :: RestoreAll (RGFile& f) {

	RGPersistent::RestoreAll (f);
	f.Read (Left);
	f.Read (Right);
	f.Read (Center);
	f.Read (Mass);
	f.Read (Height);
	f.Read (Mode);
	f.Read (MaxAtMode);
	f.Read (FixedLeft);
	f.Read (FixedRight);
}
Ejemplo n.º 3
0
void NoiseInterval :: RestoreAll (RGFile& f) {

	RGPersistent::RestoreAll (f);
	f.Read (Left);
	f.Read (Right);
	f.Read (Maximum);
	f.Read (Minimum);
	f.Read (Average);
	f.Read (NumberOfMaxima);
	f.Read (NumberOfMinima);
	f.Read (NumberOfSamples);
	f.Read (Norm2);
}
Ejemplo n.º 4
0
void STRBaseLocus :: RestoreAll (RGFile& f) {

    BaseLocus::RestoreAll (f);
    f.Read (MinimumBP);
    f.Read (MaximumBP);
}
Ejemplo n.º 5
0
void STRBaseAllele :: RestoreAll (RGFile& f) {

    BaseAllele::RestoreAll (f);
    f.Read (BP);
}
void RGXmlSizeRestriction :: RestoreAll (RGFile& f) {

	RGXmlDataRestriction::RestoreAll (f);
	f.Read (SizeLimit);
}
Ejemplo n.º 7
0
void STRTracePrequalification :: RestoreAll (RGFile& f) {

	TracePrequalification::RestoreAll (f);
	f.Read (WindowWidth);
}