Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:29

0001 // Created on: 1992-02-03
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _Transfer_IteratorOfProcessForTransient_HeaderFile
0018 #define _Transfer_IteratorOfProcessForTransient_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TColStd_HSequenceOfTransient.hxx>
0025 #include <Transfer_TransferIterator.hxx>
0026 #include <Transfer_TransferMapOfProcessForTransient.hxx>
0027 
0028 class Standard_NoSuchObject;
0029 class Standard_Transient;
0030 class Transfer_ProcessForTransient;
0031 class Transfer_ActorOfProcessForTransient;
0032 class Transfer_Binder;
0033 
0034 class Transfer_IteratorOfProcessForTransient  : public Transfer_TransferIterator
0035 {
0036 public:
0037 
0038   DEFINE_STANDARD_ALLOC
0039 
0040   
0041   //! Creates an empty Iterator
0042   //! if withstarts is True, each Binder to be iterated will
0043   //! be associated to its corresponding Starting Object
0044   Standard_EXPORT Transfer_IteratorOfProcessForTransient(const Standard_Boolean withstarts);
0045   
0046   //! Adds a Binder to the iteration list (construction)
0047   //! with no corresponding Starting Object
0048   //! (note that Result is brought by Binder)
0049   Standard_EXPORT void Add (const Handle(Transfer_Binder)& binder);
0050   
0051   //! Adds a Binder to the iteration list, associated with
0052   //! its corresponding Starting Object "start"
0053   //! Starting Object is ignored if not required at
0054   //! Creation time
0055   Standard_EXPORT void Add (const Handle(Transfer_Binder)& binder, const Handle(Standard_Transient)& start);
0056   
0057   //! After having added all items, keeps or rejects items
0058   //! which are attached to starting data given by <only>
0059   //! <keep> = True (D) : keeps. <keep> = False : rejects
0060   //! Does nothing if <withstarts> was False
0061   Standard_EXPORT void Filter (const Handle(TColStd_HSequenceOfTransient)& list, const Standard_Boolean keep = Standard_True);
0062   
0063   //! Returns True if Starting Object is available
0064   //! (defined at Creation Time)
0065   Standard_EXPORT Standard_Boolean HasStarting() const;
0066   
0067   //! Returns corresponding Starting Object
0068   Standard_EXPORT const Handle(Standard_Transient)& Starting() const;
0069 
0070 
0071 
0072 
0073 protected:
0074 
0075 
0076 
0077 
0078 
0079 private:
0080 
0081 
0082 
0083   Handle(TColStd_HSequenceOfTransient) thestarts;
0084 
0085 
0086 };
0087 
0088 
0089 
0090 
0091 
0092 
0093 
0094 #endif // _Transfer_IteratorOfProcessForTransient_HeaderFile