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

Record every source read through aEnvironment into aValues, including memo hits. More...

#include <text_eval_environment.h>

Public Member Functions

 SOURCE_SCOPE (ENVIRONMENT &aEnvironment, ENVIRONMENT::SOURCE_VALUES &aValues)
 
 ~SOURCE_SCOPE ()
 
 SOURCE_SCOPE (const SOURCE_SCOPE &)=delete
 
SOURCE_SCOPEoperator= (const SOURCE_SCOPE &)=delete
 

Private Attributes

ENVIRONMENTm_environment
 
ENVIRONMENT::SOURCE_VALUESm_values
 
SOURCE_SCOPEm_previous
 

Friends

class ENVIRONMENT
 

Detailed Description

Record every source read through aEnvironment into aValues, including memo hits.

Nested scopes each receive every read. Clock reads are recorded only while the environment is active. Scopes must be destroyed in reverse order and must not outlive the environment or the values.

Definition at line 134 of file text_eval_environment.h.

Constructor & Destructor Documentation

◆ SOURCE_SCOPE() [1/2]

TEXT_EVAL::SOURCE_SCOPE::SOURCE_SCOPE ( ENVIRONMENT & aEnvironment,
ENVIRONMENT::SOURCE_VALUES & aValues )

Definition at line 106 of file text_eval_environment.cpp.

References ENVIRONMENT, m_environment, m_previous, and m_values.

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

◆ ~SOURCE_SCOPE()

TEXT_EVAL::SOURCE_SCOPE::~SOURCE_SCOPE ( )

Definition at line 115 of file text_eval_environment.cpp.

References m_environment, and m_previous.

◆ SOURCE_SCOPE() [2/2]

TEXT_EVAL::SOURCE_SCOPE::SOURCE_SCOPE ( const SOURCE_SCOPE & )
delete

References SOURCE_SCOPE().

Member Function Documentation

◆ operator=()

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

References SOURCE_SCOPE().

Friends And Related Symbol Documentation

◆ ENVIRONMENT

friend class ENVIRONMENT
friend

Definition at line 144 of file text_eval_environment.h.

References ENVIRONMENT.

Referenced by ENVIRONMENT, and SOURCE_SCOPE().

Member Data Documentation

◆ m_environment

ENVIRONMENT& TEXT_EVAL::SOURCE_SCOPE::m_environment
private

Definition at line 146 of file text_eval_environment.h.

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

◆ m_previous

SOURCE_SCOPE* TEXT_EVAL::SOURCE_SCOPE::m_previous
private

Definition at line 148 of file text_eval_environment.h.

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

◆ m_values

ENVIRONMENT::SOURCE_VALUES& TEXT_EVAL::SOURCE_SCOPE::m_values
private

Definition at line 147 of file text_eval_environment.h.

Referenced by SOURCE_SCOPE().


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