Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph_LayerLock::ScopedOwnerEdit Class Reference

Scoped permission for an owner layer to edit one item it owns. More...

#include <BRepGraph_LayerLock.hxx>

Public Member Functions

 ScopedOwnerEdit (BRepGraph_LayerLock &theLayer, const BRepGraph_ItemId theItem, const Standard_GUID &theOwnerId)
 ~ScopedOwnerEdit ()
 ScopedOwnerEdit (const ScopedOwnerEdit &)=delete
ScopedOwnerEdit & operator= (const ScopedOwnerEdit &)=delete
 ScopedOwnerEdit (ScopedOwnerEdit &&theOther) noexcept
ScopedOwnerEdit & operator= (ScopedOwnerEdit &&theOther) noexcept

Detailed Description

Scoped permission for an owner layer to edit one item it owns.

The scope traverses upward to find the root owner for GUID verification, then temporarily clears the fast owned bit on the specific item so existing editor mutation APIs can be reused by the owning layer.

Constructor & Destructor Documentation

◆ ScopedOwnerEdit() [1/3]

BRepGraph_LayerLock::ScopedOwnerEdit::ScopedOwnerEdit ( BRepGraph_LayerLock & theLayer,
const BRepGraph_ItemId theItem,
const Standard_GUID & theOwnerId )

◆ ~ScopedOwnerEdit()

BRepGraph_LayerLock::ScopedOwnerEdit::~ScopedOwnerEdit ( )

◆ ScopedOwnerEdit() [2/3]

BRepGraph_LayerLock::ScopedOwnerEdit::ScopedOwnerEdit ( const ScopedOwnerEdit & )
delete

◆ ScopedOwnerEdit() [3/3]

BRepGraph_LayerLock::ScopedOwnerEdit::ScopedOwnerEdit ( ScopedOwnerEdit && theOther)
noexcept

Member Function Documentation

◆ operator=() [1/2]

ScopedOwnerEdit & BRepGraph_LayerLock::ScopedOwnerEdit::operator= ( const ScopedOwnerEdit & )
delete

◆ operator=() [2/2]

ScopedOwnerEdit & BRepGraph_LayerLock::ScopedOwnerEdit::operator= ( ScopedOwnerEdit && theOther)
noexcept

The documentation for this class was generated from the following file: