mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-20 11:10:05 +08:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
108 lines
3.7 KiB
Plaintext
108 lines
3.7 KiB
Plaintext
-- Created on: 2008-01-22
|
|
-- Created by: Vladislav ROMASHKO
|
|
-- Copyright (c) 2008-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
class Iterator from TFunction
|
|
|
|
---Purpose: Iterator of the graph of functions
|
|
|
|
uses
|
|
|
|
Label from TDF,
|
|
GUID from Standard,
|
|
LabelList from TDF,
|
|
LabelMap from TDF,
|
|
ExecutionStatus from TFunction,
|
|
Scope from TFunction
|
|
|
|
is
|
|
|
|
Create
|
|
---Purpose: An empty constructor.
|
|
returns Iterator from TFunction;
|
|
|
|
Create (Access : Label from TDF)
|
|
---Purpose: A constructor.
|
|
-- Initializes the iterator.
|
|
returns Iterator from TFunction;
|
|
|
|
Init (me : in out;
|
|
Access : Label from TDF)
|
|
---Purpose: Initializes the Iterator.
|
|
is virtual;
|
|
|
|
SetUsageOfExecutionStatus (me : in out;
|
|
usage : Boolean from Standard);
|
|
---Purpose: Defines the mode of iteration - usage or not of the execution status.
|
|
-- If the iterator takes into account the execution status,
|
|
-- the method ::Current() returns only "not executed" functions
|
|
-- while their status is not changed.
|
|
-- If the iterator ignores the execution status,
|
|
-- the method ::Current() returns the functions
|
|
-- following their dependencies and ignoring the execution status.
|
|
|
|
GetUsageOfExecutionStatus (me)
|
|
---Purpose: Returns usage of execution status by the iterator.
|
|
returns Boolean from Standard;
|
|
|
|
GetMaxNbThreads (me)
|
|
---Purpose: Analyses the graph of dependencies and returns
|
|
-- maximum number of threads may be used to calculate the model.
|
|
returns Integer from Standard
|
|
is virtual;
|
|
|
|
Current (me)
|
|
---Purpose: Returns the current list of functions.
|
|
-- If the iterator uses the execution status,
|
|
-- the returned list contains only the functions
|
|
-- with "not executed" status.
|
|
---C++: return const &
|
|
returns LabelList from TDF
|
|
is virtual;
|
|
|
|
More (me)
|
|
---Purpose: Returns false if the graph of functions is fully iterated.
|
|
returns Boolean from Standard
|
|
is virtual;
|
|
|
|
Next (me : in out)
|
|
---Purpose: Switches the iterator to the next list of current functions.
|
|
is virtual;
|
|
|
|
GetStatus (me;
|
|
func : Label from TDF)
|
|
---Purpose: A help-function aimed to help the user to check the status of retrurned function.
|
|
-- It calls TFunction_GraphNode::GetStatus() inside.
|
|
returns ExecutionStatus from TFunction;
|
|
|
|
SetStatus (me;
|
|
func : Label from TDF;
|
|
status : ExecutionStatus from TFunction);
|
|
---Purpose: A help-function aimed to help the user to change the execution status of a function.
|
|
-- It calls TFunction_GraphNode::SetStatus() inside.
|
|
|
|
Dump (me;
|
|
OS : in out OStream from Standard)
|
|
---C++: return &
|
|
returns OStream from Standard;
|
|
|
|
fields
|
|
|
|
myCurrent : LabelList from TDF;
|
|
myUsageOfExecutionStatus : Boolean from Standard;
|
|
myPassedFunctions : LabelMap from TDF; -- an internal field.
|
|
myScope : Scope from TFunction; -- an internal field.
|
|
|
|
end Iterator;
|