This class implements a scoped hierarchy.
More...
#include <DebugElements.h>
|
| ~ScopedHierarchyBase () |
| Releases the hierarchy and disposes this object.
|
|
void | change (const std::string &newHierarchyItem) |
| Explicitly exchanges the hierarchy instead of releasing it and creating a new one.
|
|
void | release () |
| Explicitly releases the hierarchy (already before the destructor is called).
|
|
This class implements a scoped hierarchy.
The hierarchy exists as long as this object exists.
◆ ~ScopedHierarchyBase()
Ocean::DebugElements::ScopedHierarchyBase::~ScopedHierarchyBase |
( |
| ) |
|
|
inline |
Releases the hierarchy and disposes this object.
◆ ScopedHierarchyBase() [1/2]
Ocean::DebugElements::ScopedHierarchyBase::ScopedHierarchyBase |
( |
const ScopedHierarchyBase & |
scopedHierarchy | ) |
|
|
protecteddelete |
Disabled copy constructor.
- Parameters
-
scopedHierarchy | The hierarchy object which would have been copied |
◆ ScopedHierarchyBase() [2/2]
Ocean::DebugElements::ScopedHierarchyBase::ScopedHierarchyBase |
( |
DebugElements & |
owner, |
|
|
const std::string & |
hierarchyItem |
|
) |
| |
|
inlineprotected |
Creates a new scoped object and pushes the given hierarchy.
- Parameters
-
owner | The owner of the scoped object |
hierarchyItem | The hierarchy item to be pushed, must be valid |
◆ change()
void Ocean::DebugElements::ScopedHierarchyBase::change |
( |
const std::string & |
newHierarchyItem | ) |
|
Explicitly exchanges the hierarchy instead of releasing it and creating a new one.
Actually pops the current hierarchy and pushes the new one.
- Parameters
-
newHierarchyItem | The new hierarchy item to be pushed, must be valid |
◆ operator=()
Disabled copy operator.
- Parameters
-
scopedHierarchy | The hierarchy object which would have been copied |
- Returns
- Reference to this object
◆ release()
void Ocean::DebugElements::ScopedHierarchyBase::release |
( |
| ) |
|
Explicitly releases the hierarchy (already before the destructor is called).
◆ hierarchyItem_
std::string Ocean::DebugElements::ScopedHierarchyBase::hierarchyItem_ |
|
protected |
The hierarchy item of this object.
◆ owner_
The owner of this object.
The documentation for this class was generated from the following file: