1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-06 18:26:22 +03:00

0024512: clang++ compiler complains about extra semicolon

Clang++ compiler emits warnings like these ones when parsing superfluous semicolons:
  .../src/OSD/OSD_MAllocHook.cxx:49:2: warning: extra ';' outside of a function is a C++11 extension [-Wc++11-extra-semi]
  .../src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx:317:30: warning: extra ';' after member function definition [-Wextra-semi]
This commit is contained in:
Denis Barbier 2014-01-02 22:54:45 +01:00 committed by bugmaster
parent 6aca4d3977
commit 5640d65355
17 changed files with 100 additions and 100 deletions

View File

@ -35,7 +35,7 @@ class BOPDS_CoupleOfPaveBlocks {
BOPDS_CoupleOfPaveBlocks() { BOPDS_CoupleOfPaveBlocks() {
myIndex=-1; myIndex=-1;
myIndexInterf=-1; myIndexInterf=-1;
}; }
// //
/** /**
* Constructor * Constructor
@ -49,13 +49,13 @@ class BOPDS_CoupleOfPaveBlocks {
myIndex=-1; myIndex=-1;
myIndexInterf=-1; myIndexInterf=-1;
SetPaveBlocks(thePB1, thePB2); SetPaveBlocks(thePB1, thePB2);
}; }
// //
/** /**
* Destructor * Destructor
*/ */
~BOPDS_CoupleOfPaveBlocks() { ~BOPDS_CoupleOfPaveBlocks() {
}; }
// //
/** /**
* Sets an index * Sets an index

View File

@ -57,7 +57,7 @@ class BOPDS_Interf {
const Standard_Integer theIndex2) { const Standard_Integer theIndex2) {
myIndex1=theIndex1; myIndex1=theIndex1;
myIndex2=theIndex2; myIndex2=theIndex2;
}; }
// //
/** /**
* Returns the indices of interferred shapes * Returns the indices of interferred shapes
@ -70,7 +70,7 @@ class BOPDS_Interf {
Standard_Integer& theIndex2) const { Standard_Integer& theIndex2) const {
theIndex1=myIndex1; theIndex1=myIndex1;
theIndex2=myIndex2; theIndex2=myIndex2;
}; }
// //
/** /**
* Sets the index of the first interferred shape * Sets the index of the first interferred shape
@ -79,7 +79,7 @@ class BOPDS_Interf {
*/ */
void SetIndex1(const Standard_Integer theIndex) { void SetIndex1(const Standard_Integer theIndex) {
myIndex1=theIndex; myIndex1=theIndex;
}; }
// //
/** /**
* Sets the index of the second interferred shape * Sets the index of the second interferred shape
@ -88,7 +88,7 @@ class BOPDS_Interf {
*/ */
void SetIndex2(const Standard_Integer theIndex) { void SetIndex2(const Standard_Integer theIndex) {
myIndex2=theIndex; myIndex2=theIndex;
}; }
// //
/** /**
* Returns the index of the first interferred shape * Returns the index of the first interferred shape
@ -97,7 +97,7 @@ class BOPDS_Interf {
*/ */
Standard_Integer Index1() const { Standard_Integer Index1() const {
return myIndex1; return myIndex1;
}; }
// //
/** /**
* Returns the index of the second interferred shape * Returns the index of the second interferred shape
@ -106,7 +106,7 @@ class BOPDS_Interf {
*/ */
Standard_Integer Index2() const { Standard_Integer Index2() const {
return myIndex2; return myIndex2;
}; }
// //
/** /**
* Returns the index of that are opposite to the given index * Returns the index of that are opposite to the given index
@ -125,7 +125,7 @@ class BOPDS_Interf {
else { else {
return -1; return -1;
} }
}; }
// //
/** /**
* Returns true if the interference contains given index * Returns true if the interference contains given index
@ -145,7 +145,7 @@ class BOPDS_Interf {
*/ */
void SetIndexNew(const Standard_Integer theIndex) { void SetIndexNew(const Standard_Integer theIndex) {
myIndexNew=theIndex; myIndexNew=theIndex;
}; }
// //
// //
/** /**
@ -155,7 +155,7 @@ class BOPDS_Interf {
*/ */
Standard_Integer IndexNew() const { Standard_Integer IndexNew() const {
return myIndexNew; return myIndexNew;
}; }
// //
/** /**
* Returns true if the interference has index of new shape * Returns true if the interference has index of new shape
@ -168,7 +168,7 @@ class BOPDS_Interf {
Standard_Boolean HasIndexNew(Standard_Integer& theIndex) const { Standard_Boolean HasIndexNew(Standard_Integer& theIndex) const {
theIndex=myIndexNew; theIndex=myIndexNew;
return (myIndexNew>=0); return (myIndexNew>=0);
}; }
// //
/** /**
* Returns true if the interference has index of new shape * Returns true if the interference has index of new shape
@ -177,7 +177,7 @@ class BOPDS_Interf {
*/ */
Standard_Boolean HasIndexNew() const { Standard_Boolean HasIndexNew() const {
return (myIndexNew>=0); return (myIndexNew>=0);
}; }
// //
protected: protected:
BOPDS_Interf() : BOPDS_Interf() :
@ -185,17 +185,17 @@ class BOPDS_Interf {
myIndex2(-1), myIndex2(-1),
myIndexNew(-1), myIndexNew(-1),
myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()) { myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()) {
}; }
// //
BOPDS_Interf(const Handle(NCollection_BaseAllocator)& theAllocator) : BOPDS_Interf(const Handle(NCollection_BaseAllocator)& theAllocator) :
myIndex1(-1), myIndex1(-1),
myIndex2(-1), myIndex2(-1),
myIndexNew(-1), myIndexNew(-1),
myAllocator(theAllocator) { myAllocator(theAllocator) {
}; }
// //
virtual ~BOPDS_Interf() { virtual ~BOPDS_Interf() {
}; }
protected: protected:
Standard_Integer myIndex1; Standard_Integer myIndex1;
@ -218,7 +218,7 @@ class BOPDS_InterfVV : public BOPDS_Interf {
* Constructor * Constructor
*/ */
BOPDS_InterfVV() : BOPDS_Interf() { BOPDS_InterfVV() : BOPDS_Interf() {
}; }
// //
/** /**
* Constructor * Constructor
@ -227,13 +227,13 @@ class BOPDS_InterfVV : public BOPDS_Interf {
*/ */
BOPDS_InterfVV(const Handle(NCollection_BaseAllocator)& theAllocator) BOPDS_InterfVV(const Handle(NCollection_BaseAllocator)& theAllocator)
: BOPDS_Interf(theAllocator) { : BOPDS_Interf(theAllocator) {
}; }
// //
/** /**
* Destructor * Destructor
*/ */
virtual ~BOPDS_InterfVV() { virtual ~BOPDS_InterfVV() {
}; }
// //
}; };
/** /**
@ -254,7 +254,7 @@ class BOPDS_InterfVE : public BOPDS_Interf {
: :
BOPDS_Interf(), BOPDS_Interf(),
myParameter(0.) { myParameter(0.) {
}; }
// //
/** /**
* Constructor * Constructor
@ -265,13 +265,13 @@ class BOPDS_InterfVE : public BOPDS_Interf {
: :
BOPDS_Interf(theAllocator), BOPDS_Interf(theAllocator),
myParameter(0.) { myParameter(0.) {
}; }
// //
/** /**
* Destructor * Destructor
*/ */
virtual ~BOPDS_InterfVE() { virtual ~BOPDS_InterfVE() {
}; }
// //
/** /**
* Modifier * Modifier
@ -283,7 +283,7 @@ class BOPDS_InterfVE : public BOPDS_Interf {
*/ */
void SetParameter(const Standard_Real theT) { void SetParameter(const Standard_Real theT) {
myParameter=theT; myParameter=theT;
}; }
// //
/** /**
* Selector * Selector
@ -295,7 +295,7 @@ class BOPDS_InterfVE : public BOPDS_Interf {
*/ */
Standard_Real Parameter() const { Standard_Real Parameter() const {
return myParameter; return myParameter;
}; }
protected: protected:
Standard_Real myParameter; Standard_Real myParameter;
@ -319,7 +319,7 @@ class BOPDS_InterfVF : public BOPDS_Interf {
: BOPDS_Interf(), : BOPDS_Interf(),
myU(0.), myU(0.),
myV(0.) { myV(0.) {
}; }
// //
/** /**
* Constructor * Constructor
@ -330,13 +330,13 @@ class BOPDS_InterfVF : public BOPDS_Interf {
: BOPDS_Interf(theAllocator), : BOPDS_Interf(theAllocator),
myU(0.), myU(0.),
myV(0.) { myV(0.) {
}; }
// //
/** /**
* Destructor * Destructor
*/ */
virtual ~BOPDS_InterfVF() { virtual ~BOPDS_InterfVF() {
}; }
// //
/** /**
* Modifier * Modifier
@ -352,7 +352,7 @@ class BOPDS_InterfVF : public BOPDS_Interf {
const Standard_Real theV) { const Standard_Real theV) {
myU=theU; myU=theU;
myV=theV; myV=theV;
}; }
// //
/** /**
* Selector * Selector
@ -367,7 +367,7 @@ class BOPDS_InterfVF : public BOPDS_Interf {
void UV(Standard_Real& theU,Standard_Real& theV) const { void UV(Standard_Real& theU,Standard_Real& theV) const {
theU=myU; theU=myU;
theV=myV; theV=myV;
}; }
protected: protected:
Standard_Real myU; Standard_Real myU;
@ -389,7 +389,7 @@ class BOPDS_InterfEE : public BOPDS_Interf {
* Constructor * Constructor
*/ */
BOPDS_InterfEE() : BOPDS_Interf() { BOPDS_InterfEE() : BOPDS_Interf() {
}; }
// //
/** /**
* Constructor * Constructor
@ -398,13 +398,13 @@ class BOPDS_InterfEE : public BOPDS_Interf {
*/ */
BOPDS_InterfEE(const Handle(NCollection_BaseAllocator)& theAllocator) BOPDS_InterfEE(const Handle(NCollection_BaseAllocator)& theAllocator)
: BOPDS_Interf(theAllocator) { : BOPDS_Interf(theAllocator) {
}; }
// //
/** /**
* Destructor * Destructor
*/ */
virtual ~BOPDS_InterfEE() { virtual ~BOPDS_InterfEE() {
}; }
// //
/** /**
* Modifier * Modifier
@ -414,7 +414,7 @@ class BOPDS_InterfEE : public BOPDS_Interf {
*/ */
void SetCommonPart(const IntTools_CommonPrt& theCP) { void SetCommonPart(const IntTools_CommonPrt& theCP) {
myCommonPart=theCP; myCommonPart=theCP;
}; }
// //
/** /**
* Selector * Selector
@ -424,7 +424,7 @@ class BOPDS_InterfEE : public BOPDS_Interf {
*/ */
const IntTools_CommonPrt& CommonPart() const { const IntTools_CommonPrt& CommonPart() const {
return myCommonPart; return myCommonPart;
}; }
protected: protected:
IntTools_CommonPrt myCommonPart; IntTools_CommonPrt myCommonPart;
@ -444,7 +444,7 @@ class BOPDS_InterfEF : public BOPDS_Interf {
* Constructor * Constructor
*/ */
BOPDS_InterfEF(): BOPDS_Interf() { BOPDS_InterfEF(): BOPDS_Interf() {
}; }
// //
/** /**
* Constructor * Constructor
@ -458,13 +458,13 @@ class BOPDS_InterfEF : public BOPDS_Interf {
*/ */
BOPDS_InterfEF(const Handle(NCollection_BaseAllocator)& theAllocator) BOPDS_InterfEF(const Handle(NCollection_BaseAllocator)& theAllocator)
: BOPDS_Interf(theAllocator) { : BOPDS_Interf(theAllocator) {
}; }
// //
/** /**
* Destructor * Destructor
*/ */
virtual ~BOPDS_InterfEF() { virtual ~BOPDS_InterfEF() {
}; }
// //
/** /**
* Modifier * Modifier
@ -474,7 +474,7 @@ class BOPDS_InterfEF : public BOPDS_Interf {
*/ */
void SetCommonPart(const IntTools_CommonPrt& theCP){ void SetCommonPart(const IntTools_CommonPrt& theCP){
myCommonPart=theCP; myCommonPart=theCP;
}; }
// //
/** /**
* Selector * Selector
@ -484,7 +484,7 @@ class BOPDS_InterfEF : public BOPDS_Interf {
*/ */
const IntTools_CommonPrt& CommonPart() const { const IntTools_CommonPrt& CommonPart() const {
return myCommonPart; return myCommonPart;
}; }
// //
protected: protected:
IntTools_CommonPrt myCommonPart; IntTools_CommonPrt myCommonPart;
@ -511,7 +511,7 @@ class BOPDS_InterfFF : public BOPDS_Interf {
myTolR2D(1.e-7), myTolR2D(1.e-7),
myCurves(myAllocator), myCurves(myAllocator),
myPoints(myAllocator) { myPoints(myAllocator) {
}; }
// //
/** /**
* Constructor * Constructor
@ -527,14 +527,14 @@ class BOPDS_InterfFF : public BOPDS_Interf {
myTolR2D(1.e-7), myTolR2D(1.e-7),
myCurves(myAllocator), myCurves(myAllocator),
myPoints(myAllocator) { myPoints(myAllocator) {
}; }
*/ */
// //
/** /**
* Destructor * Destructor
*/ */
virtual ~BOPDS_InterfFF() { virtual ~BOPDS_InterfFF() {
}; }
// //
/** /**
* Initializer * Initializer
@ -622,7 +622,7 @@ class BOPDS_InterfFF : public BOPDS_Interf {
*/ */
const BOPDS_VectorOfCurve& Curves()const{ const BOPDS_VectorOfCurve& Curves()const{
return myCurves; return myCurves;
}; }
// //
/** /**
* Selector/Modifier * Selector/Modifier
@ -632,7 +632,7 @@ class BOPDS_InterfFF : public BOPDS_Interf {
*/ */
BOPDS_VectorOfCurve& ChangeCurves(){ BOPDS_VectorOfCurve& ChangeCurves(){
return myCurves; return myCurves;
}; }
// //
/** /**
* Selector * Selector
@ -642,7 +642,7 @@ class BOPDS_InterfFF : public BOPDS_Interf {
*/ */
const BOPDS_VectorOfPoint& Points()const{ const BOPDS_VectorOfPoint& Points()const{
return myPoints; return myPoints;
}; }
// //
/** /**
* Selector/Modifier * Selector/Modifier
@ -652,7 +652,7 @@ class BOPDS_InterfFF : public BOPDS_Interf {
*/ */
BOPDS_VectorOfPoint& ChangePoints(){ BOPDS_VectorOfPoint& ChangePoints(){
return myPoints; return myPoints;
}; }
// //
protected: protected:
Standard_Boolean myTangentFaces; Standard_Boolean myTangentFaces;

View File

@ -54,7 +54,7 @@ class LDOM_SBuffer : public streambuf
// Caller of this function is responsible // Caller of this function is responsible
// for memory release after the string usage. // for memory release after the string usage.
Standard_Integer Length () const {return myLength;}; Standard_Integer Length () const {return myLength;}
// Returns full length of data contained // Returns full length of data contained
Standard_EXPORT void Clear (); Standard_EXPORT void Clear ();
@ -86,11 +86,11 @@ class LDOM_OSStream : public Standard_OStream
Standard_EXPORT LDOM_OSStream (const Standard_Integer theMaxBuf); Standard_EXPORT LDOM_OSStream (const Standard_Integer theMaxBuf);
// Constructor // Constructor
Standard_CString str () const {return myBuffer.str();}; Standard_CString str () const {return myBuffer.str();}
Standard_Integer Length () const {return myBuffer.Length();}; Standard_Integer Length () const {return myBuffer.Length();}
void Clear () { myBuffer.Clear(); }; void Clear () { myBuffer.Clear(); }
private: private:
LDOM_SBuffer myBuffer; LDOM_SBuffer myBuffer;

View File

@ -123,16 +123,16 @@ class Standard_EXPORT Message_ExecStatus
Standard_Boolean IsAlarm () const { return myAlarm != Message_None; } Standard_Boolean IsAlarm () const { return myAlarm != Message_None; }
//! Set all statuses of each type //! Set all statuses of each type
void SetAllDone () { myDone = ~0; }; void SetAllDone () { myDone = ~0; }
void SetAllWarn () { myWarn = ~0; }; void SetAllWarn () { myWarn = ~0; }
void SetAllAlarm () { myAlarm = ~0; }; void SetAllAlarm () { myAlarm = ~0; }
void SetAllFail () { myFail = ~0; }; void SetAllFail () { myFail = ~0; }
//! Clear all statuses of each type //! Clear all statuses of each type
void ClearAllDone () { myDone = Message_None; }; void ClearAllDone () { myDone = Message_None; }
void ClearAllWarn () { myWarn = Message_None; }; void ClearAllWarn () { myWarn = Message_None; }
void ClearAllAlarm() { myAlarm = Message_None; }; void ClearAllAlarm() { myAlarm = Message_None; }
void ClearAllFail () { myFail = Message_None; }; void ClearAllFail () { myFail = Message_None; }
//! Clear all statuses //! Clear all statuses
void Clear () void Clear ()

View File

@ -71,7 +71,7 @@ class NCollection_BaseAllocator : public MMgt_TShared
protected: protected:
//! Constructor - prohibited //! Constructor - prohibited
NCollection_BaseAllocator(void) {}; NCollection_BaseAllocator(void) {}
private: private:
//! Copy constructor - prohibited //! Copy constructor - prohibited

View File

@ -36,7 +36,7 @@ class NCollection_HeapAllocator : public NCollection_BaseAllocator
protected: protected:
//! Constructor - prohibited //! Constructor - prohibited
NCollection_HeapAllocator(void) {}; NCollection_HeapAllocator(void) {}
private: private:
//! Copy constructor - prohibited //! Copy constructor - prohibited

View File

@ -44,7 +44,7 @@ namespace
// auxiliary dummy function used to get a place where break point can be set // auxiliary dummy function used to get a place where break point can be set
inline void place_for_breakpoint() {} inline void place_for_breakpoint() {}
#endif #endif
}; }
#define MaxLookup 16 #define MaxLookup 16

View File

@ -79,7 +79,7 @@ public:
Element_t y() const { return v[1]; } Element_t y() const { return v[1]; }
//! @return 2 components by their names in specified order (in GLSL-style) //! @return 2 components by their names in specified order (in GLSL-style)
NCOLLECTION_VEC_COMPONENTS_2D(x, y); NCOLLECTION_VEC_COMPONENTS_2D(x, y)
//! Alias to 1st component as X coordinate in XY. //! Alias to 1st component as X coordinate in XY.
Element_t& x() { return v[0]; } Element_t& x() { return v[0]; }

View File

@ -105,12 +105,12 @@ public:
Element_t b() const { return v[2]; } Element_t b() const { return v[2]; }
//! @return 2 components by their names in specified order (in GLSL-style) //! @return 2 components by their names in specified order (in GLSL-style)
NCOLLECTION_VEC_COMPONENTS_2D(x, y); NCOLLECTION_VEC_COMPONENTS_2D(x, y)
NCOLLECTION_VEC_COMPONENTS_2D(x, z); NCOLLECTION_VEC_COMPONENTS_2D(x, z)
NCOLLECTION_VEC_COMPONENTS_2D(y, z); NCOLLECTION_VEC_COMPONENTS_2D(y, z)
//! @return 3 components by their names in specified order (in GLSL-style) //! @return 3 components by their names in specified order (in GLSL-style)
NCOLLECTION_VEC_COMPONENTS_3D(x, y, z); NCOLLECTION_VEC_COMPONENTS_3D(x, y, z)
//! Alias to 1st component as X coordinate in XYZ. //! Alias to 1st component as X coordinate in XYZ.
Element_t& x() { return v[0]; } Element_t& x() { return v[0]; }

View File

@ -118,21 +118,21 @@ public:
Element_t a() const { return v[3]; } Element_t a() const { return v[3]; }
//! @return 2 of XYZW components in specified order as vector in GLSL-style //! @return 2 of XYZW components in specified order as vector in GLSL-style
NCOLLECTION_VEC_COMPONENTS_2D(x, y); NCOLLECTION_VEC_COMPONENTS_2D(x, y)
NCOLLECTION_VEC_COMPONENTS_2D(x, z); NCOLLECTION_VEC_COMPONENTS_2D(x, z)
NCOLLECTION_VEC_COMPONENTS_2D(x, w); NCOLLECTION_VEC_COMPONENTS_2D(x, w)
NCOLLECTION_VEC_COMPONENTS_2D(y, z); NCOLLECTION_VEC_COMPONENTS_2D(y, z)
NCOLLECTION_VEC_COMPONENTS_2D(y, w); NCOLLECTION_VEC_COMPONENTS_2D(y, w)
NCOLLECTION_VEC_COMPONENTS_2D(z, w); NCOLLECTION_VEC_COMPONENTS_2D(z, w)
//! @return 3 of XYZW components in specified order as vector in GLSL-style //! @return 3 of XYZW components in specified order as vector in GLSL-style
NCOLLECTION_VEC_COMPONENTS_3D(x, y, z); NCOLLECTION_VEC_COMPONENTS_3D(x, y, z)
NCOLLECTION_VEC_COMPONENTS_3D(x, y, w); NCOLLECTION_VEC_COMPONENTS_3D(x, y, w)
NCOLLECTION_VEC_COMPONENTS_3D(x, z, w); NCOLLECTION_VEC_COMPONENTS_3D(x, z, w)
NCOLLECTION_VEC_COMPONENTS_3D(y, z, w); NCOLLECTION_VEC_COMPONENTS_3D(y, z, w)
//! @return RGB components as vector //! @return RGB components as vector
NCOLLECTION_VEC_COMPONENTS_3D(r, g, b); NCOLLECTION_VEC_COMPONENTS_3D(r, g, b)
//! Alias to 1st component as X coordinate in XYZW. //! Alias to 1st component as X coordinate in XYZW.
Element_t& x() { return v[0]; } Element_t& x() { return v[0]; }

View File

@ -38,7 +38,7 @@ static OSD_MAllocHook::Callback* MypCurrentCallback = NULL;
namespace { namespace {
// dummy function to call at place where break point might be needed // dummy function to call at place where break point might be needed
inline void place_for_breakpoint () {} inline void place_for_breakpoint () {}
}; }
//======================================================================= //=======================================================================
//function : GetCallback //function : GetCallback

View File

@ -120,7 +120,7 @@ namespace
} }
#endif #endif
}; }
// ======================================================================= // =======================================================================
// function : OpenGl_Window // function : OpenGl_Window

View File

@ -273,7 +273,7 @@ private:
// we do not call BSplCLib here to avoid Cyclic dependency detection by WOK // we do not call BSplCLib here to avoid Cyclic dependency detection by WOK
//static BinomAllocator THE_BINOM (BSplCLib::MaxDegree() + 1); //static BinomAllocator THE_BINOM (BSplCLib::MaxDegree() + 1);
static BinomAllocator THE_BINOM (25 + 1); static BinomAllocator THE_BINOM (25 + 1);
}; }
//======================================================================= //=======================================================================
//function : Bin //function : Bin

View File

@ -108,7 +108,7 @@ public:
private: private:
// Default constructor // Default constructor
Select3D_PointData () {}; Select3D_PointData () {}
Select3D_Pnt* mypolyg3d; Select3D_Pnt* mypolyg3d;
Select3D_Pnt2d* mypolyg2d; Select3D_Pnt2d* mypolyg2d;

2
src/Standard/Standard_CLocaleSentry.cxx Executable file → Normal file
View File

@ -58,7 +58,7 @@ namespace
static CLocalePtr theCLocale; static CLocalePtr theCLocale;
}; }
// ======================================================================= // =======================================================================
// function : GetCLocale // function : GetCLocale

View File

@ -55,8 +55,8 @@ public:
Standard_EXPORT virtual ~Standard_Persistent(); Standard_EXPORT virtual ~Standard_Persistent();
Standard_EXPORT Standard_Persistent& operator= (const Standard_Persistent&); Standard_EXPORT Standard_Persistent& operator= (const Standard_Persistent&);
Standard_Persistent() : count(0),_typenum(0),_refnum(0) {}; Standard_Persistent() : count(0),_typenum(0),_refnum(0) {}
Standard_Persistent(const Standard_Persistent&) : count(0),_typenum(0),_refnum(0) {}; Standard_Persistent(const Standard_Persistent&) : count(0),_typenum(0),_refnum(0) {}
Standard_Persistent(const Storage_stCONSTclCOM&) : count(0),_typenum(0),_refnum(0) {} Standard_Persistent(const Storage_stCONSTclCOM&) : count(0),_typenum(0),_refnum(0) {}
Standard_EXPORT virtual const Handle_Standard_Type& DynamicType() const; Standard_EXPORT virtual const Handle_Standard_Type& DynamicType() const;

View File

@ -53,31 +53,31 @@ class TDF_LabelNode {
// Father access // Father access
inline TDF_LabelNode* Father() const inline TDF_LabelNode* Father() const
{ return myFather; }; { return myFather; }
// Brother access // Brother access
inline TDF_LabelNode* Brother() const inline TDF_LabelNode* Brother() const
{ return myBrother; }; { return myBrother; }
// Child access // Child access
inline TDF_LabelNode* FirstChild() const inline TDF_LabelNode* FirstChild() const
{ return myFirstChild; }; { return myFirstChild; }
// Attribute access // Attribute access
inline const Handle(TDF_Attribute)& FirstAttribute() const inline const Handle(TDF_Attribute)& FirstAttribute() const
{ return myFirstAttribute; }; { return myFirstAttribute; }
// Tag access // Tag access
inline Standard_Integer Tag() const inline Standard_Integer Tag() const
{ return myTag; }; { return myTag; }
// Depth access // Depth access
inline Standard_Integer Depth() const inline Standard_Integer Depth() const
{ return (myFlags & ~TDF_LabelNodeFlagsMsk); }; { return (myFlags & ~TDF_LabelNodeFlagsMsk); }
// IsRoot // IsRoot
inline Standard_Boolean IsRoot() const inline Standard_Boolean IsRoot() const
{ return myFather == NULL; }; { return myFather == NULL; }
// Data // Data
Standard_EXPORT TDF_Data * Data() const; Standard_EXPORT TDF_Data * Data() const;
@ -89,19 +89,19 @@ class TDF_LabelNode {
(myFlags | TDF_LabelNodeAttModMsk) : (myFlags | TDF_LabelNodeAttModMsk) :
(myFlags & ~TDF_LabelNodeAttModMsk); (myFlags & ~TDF_LabelNodeAttModMsk);
if (aStatus) AllMayBeModified(); if (aStatus) AllMayBeModified();
}; }
inline Standard_Boolean AttributesModified() const inline Standard_Boolean AttributesModified() const
{ return ((myFlags & TDF_LabelNodeAttModMsk) != 0); }; { return ((myFlags & TDF_LabelNodeAttModMsk) != 0); }
// Flag MayBeModified access // Flag MayBeModified access
inline void MayBeModified(const Standard_Boolean aStatus) inline void MayBeModified(const Standard_Boolean aStatus)
{ myFlags = (aStatus) ? { myFlags = (aStatus) ?
(myFlags | TDF_LabelNodeMayModMsk) : (myFlags | TDF_LabelNodeMayModMsk) :
(myFlags & ~TDF_LabelNodeMayModMsk); }; (myFlags & ~TDF_LabelNodeMayModMsk); }
inline Standard_Boolean MayBeModified() const inline Standard_Boolean MayBeModified() const
{ return ((myFlags & TDF_LabelNodeMayModMsk) != 0); }; { return ((myFlags & TDF_LabelNodeMayModMsk) != 0); }
private : private :
@ -143,20 +143,20 @@ class TDF_LabelNode {
// Tag modification // Tag modification
inline void Tag(const Standard_Integer aTag) inline void Tag(const Standard_Integer aTag)
{ myTag = aTag; }; { myTag = aTag; }
// Depth modification // Depth modification
inline void Depth(const Standard_Integer aDepth) inline void Depth(const Standard_Integer aDepth)
{ myFlags = ((myFlags & TDF_LabelNodeFlagsMsk) | aDepth); }; { myFlags = ((myFlags & TDF_LabelNodeFlagsMsk) | aDepth); }
// Flag Imported access // Flag Imported access
inline void Imported(const Standard_Boolean aStatus) inline void Imported(const Standard_Boolean aStatus)
{ myFlags = (aStatus) ? { myFlags = (aStatus) ?
(myFlags | TDF_LabelNodeImportMsk) : (myFlags | TDF_LabelNodeImportMsk) :
(myFlags & ~TDF_LabelNodeImportMsk); }; (myFlags & ~TDF_LabelNodeImportMsk); }
inline Standard_Boolean IsImported() const inline Standard_Boolean IsImported() const
{ return ((myFlags & TDF_LabelNodeImportMsk) != 0); }; { return ((myFlags & TDF_LabelNodeImportMsk) != 0); }
// Private Fields // Private Fields
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------