Doxygen
Loading...
Searching...
No Matches
OutputList::OutputGenElem Struct Reference

Public Member Functions

 OutputGenElem (OutputGenIntfPtr &&v)
 OutputGenElem (const OutputGenElem &other)
OutputGenElemoperator= (const OutputGenElem &other)
void setEnabled (bool e)

Public Attributes

OutputGenIntfPtr intf
bool enabled = true
std::stack< bool > enabledStack

Detailed Description

Definition at line 316 of file outputlist.h.

Constructor & Destructor Documentation

◆ OutputGenElem() [1/2]

OutputList::OutputGenElem::OutputGenElem ( OutputGenIntfPtr && v)
inlineexplicit

Definition at line 318 of file outputlist.h.

318: intf(std::move(v)) {}
OutputGenIntfPtr intf
Definition outputlist.h:333

References intf.

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

◆ OutputGenElem() [2/2]

OutputList::OutputGenElem::OutputGenElem ( const OutputGenElem & other)
inline

Definition at line 319 of file outputlist.h.

320 {
321 intf = other.intf->clone();
322 enabled = other.enabled;
323 }

References enabled, intf, and OutputGenElem().

Member Function Documentation

◆ operator=()

OutputGenElem & OutputList::OutputGenElem::operator= ( const OutputGenElem & other)
inline

Definition at line 324 of file outputlist.h.

325 {
326 if (&other!=this)
327 {
328 intf = other.intf->clone();
329 enabled = other.enabled;
330 }
331 return *this;
332 }

References enabled, intf, and OutputGenElem().

◆ setEnabled()

void OutputList::OutputGenElem::setEnabled ( bool e)
inline

Definition at line 334 of file outputlist.h.

334{ enabled = e && !enabledStack.empty() ? enabledStack.top() : e; }
std::stack< bool > enabledStack
Definition outputlist.h:336

References enabled, and enabledStack.

Member Data Documentation

◆ enabled

bool OutputList::OutputGenElem::enabled = true

Definition at line 335 of file outputlist.h.

Referenced by operator=(), OutputGenElem(), and setEnabled().

◆ enabledStack

std::stack<bool> OutputList::OutputGenElem::enabledStack

Definition at line 336 of file outputlist.h.

Referenced by setEnabled().

◆ intf

OutputGenIntfPtr OutputList::OutputGenElem::intf

Definition at line 333 of file outputlist.h.

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


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