1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0031939: Coding - correction of spelling errors in comments [part 12]

Fix various typos via codespell.
This commit is contained in:
luz paz
2021-05-04 16:03:06 +03:00
committed by kgv
parent 2641792e45
commit 03ca365a6c
105 changed files with 259 additions and 277 deletions

View File

@@ -56,7 +56,7 @@ class TDF_IDFilter;
//! features and data structures.
//!
//! The feature structure is a tree used to bind
//! semantic informations about each feature together.
//! semantic information about each feature together.
//!
//! The only one concrete attribute defined in this
//! package is the TagSource attribute.This attribute

View File

@@ -304,8 +304,8 @@ void TDF_Attribute::RemoveBackup()
throw Standard_DomainError("Impossible to remove a nonexistent backup.");
#endif
myBackup->BeforeRemoval();
myBackup->myLabelNode = NULL; // Absolutly necessary!
myBackup->myNext.Nullify(); // Absolutly necessary!
myBackup->myLabelNode = NULL; // Absolutely necessary!
myBackup->myNext.Nullify(); // Absolutely necessary!
myBackup = myBackup->myBackup;
if (!myBackup.IsNull()) myBackup->myNext = this; // New back reference.
}

View File

@@ -70,7 +70,7 @@ DEFINE_STANDARD_HANDLE(TDF_Attribute, Standard_Transient)
//!
//! An attribute can be identified by its ID. Every
//! attributes used with the same meaning (for
//! exemple: Integer, String, Topology...) have the
//! example: Integer, String, Topology...) have the
//! same worldwide unique ID.
//!
//! Addition:
@@ -121,7 +121,7 @@ DEFINE_STANDARD_HANDLE(TDF_Attribute, Standard_Transient)
//! algorithms. The goal of "Paste" is to transfer an
//! attribute new contents into another attribute. The
//! goal of "NewEmpty" is to create an attribute
//! whithout contents, to be further filled with the
//! without contents, to be further filled with the
//! new contents of another one. These 2 methods must
//! be implemented by end use inheriting classes.
//!
@@ -206,7 +206,7 @@ public:
Standard_EXPORT void AddAttribute (const Handle(TDF_Attribute)& other) const;
//! Forgets the Attribute of GUID <aguid> associated
//! to the label of <me>. Be carefull that if <me> is
//! to the label of <me>. Be careful that if <me> is
//! the attribute of <guid>, <me> will have a null label
//! after this call. If the attribute doesn't exist
//! returns False. Otherwise returns True.
@@ -216,7 +216,7 @@ public:
//! of <me>. Does it on the sub-labels if
//! <clearChildren> is set to true. Of course, this
//! method is compatible with Transaction & Delta
//! mecanisms. Be carefull that if <me> will have a
//! mechanisms. Be careful that if <me> will have a
//! null label after this call
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const;

View File

@@ -30,7 +30,7 @@ class Standard_GUID;
class TDF_AttributeDelta;
DEFINE_STANDARD_HANDLE(TDF_AttributeDelta, Standard_Transient)
//! This class discribes the services we need to
//! This class describes the services we need to
//! implement Delta and Undo/Redo services.
//!
//! AttributeDeltas are applied in an unpredictable

View File

@@ -30,8 +30,8 @@
// up-to-date (current) valid attributes of a label.
//
// This class should not be used for standard attributes workflow.
// Application allways knows what to search at particular label.
// So, use IsAttribute and FindAttibute methods of
// Application always knows what to search at particular label.
// So, use IsAttribute and FindAttribute methods of
// TDF_Label to check and get attributes in usual way.
// This class may be used for processing of content of labels
// in generic way, like copy-tool, specific save/restore algorithms,

View File

@@ -32,7 +32,7 @@ public:
DEFINE_STANDARD_ALLOC
//! Creates an objet with all modes set to <aMode>.
//! Creates an object with all modes set to <aMode>.
Standard_EXPORT TDF_ClosureMode(const Standard_Boolean aMode = Standard_True);
//! Sets the mode "Descendants" to <aStatus>.

View File

@@ -35,7 +35,7 @@
//=======================================================================
//function : Closure
//purpose : Builds the transitive closure whithout attribute filter.
//purpose : Builds the transitive closure without attribute filter.
//=======================================================================
void TDF_ClosureTool::Closure

View File

@@ -32,19 +32,15 @@ class TDF_Label;
//! information. The use of this tool can works after
//! a copy, acted by a CopyTool.
//!
//! * Compare(...) compares two DataSet and returns
//! the result.
//! * Compare(...) compares two DataSet and returns the result.
//!
//! * SourceUnbound(...) builds the difference between
//! a relocation dictionnary and a source set of
//! information.
//! a relocation dictionary and a source set of information.
//!
//! * TargetUnbound(...) does the same between a
//! relocation dictionnary and a target set of
//! information.
//! relocation dictionary and a target set of information.
//!
//! * Cut(aDataSet, anLabel) removes a set of
//! attributes.
//! * Cut(aDataSet, anLabel) removes a set of attributes.
//!
//! * IsSelfContained(...) returns true if all the
//! labels of the attributes of the given DataSet are

View File

@@ -37,9 +37,8 @@ class TDF_Label;
class TDF_Data;
DEFINE_STANDARD_HANDLE(TDF_Data, Standard_Transient)
//! This class is used to manipulate a complete
//! independant, self sufficient data structure and
//! its services:
//! This class is used to manipulate a complete independent,
//! self sufficient data structure and its services:
//!
//! Access to the root label;
//!
@@ -48,8 +47,7 @@ DEFINE_STANDARD_HANDLE(TDF_Data, Standard_Transient)
//! Generation and use of Delta, depending on the time.
//! This class uses a special allocator
//! (see LabelNodeAllocator() method)
//! for more efficient allocation of
//! objects in memory.
//! for more efficient allocation of objects in memory.
class TDF_Data : public Standard_Transient
{
@@ -71,10 +69,9 @@ public:
//! Returns true if <aDelta> is applicable HERE and NOW.
Standard_EXPORT Standard_Boolean IsApplicable (const Handle(TDF_Delta)& aDelta) const;
//! Apply <aDelta> to undo a set of attribute
//! modifications.
//! Apply <aDelta> to undo a set of attribute modifications.
//!
//! Optionnal <withDelta> set to True indiquates a
//! Optional <withDelta> set to True indicates a
//! Delta Set must be generated. (See above)
Standard_EXPORT Handle(TDF_Delta) Undo (const Handle(TDF_Delta)& aDelta, const Standard_Boolean withDelta = Standard_False);
@@ -162,7 +159,7 @@ private:
//!
//! Raises if there is no current transaction.
//!
//! Optionnal <withDelta> set to True indiquates a
//! Optional <withDelta> set to True indicates a
//! Delta must be generated.
Standard_EXPORT Handle(TDF_Delta) CommitTransaction (const Standard_Boolean withDelta = Standard_False);

View File

@@ -32,8 +32,7 @@ class TDF_Attribute;
class TDF_DataSet;
DEFINE_STANDARD_HANDLE(TDF_DataSet, Standard_Transient)
//! This class is a set of TDF informations like
//! labels and attributes.
//! This class is a set of TDF information like labels and attributes.
class TDF_DataSet : public Standard_Transient
{

View File

@@ -620,7 +620,7 @@ void TDF_Label::ForgetFromNode (const TDF_LabelNodePtr& fromNode,
// The attribute has been modified in the current transaction.
// (It has at least one backup.) We don't restore the previous
// version before forgetting. It may generated a strange behaviour
// in case of forgetting, commiting, aborting...
// in case of forgetting, committing, aborting...
if (fromNode->Data()->NotUndoMode()) anAttribute->BeforeForget();
anAttribute->Forget(fromNode->Data()->Transaction());
}

View File

@@ -133,7 +133,7 @@ public:
//! Forgets all the attributes. Does it on also on the
//! sub-labels if <clearChildren> is set to true. Of
//! course, this method is compatible with Transaction
//! & Delta mecanisms.
//! & Delta mechanisms.
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const;
//! Undo Forget action, setting its forgotten status

View File

@@ -128,7 +128,7 @@ void TDF_LabelNode::RemoveAttribute
(const Handle(TDF_Attribute)& afterAtt,
const Handle(TDF_Attribute)& oldAtt)
{
oldAtt->myFlags = 0; // Unvalid.
oldAtt->myFlags = 0; // Invalid.
oldAtt->myLabelNode = NULL;
if (afterAtt.IsNull()) { // Removes from beginning.
myFirstAttribute = oldAtt->myNext;

View File

@@ -35,7 +35,7 @@ class Standard_Transient;
class TDF_RelocationTable;
DEFINE_STANDARD_HANDLE(TDF_RelocationTable, Standard_Transient)
//! This is a relocation dictionnary between source
//! This is a relocation dictionary between source
//! and target labels, attributes or any
//! transient(useful for copy or paste actions).
//! Note that one target value may be the
@@ -125,7 +125,7 @@ public:
//! explanation about the method behavior)
Standard_EXPORT Standard_Boolean HasTransientRelocation (const Handle(Standard_Transient)& aSourceTransient, Handle(Standard_Transient)& aTargetTransient) const;
//! Clears the relocation dictionnary, but lets the
//! Clears the relocation dictionary, but lets the
//! self relocation flag to its current value.
Standard_EXPORT void Clear();

View File

@@ -85,7 +85,7 @@ public:
Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, TDF_AttributeMap& atts);
//! Returns in <atts> the referenced attributes and kept by <aFilterForReferences>.
//! It considers only the referers kept by <aFilterForReferers>.
//! It considers only the referrers kept by <aFilterForReferers>.
//! Caution: <atts> is not cleared before use!
Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, const TDF_IDFilter& aFilterForReferers, const TDF_IDFilter& aFilterForReferences, TDF_AttributeMap& atts);
@@ -93,7 +93,7 @@ public:
//! <aLabel> but located as descendant as <toRoot>
//! instead of <fromRoot>.
//!
//! Exemple :
//! Example :
//!
//! aLabel = 0:3:24:7:2:7
//! fromRoot = 0:3:24
@@ -149,10 +149,10 @@ public:
//! attributes content.
Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const Handle(TDF_Data)& aDF, const TDF_IDFilter& aFilter);
//! Dumps <aLabel>, its chilren and their attributes.
//! Dumps <aLabel>, its children and their attributes.
Standard_EXPORT static void DeepDump (Standard_OStream& anOS, const TDF_Label& aLabel);
//! Dumps <aLabel>, its chilren and their attributes,
//! Dumps <aLabel>, its children and their attributes,
//! if their IDs are kept by <aFilter>. Dumps also the
//! attributes content.
Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const TDF_Label& aLabel, const TDF_IDFilter& aFilter);

View File

@@ -33,7 +33,7 @@ class TCollection_AsciiString;
//! This class offers services to open, commit or
//! abort a transaction in a more secure way than
//! using Data from TDF. If you forget to close a
//! transaction, it will be automaticaly aborted at
//! transaction, it will be automatically aborted at
//! the destruction of this object, at the closure of
//! its scope.
//!