Anonymous user
AVL tree/Managed C++: Difference between revisions
→Code
No edit summary |
(→Code) |
||
Line 162:
generic<typename T>
Cloner<T>^ Cloner<T>::Invisible::get() { return gcnew DefaultNoCloner<T>(); }
public ref struct OutOfKeyOrderException : public Exception
{
Line 168 ⟶ 169:
OutOfKeyOrderException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 179 ⟶ 180:
TreeInvalidParentException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 190 ⟶ 191:
TreeOutOfBalanceException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 201 ⟶ 202:
InvalidEmptyTreeException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 213 ⟶ 214:
InvalidEndItemException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 224 ⟶ 225:
EntryAlreadyExistsException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 235 ⟶ 236:
DifferentKeysException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 246 ⟶ 247:
AddSubTreeFailedException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 257 ⟶ 258:
IsEndItemException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 268 ⟶ 269:
EntryNotFoundException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 279 ⟶ 280:
InvalidSetOperationException() : Exception(message)
{
HelpLink = gcnew String("
Source = gcnew String("
}
};
Line 1,013 ⟶ 1,014:
Header = gcnew Node();
TComparer = System::Collections::Generic::Comparer<T>::Default;
TCloner =
THasher =
}
Line 1,022 ⟶ 1,023:
Header = gcnew Node();
TComparer = TCompare;
TCloner =
THasher =
}
Line 1,041 ⟶ 1,042:
Header = gcnew Node();
TComparer = System::Collections::Generic::Comparer<T>::Default;
TCloner =
THasher =
for each (T t in Collection) Add(TCloner->Clone(t));
Line 1,052 ⟶ 1,053:
Header = gcnew Node();
TComparer = System::Collections::Generic::Comparer<T>::Default;
TCloner =
THasher =
for each (T t in Collection) Add(TCloner->Clone(t));
Line 1,064 ⟶ 1,065:
Header = gcnew Node();
TComparer = TCompare;
TCloner =
THasher =
for each (T t in Collection) Add(TCloner->Clone(t));
Line 1,086 ⟶ 1,087:
Nodes=0;
System::Collections::Generic::IComparer<T>^ TCompare = (System::Collections::Generic::IComparer<T>^)si->GetValue("TComparer", System::Collections::Generic::IComparer<T>::typeid);
Header = gcnew Node();
Line 1,393 ⟶ 1,394:
virtual void GetObjectData(SerializationInfo^ si, StreamingContext sc)
{
si->SetType(
Type^ type = T::typeid;
Line 2,012 ⟶ 2,013:
{
System::Collections::Generic::IComparer<T>^ TComparer = R->TComparer;
SetEntry<T> first1 = A->Begin;
Line 2,244 ⟶ 2,245:
}
using namespace
int main(array<System::String ^> ^args)
|