mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024742: Remove rarely used collection classes: Stack
Generic class TCollection_Stack removed (along with TCollection_StackIterator and TCollection_StackNode). Code using TCollection_Stack changed to equivalent use of TCollection_List (replacing Push -> Prepend, Top -> First, Pop -> RemoveFirst).
This commit is contained in:
@@ -41,7 +41,7 @@ uses
|
||||
LabelNodePtr from TDF,
|
||||
Delta from TDF,
|
||||
IDFilter from TDF,
|
||||
StackOfInteger from TColStd,
|
||||
ListOfInteger from TColStd,
|
||||
HAllocator from TDF
|
||||
|
||||
raises
|
||||
@@ -226,7 +226,7 @@ fields
|
||||
myNbTouchedAtt : Integer from Standard;
|
||||
myNotUndoMode : Boolean from Standard;
|
||||
myTime : Integer from Standard;
|
||||
myTimes : StackOfInteger from TColStd;
|
||||
myTimes : ListOfInteger from TColStd;
|
||||
myLabelNodeAllocator: HAllocator from TDF;
|
||||
myAllowModification : Boolean from Standard;
|
||||
|
||||
|
@@ -118,7 +118,7 @@ void TDF_Data::Destroy()
|
||||
|
||||
Standard_Integer TDF_Data::OpenTransaction()
|
||||
{
|
||||
myTimes.Push(myTime);
|
||||
myTimes.Prepend(myTime);
|
||||
return ++myTransaction;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ Handle(TDF_Delta) TDF_Data::CommitTransaction
|
||||
--myTransaction;
|
||||
if (withDelta) {
|
||||
if (!delta->IsEmpty()) {
|
||||
delta->Validity(myTimes.Top(),myTime);
|
||||
delta->Validity(myTimes.First(),myTime);
|
||||
#ifdef DEB_DELTA
|
||||
if (myTransaction == 0) {
|
||||
cout<<"TDF_Data::Commit generated this delta in t=0:"<<endl;
|
||||
@@ -163,7 +163,7 @@ Handle(TDF_Delta) TDF_Data::CommitTransaction
|
||||
}
|
||||
#endif
|
||||
}
|
||||
myTimes.Pop();
|
||||
myTimes.RemoveFirst();
|
||||
}
|
||||
TDF_Data_DebugModified("COMMIT");
|
||||
return delta;
|
||||
|
Reference in New Issue
Block a user