KNumberRenamingStrategy Class Reference

#include <krenamingstrategy.h>
Inheritance diagram for KNumberRenamingStrategy:
Inheritance graph
[legend]

List of all members.


Detailed Description

Implements a renaming strategy that resolves name clashes by adding number postfixes.

For example, when there are three objects with the same names "MyObject", and they will be renamed to "MyObject", "MyObject1" and "MyObject2".

See also:
KName KRenamingStrategy

Definition at line 86 of file krenamingstrategy.h.


Public Member Functions

  KNumberRenamingStrategy ()
  Constructor.
virtual  ~KNumberRenamingStrategy ()
  Destructor.
virtual void  Clear ()
  Resets internal state regarding assigned names.
virtual bool  Rename (KName &pName)
  Rename a name if necessary to avoid name-clash issues.
virtual KRenamingStrategy Clone ()
  Create a dynamic renaming strategy instance of the same type as the child class.

Constructor & Destructor Documentation

Constructor.

virtual ~KNumberRenamingStrategy (  )  [virtual]

Destructor.


Member Function Documentation

virtual void Clear (  )  [virtual]

Resets internal state regarding assigned names.

Implements KRenamingStrategy.

virtual bool Rename ( KName pName  )  [virtual]

Rename a name if necessary to avoid name-clash issues.

Parameters:
pName  The name to be renamed.
Returns:
Return true on success, false otherwise.

Implements KRenamingStrategy.

virtual KRenamingStrategy* Clone (  )  [virtual]

Create a dynamic renaming strategy instance of the same type as the child class.

Returns:
New instance.

Implements KRenamingStrategy.

KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy
KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy KNumberRenamingStrategy