// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Standard_AncestorIterator_HeaderFile #define _Standard_AncestorIterator_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Handle_Standard_Type_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class Standard_Type; class Standard_NoMoreObject; //! The class is a iterator which provides
//! information about inheritance.
//! An AncestorIterator object is used to scan sequentially the
//! hierarchy of a type object from its direct super-type to the root.
class Standard_AncestorIterator { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! The copy constructor for a AncestorIterator .
//!
Standard_EXPORT Standard_AncestorIterator(const Standard_AncestorIterator& anOther); //! Creates an iterator on the type .
//! Set the iterator at the beginning of the ancestors;
//! this means near parents are first.
Standard_EXPORT Standard_AncestorIterator(const Handle(Standard_Type)& aType); //! Assigns an AncestorIterator from another AncestorIterator.
Standard_EXPORT void Assign(const Standard_AncestorIterator& anOther) ; void operator =(const Standard_AncestorIterator& anOther) { Assign(anOther); } //! Returns True if there are other ancestors.
Standard_EXPORT Standard_Boolean More() const; //! Moves the position of the iterator to the next super-type.
//! If the current position corresponds to a root class, it becomes undefined.
Standard_EXPORT void Next() ; //! Returns an corresponding to the current position
//! of the iterator.
//! If there are no more Ancestors.
Standard_EXPORT Standard_AncestorIterator Iterator() const; //! Returns the type corresponding to the current position of
//! the iterator.
Standard_EXPORT Handle_Standard_Type Value() const; protected: private: Handle_Standard_Type myType; Standard_Integer myNbIter; }; // other Inline functions and methods (like "C++: function call" methods) #endif