mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0027047: STEP -- eliminate useless polymorhic methods Init()
Methods Init() in STEP data classes are made non-virtual, redundant variants just calling the same method of the base class are removed. A few places where removed method have been called are corrected.
This commit is contained in:
@@ -20,13 +20,6 @@ IMPLEMENT_STANDARD_RTTIEXT(StepRepr_DescriptiveRepresentationItem,StepRepr_Repre
|
||||
|
||||
StepRepr_DescriptiveRepresentationItem::StepRepr_DescriptiveRepresentationItem () {}
|
||||
|
||||
void StepRepr_DescriptiveRepresentationItem::Init(
|
||||
const Handle(TCollection_HAsciiString)& aName)
|
||||
{
|
||||
|
||||
StepRepr_RepresentationItem::Init(aName);
|
||||
}
|
||||
|
||||
void StepRepr_DescriptiveRepresentationItem::Init(
|
||||
const Handle(TCollection_HAsciiString)& aName,
|
||||
const Handle(TCollection_HAsciiString)& aDescription)
|
||||
|
@@ -37,9 +37,7 @@ public:
|
||||
//! Returns a DescriptiveRepresentationItem
|
||||
Standard_EXPORT StepRepr_DescriptiveRepresentationItem();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aName) Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription);
|
||||
|
||||
Standard_EXPORT void SetDescription (const Handle(TCollection_HAsciiString)& aDescription);
|
||||
|
||||
|
@@ -37,7 +37,7 @@ public:
|
||||
//! Returns a FunctionallyDefinedTransformation
|
||||
Standard_EXPORT StepRepr_FunctionallyDefinedTransformation();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription);
|
||||
|
||||
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& aName);
|
||||
|
||||
|
@@ -21,14 +21,6 @@ IMPLEMENT_STANDARD_RTTIEXT(StepRepr_GlobalUncertaintyAssignedContext,StepRepr_Re
|
||||
|
||||
StepRepr_GlobalUncertaintyAssignedContext::StepRepr_GlobalUncertaintyAssignedContext () {}
|
||||
|
||||
void StepRepr_GlobalUncertaintyAssignedContext::Init(
|
||||
const Handle(TCollection_HAsciiString)& aContextIdentifier,
|
||||
const Handle(TCollection_HAsciiString)& aContextType)
|
||||
{
|
||||
|
||||
StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType);
|
||||
}
|
||||
|
||||
void StepRepr_GlobalUncertaintyAssignedContext::Init(
|
||||
const Handle(TCollection_HAsciiString)& aContextIdentifier,
|
||||
const Handle(TCollection_HAsciiString)& aContextType,
|
||||
|
@@ -40,9 +40,7 @@ public:
|
||||
//! Returns a GlobalUncertaintyAssignedContext
|
||||
Standard_EXPORT StepRepr_GlobalUncertaintyAssignedContext();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aContextIdentifier, const Handle(TCollection_HAsciiString)& aContextType) Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aContextIdentifier, const Handle(TCollection_HAsciiString)& aContextType, const Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit)& aUncertainty);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aContextIdentifier, const Handle(TCollection_HAsciiString)& aContextType, const Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit)& aUncertainty);
|
||||
|
||||
Standard_EXPORT void SetUncertainty (const Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit)& aUncertainty);
|
||||
|
||||
|
@@ -21,14 +21,6 @@ IMPLEMENT_STANDARD_RTTIEXT(StepRepr_GlobalUnitAssignedContext,StepRepr_Represent
|
||||
|
||||
StepRepr_GlobalUnitAssignedContext::StepRepr_GlobalUnitAssignedContext () {}
|
||||
|
||||
void StepRepr_GlobalUnitAssignedContext::Init(
|
||||
const Handle(TCollection_HAsciiString)& aContextIdentifier,
|
||||
const Handle(TCollection_HAsciiString)& aContextType)
|
||||
{
|
||||
|
||||
StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType);
|
||||
}
|
||||
|
||||
void StepRepr_GlobalUnitAssignedContext::Init(
|
||||
const Handle(TCollection_HAsciiString)& aContextIdentifier,
|
||||
const Handle(TCollection_HAsciiString)& aContextType,
|
||||
|
@@ -40,9 +40,7 @@ public:
|
||||
//! Returns a GlobalUnitAssignedContext
|
||||
Standard_EXPORT StepRepr_GlobalUnitAssignedContext();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aContextIdentifier, const Handle(TCollection_HAsciiString)& aContextType) Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aContextIdentifier, const Handle(TCollection_HAsciiString)& aContextType, const Handle(StepBasic_HArray1OfNamedUnit)& aUnits);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aContextIdentifier, const Handle(TCollection_HAsciiString)& aContextType, const Handle(StepBasic_HArray1OfNamedUnit)& aUnits);
|
||||
|
||||
Standard_EXPORT void SetUnits (const Handle(StepBasic_HArray1OfNamedUnit)& aUnits);
|
||||
|
||||
|
@@ -36,7 +36,7 @@ public:
|
||||
//! Returns a IntegerRepresentationItem
|
||||
Standard_EXPORT StepRepr_IntegerRepresentationItem();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& theName, const Standard_Integer theValue);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName, const Standard_Integer theValue);
|
||||
|
||||
inline void SetValue(const Standard_Integer theValue)
|
||||
{
|
||||
|
@@ -22,13 +22,6 @@ IMPLEMENT_STANDARD_RTTIEXT(StepRepr_MappedItem,StepRepr_RepresentationItem)
|
||||
|
||||
StepRepr_MappedItem::StepRepr_MappedItem () {}
|
||||
|
||||
void StepRepr_MappedItem::Init(
|
||||
const Handle(TCollection_HAsciiString)& aName)
|
||||
{
|
||||
|
||||
StepRepr_RepresentationItem::Init(aName);
|
||||
}
|
||||
|
||||
void StepRepr_MappedItem::Init(
|
||||
const Handle(TCollection_HAsciiString)& aName,
|
||||
const Handle(StepRepr_RepresentationMap)& aMappingSource,
|
||||
|
@@ -39,9 +39,7 @@ public:
|
||||
//! Returns a MappedItem
|
||||
Standard_EXPORT StepRepr_MappedItem();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aName) Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(StepRepr_RepresentationMap)& aMappingSource, const Handle(StepRepr_RepresentationItem)& aMappingTarget);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(StepRepr_RepresentationMap)& aMappingSource, const Handle(StepRepr_RepresentationItem)& aMappingTarget);
|
||||
|
||||
Standard_EXPORT void SetMappingSource (const Handle(StepRepr_RepresentationMap)& aMappingSource);
|
||||
|
||||
|
@@ -41,7 +41,7 @@ public:
|
||||
//! Returns a Representation
|
||||
Standard_EXPORT StepRepr_Representation();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(StepRepr_HArray1OfRepresentationItem)& aItems, const Handle(StepRepr_RepresentationContext)& aContextOfItems);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(StepRepr_HArray1OfRepresentationItem)& aItems, const Handle(StepRepr_RepresentationContext)& aContextOfItems);
|
||||
|
||||
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& aName);
|
||||
|
||||
|
@@ -37,7 +37,7 @@ public:
|
||||
//! Returns a RepresentationContext
|
||||
Standard_EXPORT StepRepr_RepresentationContext();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aContextIdentifier, const Handle(TCollection_HAsciiString)& aContextType);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aContextIdentifier, const Handle(TCollection_HAsciiString)& aContextType);
|
||||
|
||||
Standard_EXPORT void SetContextIdentifier (const Handle(TCollection_HAsciiString)& aContextIdentifier);
|
||||
|
||||
|
@@ -37,7 +37,7 @@ public:
|
||||
//! Returns a RepresentationItem
|
||||
Standard_EXPORT StepRepr_RepresentationItem();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aName);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName);
|
||||
|
||||
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& aName);
|
||||
|
||||
|
@@ -38,7 +38,7 @@ public:
|
||||
//! Returns a RepresentationMap
|
||||
Standard_EXPORT StepRepr_RepresentationMap();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(StepRepr_RepresentationItem)& aMappingOrigin, const Handle(StepRepr_Representation)& aMappedRepresentation);
|
||||
Standard_EXPORT void Init (const Handle(StepRepr_RepresentationItem)& aMappingOrigin, const Handle(StepRepr_Representation)& aMappedRepresentation);
|
||||
|
||||
Standard_EXPORT void SetMappingOrigin (const Handle(StepRepr_RepresentationItem)& aMappingOrigin);
|
||||
|
||||
|
@@ -38,7 +38,7 @@ public:
|
||||
//! Returns a RepresentationRelationship
|
||||
Standard_EXPORT StepRepr_RepresentationRelationship();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription, const Handle(StepRepr_Representation)& aRep1, const Handle(StepRepr_Representation)& aRep2);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription, const Handle(StepRepr_Representation)& aRep1, const Handle(StepRepr_Representation)& aRep2);
|
||||
|
||||
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& aName);
|
||||
|
||||
|
@@ -39,7 +39,7 @@ public:
|
||||
//! Returns a ShapeAspect
|
||||
Standard_EXPORT StepRepr_ShapeAspect();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription, const Handle(StepRepr_ProductDefinitionShape)& aOfShape, const StepData_Logical aProductDefinitional);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aDescription, const Handle(StepRepr_ProductDefinitionShape)& aOfShape, const StepData_Logical aProductDefinitional);
|
||||
|
||||
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& aName);
|
||||
|
||||
|
@@ -37,8 +37,8 @@ public:
|
||||
//! Returns a ValueRepresentationItem
|
||||
Standard_EXPORT StepRepr_ValueRepresentationItem();
|
||||
|
||||
Standard_EXPORT virtual void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(StepBasic_MeasureValueMember)& theValueComponentMember);
|
||||
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
|
||||
const Handle(StepBasic_MeasureValueMember)& theValueComponentMember);
|
||||
|
||||
inline void SetValueComponentMember(const Handle(StepBasic_MeasureValueMember)& theValueComponentMember)
|
||||
{
|
||||
|
Reference in New Issue
Block a user