KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TEXT_EVAL::ENVIRONMENT_SCOPE Class Reference

Make an environment current on this thread for the lifetime of the scope. More...

#include <text_eval_environment.h>

Public Member Functions

 ENVIRONMENT_SCOPE (ENVIRONMENT &aEnvironment)
 
 ~ENVIRONMENT_SCOPE ()
 
 ENVIRONMENT_SCOPE (const ENVIRONMENT_SCOPE &)=delete
 
ENVIRONMENT_SCOPEoperator= (const ENVIRONMENT_SCOPE &)=delete
 

Private Attributes

ENVIRONMENTm_previous
 

Detailed Description

Make an environment current on this thread for the lifetime of the scope.

Scopes nest. Other threads, including thread pool workers, keep evaluating against the wall clock.

Definition at line 157 of file text_eval_environment.h.

Constructor & Destructor Documentation

◆ ENVIRONMENT_SCOPE() [1/2]

TEXT_EVAL::ENVIRONMENT_SCOPE::ENVIRONMENT_SCOPE ( ENVIRONMENT & aEnvironment)
explicit

Definition at line 122 of file text_eval_environment.cpp.

References m_previous.

Referenced by ENVIRONMENT_SCOPE(), and operator=().

◆ ~ENVIRONMENT_SCOPE()

TEXT_EVAL::ENVIRONMENT_SCOPE::~ENVIRONMENT_SCOPE ( )

Definition at line 129 of file text_eval_environment.cpp.

References m_previous.

◆ ENVIRONMENT_SCOPE() [2/2]

TEXT_EVAL::ENVIRONMENT_SCOPE::ENVIRONMENT_SCOPE ( const ENVIRONMENT_SCOPE & )
delete

References ENVIRONMENT_SCOPE().

Member Function Documentation

◆ operator=()

ENVIRONMENT_SCOPE & TEXT_EVAL::ENVIRONMENT_SCOPE::operator= ( const ENVIRONMENT_SCOPE & )
delete

References ENVIRONMENT_SCOPE().

Member Data Documentation

◆ m_previous

ENVIRONMENT* TEXT_EVAL::ENVIRONMENT_SCOPE::m_previous
private

Definition at line 167 of file text_eval_environment.h.

Referenced by ENVIRONMENT_SCOPE(), and ~ENVIRONMENT_SCOPE().


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