mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024002: Overall code and build procedure refactoring -- manual
Documentation comments (mostly to package items, in package CDL) lost by CDL extraction are transferred to headers manually. Some wrong comments (artifacts of CDL-generated code) are removed. Missing header files added. Yacc and Lex files removed from StepFile/FILES to avoid problems when building by WOK Conflicts: src/BRepOffsetAPI/BRepOffsetAPI_Sewing.hxx src/Quantity/Quantity_AbsorbedDose.hxx src/Quantity/Quantity_Acceleration.hxx src/Quantity/Quantity_AcousticIntensity.hxx src/Quantity/Quantity_Activity.hxx src/Quantity/Quantity_Admittance.hxx src/Quantity/Quantity_AmountOfSubstance.hxx src/Quantity/Quantity_AngularVelocity.hxx src/Quantity/Quantity_Area.hxx src/Quantity/Quantity_Capacitance.hxx src/Quantity/Quantity_CoefficientOfExpansion.hxx src/Quantity/Quantity_Concentration.hxx src/Quantity/Quantity_Conductivity.hxx src/Quantity/Quantity_Consumption.hxx src/Quantity/Quantity_Density.hxx src/Quantity/Quantity_DoseEquivalent.hxx src/Quantity/Quantity_ElectricCapacitance.hxx src/Quantity/Quantity_ElectricCharge.hxx src/Quantity/Quantity_ElectricCurrent.hxx src/Quantity/Quantity_ElectricFieldStrength.hxx src/Quantity/Quantity_ElectricPotential.hxx src/Quantity/Quantity_Energy.hxx src/Quantity/Quantity_Enthalpy.hxx src/Quantity/Quantity_Entropy.hxx src/Quantity/Quantity_Force.hxx src/Quantity/Quantity_Frequency.hxx src/Quantity/Quantity_Illuminance.hxx src/Quantity/Quantity_Impedance.hxx src/Quantity/Quantity_Inductance.hxx src/Quantity/Quantity_KinematicViscosity.hxx src/Quantity/Quantity_KineticMoment.hxx src/Quantity/Quantity_Length.hxx src/Quantity/Quantity_Luminance.hxx src/Quantity/Quantity_LuminousEfficacity.hxx src/Quantity/Quantity_LuminousExposition.hxx src/Quantity/Quantity_LuminousFlux.hxx src/Quantity/Quantity_LuminousIntensity.hxx src/Quantity/Quantity_MagneticFieldStrength.hxx src/Quantity/Quantity_MagneticFlux.hxx src/Quantity/Quantity_MagneticFluxDensity.hxx src/Quantity/Quantity_Mass.hxx src/Quantity/Quantity_MassFlow.hxx src/Quantity/Quantity_MolarConcentration.hxx src/Quantity/Quantity_MolarMass.hxx src/Quantity/Quantity_MolarVolume.hxx src/Quantity/Quantity_Molarity.hxx src/Quantity/Quantity_MomentOfAForce.hxx src/Quantity/Quantity_MomentOfInertia.hxx src/Quantity/Quantity_Momentum.hxx src/Quantity/Quantity_PlaneAngle.hxx src/Quantity/Quantity_Power.hxx src/Quantity/Quantity_Pressure.hxx src/Quantity/Quantity_Reluctance.hxx src/Quantity/Quantity_Resistance.hxx src/Quantity/Quantity_Resistivity.hxx src/Quantity/Quantity_SolidAngle.hxx src/Quantity/Quantity_SoundIntensity.hxx src/Quantity/Quantity_SpecificHeatCapacity.hxx src/Quantity/Quantity_Speed.hxx src/Quantity/Quantity_SurfaceTension.hxx src/Quantity/Quantity_Temperature.hxx src/Quantity/Quantity_ThermalConductivity.hxx src/Quantity/Quantity_Torque.hxx src/Quantity/Quantity_Velocity.hxx src/Quantity/Quantity_Viscosity.hxx src/Quantity/Quantity_Volume.hxx src/Quantity/Quantity_VolumeFlow.hxx src/Quantity/Quantity_Weight.hxx src/Quantity/Quantity_Work.hxx src/V3d/V3d_Coordinate.hxx
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <Standard_Address.hxx>
|
||||
#include <Standard_Size.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
|
||||
class Standard_ErrorHandlerCallback;
|
||||
class Standard_ErrorHandler;
|
||||
class Standard_GUID;
|
||||
@@ -31,7 +32,8 @@ class Standard_Persistent;
|
||||
class Standard_Transient;
|
||||
class Standard_Failure;
|
||||
|
||||
|
||||
//! The package Standard provides global memory allocator and other basic
|
||||
//! services used by other OCCT components.
|
||||
|
||||
class Standard
|
||||
{
|
||||
@@ -45,9 +47,17 @@ public:
|
||||
Standard_EXPORT static Standard_Address Allocate (const Standard_Size aSize);
|
||||
|
||||
//! Deallocates memory blocks
|
||||
//! aStorage - previously allocated memory block to be freed
|
||||
Standard_EXPORT static void Free (const Standard_Address aStorage);
|
||||
template <typename T> static inline void Free (T*& thePtr) { Free ((void*)thePtr); thePtr = 0; }
|
||||
//! @param thePtr - previously allocated memory block to be freed
|
||||
Standard_EXPORT static void Free (const Standard_Address thePtr);
|
||||
|
||||
//! Template version of function Free(), nullifies the argument pointer
|
||||
//! @param thePtr - previously allocated memory block to be freed
|
||||
template <typename T>
|
||||
static inline void Free (T*& thePtr)
|
||||
{
|
||||
Free ((void*)thePtr);
|
||||
thePtr = 0;
|
||||
}
|
||||
|
||||
//! Reallocates memory blocks
|
||||
//! aStorage - previously allocated memory block
|
||||
@@ -64,40 +74,22 @@ template <typename T> static inline void Free (T*& thePtr) { Free ((void*)thePtr
|
||||
//! Deallocates memory blocks
|
||||
//! @param thePtrAligned the memory block previously allocated with AllocateAligned()
|
||||
Standard_EXPORT static void FreeAligned (const Standard_Address thePtrAligned);
|
||||
template <typename T> static inline void FreeAligned (T*& thePtrAligned) { FreeAligned ((void* )thePtrAligned); thePtrAligned = 0; }
|
||||
|
||||
//! Template version of function FreeAligned(), nullifies the argument pointer
|
||||
//! @param thePtrAligned the memory block previously allocated with AllocateAligned()
|
||||
template <typename T>
|
||||
static inline void FreeAligned (T*& thePtrAligned)
|
||||
{
|
||||
FreeAligned ((void* )thePtrAligned);
|
||||
thePtrAligned = 0;
|
||||
}
|
||||
|
||||
//! Deallocates the storage retained on the free list
|
||||
//! and clears the list.
|
||||
//! Returns non-zero if some memory has been actually freed.
|
||||
Standard_EXPORT static Standard_Integer Purge();
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
friend class Standard_ErrorHandlerCallback;
|
||||
friend class Standard_ErrorHandler;
|
||||
friend class Standard_GUID;
|
||||
friend class Standard_Persistent;
|
||||
friend class Standard_Transient;
|
||||
friend class Standard_Failure;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _Standard_HeaderFile
|
||||
|
Reference in New Issue
Block a user