SelfEraser erases creation command if no more it's commands invoked. More...
#include <SMESH_2smeshpy.hxx>

Public Member Functions | |
| _pySelfEraser (const Handle(_pyCommand)&theCreationCmd) | |
| virtual void | Flush () |
| SelfEraser erases creation command if no more it's commands invoked. | |
| const | Handle (_pyCommand)&GetCreationCmd() |
| const _pyID & | GetID () |
| int | GetNbCalls () const |
| void | SetCreationCmd (Handle(_pyCommand) cmd) |
| int | GetCommandNb () |
| virtual void | Process (const Handle(_pyCommand)&theCommand) |
| virtual const char * | AccessorMethod () const |
| Return method name giving access to an interaface object wrapped by python class. | |
Static Public Member Functions | |
| static _pyID | FatherID (const _pyID &childID) |
| Return ID of a father. | |
SelfEraser erases creation command if no more it's commands invoked.
Definition at line 427 of file SMESH_2smeshpy.hxx.
| _pySelfEraser._pySelfEraser | ( | const Handle(_pyCommand)& | theCreationCmd | ) |
Definition at line 430 of file SMESH_2smeshpy.hxx.
:_pyObject(theCreationCmd) {}
| const char * _pyObject::AccessorMethod | ( | ) | const [virtual, inherited] |
Return method name giving access to an interaface object wrapped by python class.
| const | char* - method name |
Reimplemented in _pyGen, _pyMesh, and _pyAlgorithm.
Definition at line 2484 of file SMESH_2smeshpy.cxx.
{
return 0;
}
Return ID of a father.
Definition at line 2494 of file SMESH_2smeshpy.cxx.
Referenced by _pySegmentLengthAroundVertexHyp.Addition2Creation().
{
int colPos = childID.SearchFromEnd(':');
if ( colPos > 0 )
return childID.SubString( 1, colPos-1 );
return "";
}
| void _pySelfEraser::Flush | ( | ) | [virtual] |
SelfEraser erases creation command if no more it's commands invoked.
Implements _pyObject.
Definition at line 2508 of file SMESH_2smeshpy.cxx.
References _pyObject.GetNbCalls().
{
if ( GetNbCalls() == 0 )
GetCreationCmd()->Clear();
}
| int _pyObject.GetCommandNb | ( | ) | [inherited] |
Definition at line 167 of file SMESH_2smeshpy.hxx.
{ return myCreationCmd->GetOrderNb(); }
| const _pyID& _pyObject.GetID | ( | ) | [inherited] |
Definition at line 162 of file SMESH_2smeshpy.hxx.
Referenced by _pyMesh._pyMesh(), _pyAlgorithm.Addition2Creation(), _pyLayerDistributionHypo.Addition2Creation(), _pyHypothesis.Addition2Creation(), and _pyMesh.Flush().
{ return myCreationCmd->GetResultValue(); }
| int _pyObject.GetNbCalls | ( | ) | const [inherited] |
Definition at line 165 of file SMESH_2smeshpy.hxx.
References _pyObject.myNbCalls.
Referenced by _pySubMesh.Flush(), and Flush().
{ return myNbCalls; }
| const _pyObject.Handle | ( | _pyCommand | ) | [inherited] |
Reimplemented in _pyGen, and _pyGen.
Definition at line 164 of file SMESH_2smeshpy.hxx.
{ return myCreationCmd; }
| virtual void _pyObject.Process | ( | const Handle(_pyCommand)& | theCommand | ) | [virtual, inherited] |
Reimplemented in _pyGen, _pyMesh, _pyMeshEditor, _pyHypothesis, _pyComplexParamHypo, _pyLayerDistributionHypo, and _pySubMesh.
Definition at line 168 of file SMESH_2smeshpy.hxx.
References _pyObject.myNbCalls.
{ myNbCalls++; }
| void _pyObject.SetCreationCmd | ( | Handle(_pyCommand) | cmd | ) | [inherited] |
Definition at line 166 of file SMESH_2smeshpy.hxx.
Referenced by _pyHypothesis.Addition2Creation().
{ myCreationCmd = cmd; }