MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::UI::TestEngine::TreeGuard Class Reference

#include <MRViewer/MRUITestEngine.h>

Public Member Functions

 TreeGuard (std::string_view name)
 ~TreeGuard ()
 TreeGuard (const TreeGuard &)=delete
TreeGuardoperator= (const TreeGuard &)=delete

Detailed Description

RAII wrapper for pushTree()/popTree(): pushes a named group on construction and pops it on scope exit (including early returns and exceptions). Prefer this over a manual pushTree() + MR_FINALLY{ popTree(); }.

Constructor & Destructor Documentation

◆ TreeGuard() [1/2]

MR::UI::TestEngine::TreeGuard::TreeGuard ( std::string_view name)
inlineexplicit

◆ ~TreeGuard()

MR::UI::TestEngine::TreeGuard::~TreeGuard ( )
inline

◆ TreeGuard() [2/2]

MR::UI::TestEngine::TreeGuard::TreeGuard ( const TreeGuard & )
delete

Member Function Documentation

◆ operator=()

TreeGuard & MR::UI::TestEngine::TreeGuard::operator= ( const TreeGuard & )
delete

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