mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0026912: CLang 3.6.2 compiler warning [-Winconsistent-missing-override]
This commit is contained in:
@@ -87,13 +87,13 @@ public:
|
||||
*/
|
||||
|
||||
//! Return name of resource (i.e. "TObj")
|
||||
virtual Standard_EXPORT Standard_CString ResourcesName();
|
||||
virtual Standard_EXPORT Standard_CString ResourcesName() Standard_OVERRIDE;
|
||||
|
||||
//! Return format (i.e "TObj")
|
||||
virtual Standard_EXPORT void Formats(TColStd_SequenceOfExtendedString& theFormats);
|
||||
virtual Standard_EXPORT void Formats(TColStd_SequenceOfExtendedString& theFormats) Standard_OVERRIDE;
|
||||
|
||||
//! Defines message driver for CDM layer
|
||||
virtual Standard_EXPORT Handle(CDM_MessageDriver) MessageDriver()
|
||||
virtual Standard_EXPORT Handle(CDM_MessageDriver) MessageDriver() Standard_OVERRIDE
|
||||
{ return myMessageDriver; }
|
||||
|
||||
protected:
|
||||
|
@@ -31,7 +31,7 @@ class TObj_HiddenPartition : public TObj_Partition
|
||||
Standard_EXPORT TObj_HiddenPartition (const TDF_Label& theLabel);
|
||||
|
||||
//! Returns all flags of father except Visible
|
||||
virtual Standard_EXPORT Standard_Integer GetTypeFlags() const;
|
||||
virtual Standard_EXPORT Standard_Integer GetTypeFlags() const Standard_OVERRIDE;
|
||||
|
||||
protected:
|
||||
//! Persistence of TObj object
|
||||
|
@@ -56,14 +56,14 @@ class TObj_LabelIterator : public TObj_ObjectIterator
|
||||
*/
|
||||
|
||||
//! Returns True if there is a current Item in the iteration.
|
||||
virtual Standard_EXPORT Standard_Boolean More () const
|
||||
virtual Standard_EXPORT Standard_Boolean More () const Standard_OVERRIDE
|
||||
{ return !myNode.IsNull(); }
|
||||
|
||||
//! Move to the next Item
|
||||
virtual Standard_EXPORT void Next ();
|
||||
virtual Standard_EXPORT void Next () Standard_OVERRIDE;
|
||||
|
||||
//! Returns the current item
|
||||
virtual Standard_EXPORT Handle(TObj_Object) Value () const
|
||||
virtual Standard_EXPORT Handle(TObj_Object) Value () const Standard_OVERRIDE
|
||||
{ return myObject; }
|
||||
|
||||
//! Returns the label of the current item
|
||||
|
@@ -43,13 +43,13 @@ class TObj_ModelIterator : public TObj_ObjectIterator
|
||||
|
||||
//! Returns True if iteration is not finished and method Value()
|
||||
//! will give the object
|
||||
virtual Standard_EXPORT Standard_Boolean More() const;
|
||||
virtual Standard_EXPORT Standard_Boolean More() const Standard_OVERRIDE;
|
||||
|
||||
//! Iterates to the next object
|
||||
virtual Standard_EXPORT void Next ();
|
||||
virtual Standard_EXPORT void Next () Standard_OVERRIDE;
|
||||
|
||||
//! Returns current object (or MainObj of Model if iteration has finished)
|
||||
virtual Standard_EXPORT Handle(TObj_Object) Value () const;
|
||||
virtual Standard_EXPORT Handle(TObj_Object) Value () const Standard_OVERRIDE;
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
@@ -45,7 +45,7 @@ class TObj_OcafObjectIterator : public TObj_LabelIterator
|
||||
*/
|
||||
|
||||
//! Shift iterator to the next object
|
||||
virtual Standard_EXPORT void MakeStep();
|
||||
virtual Standard_EXPORT void MakeStep() Standard_OVERRIDE;
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
@@ -62,7 +62,7 @@ class TObj_Partition : public TObj_Object
|
||||
|
||||
//! Sets name of the object. partition does not check unique of own name
|
||||
virtual Standard_EXPORT Standard_Boolean SetName
|
||||
(const Handle(TCollection_HExtendedString)& theName) const;
|
||||
(const Handle(TCollection_HExtendedString)& theName) const Standard_OVERRIDE;
|
||||
|
||||
public:
|
||||
/**
|
||||
@@ -71,7 +71,7 @@ class TObj_Partition : public TObj_Object
|
||||
|
||||
//! Preforms updating the links and dependances of the object which are not
|
||||
//! stored in persistence. Does not register the partition name
|
||||
virtual Standard_EXPORT void AfterRetrieval();
|
||||
virtual Standard_EXPORT void AfterRetrieval() Standard_OVERRIDE;
|
||||
|
||||
public:
|
||||
/**
|
||||
@@ -128,7 +128,7 @@ class TObj_Partition : public TObj_Object
|
||||
//! Coping the data of me to Target object.
|
||||
//! return Standard_False is Target object is different type
|
||||
Standard_EXPORT virtual Standard_Boolean copyData
|
||||
(const Handle(TObj_Object)& theTargetObject);
|
||||
(const Handle(TObj_Object)& theTargetObject) Standard_OVERRIDE;
|
||||
|
||||
private:
|
||||
/**
|
||||
|
@@ -45,7 +45,7 @@ class TObj_ReferenceIterator : public TObj_LabelIterator
|
||||
*/
|
||||
|
||||
//! Shift iterator to the next object
|
||||
virtual Standard_EXPORT void MakeStep();
|
||||
virtual Standard_EXPORT void MakeStep() Standard_OVERRIDE;
|
||||
|
||||
Handle(Standard_Type) myType; //!< Type of objects to iterate on
|
||||
|
||||
|
@@ -52,13 +52,13 @@ class TObj_SequenceIterator : public TObj_ObjectIterator
|
||||
*/
|
||||
|
||||
//! Returns True if there is a current Item in the iteration.
|
||||
virtual Standard_EXPORT Standard_Boolean More () const;
|
||||
virtual Standard_EXPORT Standard_Boolean More () const Standard_OVERRIDE;
|
||||
|
||||
//! Move to the next Item
|
||||
virtual Standard_EXPORT void Next ();
|
||||
virtual Standard_EXPORT void Next () Standard_OVERRIDE;
|
||||
|
||||
//! Returns the current item
|
||||
virtual Standard_EXPORT Handle(TObj_Object) Value () const;
|
||||
virtual Standard_EXPORT Handle(TObj_Object) Value () const Standard_OVERRIDE;
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
@@ -46,7 +46,7 @@ class TObj_TIntSparseArray : public TDF_Attribute
|
||||
static Standard_EXPORT const Standard_GUID& GetID();
|
||||
|
||||
//! Returns the ID of this attribute.
|
||||
Standard_EXPORT const Standard_GUID& ID() const;
|
||||
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
||||
|
||||
//! Creates TObj_TIntSparseArray attribute on given label.
|
||||
static Standard_EXPORT Handle(TObj_TIntSparseArray) Set
|
||||
@@ -90,31 +90,31 @@ class TObj_TIntSparseArray : public TDF_Attribute
|
||||
|
||||
//! Returns an new empty TObj_TIntSparseArray attribute. It is used by the
|
||||
//! copy algorithm.
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
|
||||
|
||||
//! Moves this delta into a new other attribute.
|
||||
Standard_EXPORT Handle(TDF_Attribute) BackupCopy() const;
|
||||
Standard_EXPORT Handle(TDF_Attribute) BackupCopy() const Standard_OVERRIDE;
|
||||
|
||||
//! Restores the set using info saved in backup attribute theDelta.
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theDelta);
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theDelta) Standard_OVERRIDE;
|
||||
|
||||
//! This method is used when copying an attribute from a source structure
|
||||
//! into a target structure.
|
||||
Standard_EXPORT void Paste(const Handle(TDF_Attribute)& theInto,
|
||||
const Handle(TDF_RelocationTable)& theRT) const;
|
||||
const Handle(TDF_RelocationTable)& theRT) const Standard_OVERRIDE;
|
||||
|
||||
//! It is called just before Commit or Abort transaction
|
||||
//! and does Backup() to create a delta
|
||||
Standard_EXPORT void BeforeCommitTransaction();
|
||||
Standard_EXPORT void BeforeCommitTransaction() Standard_OVERRIDE;
|
||||
|
||||
//! Applies theDelta to this.
|
||||
Standard_EXPORT void DeltaOnModification
|
||||
(const Handle(TDF_DeltaOnModification)& theDelta);
|
||||
(const Handle(TDF_DeltaOnModification)& theDelta) Standard_OVERRIDE;
|
||||
|
||||
//! Clears my modification delta; called after application of theDelta
|
||||
Standard_EXPORT Standard_Boolean AfterUndo
|
||||
(const Handle(TDF_AttributeDelta)& theDelta,
|
||||
const Standard_Boolean toForce);
|
||||
const Standard_Boolean toForce) Standard_OVERRIDE;
|
||||
|
||||
public:
|
||||
//! Methods to handle the modification delta
|
||||
|
@@ -43,7 +43,7 @@ class TObj_TModel : public TDF_Attribute
|
||||
static Standard_EXPORT const Standard_GUID& GetID();
|
||||
|
||||
//! Returns the ID of TObj_TModel attribute.
|
||||
Standard_EXPORT const Standard_GUID& ID() const;
|
||||
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
||||
|
||||
public:
|
||||
//! Methods for setting and obtaining the Model object
|
||||
@@ -59,16 +59,16 @@ class TObj_TModel : public TDF_Attribute
|
||||
|
||||
//! Returns an new empty TObj_TModel attribute. It is used by the
|
||||
//! copy algorithm.
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
|
||||
|
||||
//! Restores the backuped contents from <theWith> into this one. It is used
|
||||
//! when aborting a transaction.
|
||||
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& theWith);
|
||||
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& theWith) Standard_OVERRIDE;
|
||||
|
||||
//! This method is used when copying an attribute from a source structure
|
||||
//! into a target structure.
|
||||
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& theInto,
|
||||
const Handle(TDF_RelocationTable)& theRT) const;
|
||||
const Handle(TDF_RelocationTable)& theRT) const Standard_OVERRIDE;
|
||||
|
||||
private:
|
||||
//! Fields
|
||||
|
@@ -41,7 +41,7 @@ class TObj_TNameContainer : public TDF_Attribute
|
||||
static Standard_EXPORT const Standard_GUID& GetID();
|
||||
|
||||
//! Returns the ID of TObj_TNameContainer attribute.
|
||||
Standard_EXPORT const Standard_GUID& ID() const;
|
||||
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
||||
|
||||
public:
|
||||
//! Method for create TObj_TNameContainer object
|
||||
@@ -79,16 +79,16 @@ class TObj_TNameContainer : public TDF_Attribute
|
||||
|
||||
//! Returns an new empty TObj_TNameContainer attribute. It is used by the
|
||||
//! copy algorithm.
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
|
||||
|
||||
//! Restores the backuped contents from <theWith> into this one. It is used
|
||||
//! when aborting a transaction.
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theWith);
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theWith) Standard_OVERRIDE;
|
||||
|
||||
//! This method is used when copying an attribute from a source structure
|
||||
//! into a target structure.
|
||||
Standard_EXPORT void Paste(const Handle(TDF_Attribute)& theInto,
|
||||
const Handle(TDF_RelocationTable)& theRT) const;
|
||||
const Handle(TDF_RelocationTable)& theRT) const Standard_OVERRIDE;
|
||||
|
||||
private:
|
||||
//! Fields
|
||||
|
@@ -45,7 +45,7 @@ class TObj_TObject : public TDF_Attribute
|
||||
static Standard_EXPORT const Standard_GUID& GetID();
|
||||
|
||||
//! Returns the ID of TObj_TObject attribute.
|
||||
Standard_EXPORT const Standard_GUID& ID() const;
|
||||
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
||||
|
||||
public:
|
||||
//! Method for create TObj_TObject object
|
||||
@@ -68,26 +68,26 @@ class TObj_TObject : public TDF_Attribute
|
||||
|
||||
//! Returns an new empty TObj_TObject attribute. It is used by the
|
||||
//! copy algorithm.
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
|
||||
|
||||
//! Restores the backuped contents from <theWith> into this one. It is used
|
||||
//! when aborting a transaction.
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theWith);
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theWith) Standard_OVERRIDE;
|
||||
|
||||
//! This method is used when copying an attribute from a source structure
|
||||
//! into a target structure.
|
||||
Standard_EXPORT void Paste(const Handle(TDF_Attribute)& theInto,
|
||||
const Handle(TDF_RelocationTable)& theRT) const;
|
||||
const Handle(TDF_RelocationTable)& theRT) const Standard_OVERRIDE;
|
||||
|
||||
//! Tell TObj_Object to die,
|
||||
//! i.e. (myElem->IsAlive() == false) after that
|
||||
Standard_EXPORT void BeforeForget();
|
||||
Standard_EXPORT void BeforeForget() Standard_OVERRIDE;
|
||||
|
||||
//! Tell TObj_Object to rise from the dead,
|
||||
//! i.e. (myElem->IsAlive() == true) after that
|
||||
Standard_EXPORT Standard_Boolean AfterUndo
|
||||
(const Handle(TDF_AttributeDelta)& anAttDelta,
|
||||
const Standard_Boolean forceIt);
|
||||
const Standard_Boolean forceIt) Standard_OVERRIDE;
|
||||
|
||||
private:
|
||||
//! Fields
|
||||
|
@@ -46,7 +46,7 @@ class TObj_TReference : public TDF_Attribute
|
||||
static Standard_EXPORT const Standard_GUID& GetID();
|
||||
|
||||
//! Returns the ID of TObj_TReference attribute.
|
||||
Standard_EXPORT const Standard_GUID& ID() const;
|
||||
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
||||
|
||||
public:
|
||||
//! Method for create TObj_TReference object
|
||||
@@ -84,36 +84,36 @@ class TObj_TReference : public TDF_Attribute
|
||||
|
||||
//! Returns an new empty TObj_TReference attribute. It is used by the
|
||||
//! copy algorithm.
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
|
||||
|
||||
//! Restores the backuped contents from <theWith> into this one. It is used
|
||||
//! when aborting a transaction.
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theWith);
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theWith) Standard_OVERRIDE;
|
||||
|
||||
//! This method is used when copying an attribute from a source structure
|
||||
//! into a target structure.
|
||||
Standard_EXPORT void Paste(const Handle(TDF_Attribute)& theInto,
|
||||
const Handle(TDF_RelocationTable)& theRT) const;
|
||||
const Handle(TDF_RelocationTable)& theRT) const Standard_OVERRIDE;
|
||||
|
||||
//! Remove back references of it reference if it is in other document.
|
||||
virtual Standard_EXPORT void BeforeForget();
|
||||
virtual Standard_EXPORT void BeforeForget() Standard_OVERRIDE;
|
||||
|
||||
//! It is necessary for tranzaction mechanism (Undo/Redo).
|
||||
virtual Standard_EXPORT Standard_Boolean BeforeUndo
|
||||
(const Handle(TDF_AttributeDelta)& theDelta,
|
||||
const Standard_Boolean isForced = Standard_False);
|
||||
const Standard_Boolean isForced = Standard_False) Standard_OVERRIDE;
|
||||
|
||||
//! It is necessary for tranzaction mechanism (Undo/Redo).
|
||||
virtual Standard_EXPORT Standard_Boolean AfterUndo
|
||||
(const Handle(TDF_AttributeDelta)& theDelta,
|
||||
const Standard_Boolean isForced = Standard_False);
|
||||
const Standard_Boolean isForced = Standard_False) Standard_OVERRIDE;
|
||||
|
||||
//! Check if back reference exists for reference.
|
||||
virtual Standard_EXPORT void AfterResume();
|
||||
virtual Standard_EXPORT void AfterResume() Standard_OVERRIDE;
|
||||
|
||||
//! Called after retrieval reference from file.
|
||||
virtual Standard_EXPORT Standard_Boolean AfterRetrieval
|
||||
(const Standard_Boolean forceIt = Standard_False);
|
||||
(const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
|
||||
|
||||
private:
|
||||
//! Fields
|
||||
|
@@ -43,7 +43,7 @@ class TObj_TXYZ : public TDF_Attribute
|
||||
static Standard_EXPORT const Standard_GUID& GetID();
|
||||
|
||||
//! Returns the ID of TObj_TXYZ attribute.
|
||||
Standard_EXPORT const Standard_GUID& ID() const;
|
||||
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
||||
|
||||
public:
|
||||
//! Method for create TObj_TXYZ object
|
||||
@@ -65,19 +65,19 @@ class TObj_TXYZ : public TDF_Attribute
|
||||
|
||||
//! Returns an new empty TObj_TXYZ attribute. It is used by the
|
||||
//! copy algorithm.
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
|
||||
|
||||
//! Restores the backuped contents from <theWith> into this one. It is used
|
||||
//! when aborting a transaction.
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theWith);
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theWith) Standard_OVERRIDE;
|
||||
|
||||
//! This method is used when copying an attribute from a source structure
|
||||
//! into a target structure.
|
||||
Standard_EXPORT void Paste(const Handle(TDF_Attribute)& theInto,
|
||||
const Handle(TDF_RelocationTable)& theRT) const;
|
||||
const Handle(TDF_RelocationTable)& theRT) const Standard_OVERRIDE;
|
||||
|
||||
//! This method dumps the attribute value into the stream
|
||||
Standard_EXPORT virtual Standard_OStream& Dump(Standard_OStream& theOS) const;
|
||||
Standard_EXPORT virtual Standard_OStream& Dump(Standard_OStream& theOS) const Standard_OVERRIDE;
|
||||
|
||||
private:
|
||||
//! Fields
|
||||
|
Reference in New Issue
Block a user