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 320 of file outputlist.h.

Constructor & Destructor Documentation

◆ OutputGenElem() [1/2]

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

Definition at line 322 of file outputlist.h.

322: intf(std::move(v)) {}
OutputGenIntfPtr intf
Definition outputlist.h:337

References intf.

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

◆ OutputGenElem() [2/2]

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

Definition at line 323 of file outputlist.h.

324 {
325 intf = other.intf->clone();
326 enabled = other.enabled;
327 }

References enabled, intf, and OutputGenElem().

Member Function Documentation

◆ operator=()

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

Definition at line 328 of file outputlist.h.

329 {
330 if (&other!=this)
331 {
332 intf = other.intf->clone();
333 enabled = other.enabled;
334 }
335 return *this;
336 }

References enabled, intf, and OutputGenElem().

◆ setEnabled()

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

Definition at line 338 of file outputlist.h.

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

References enabled, and enabledStack.

Member Data Documentation

◆ enabled

bool OutputList::OutputGenElem::enabled = true

Definition at line 339 of file outputlist.h.

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

◆ enabledStack

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

Definition at line 340 of file outputlist.h.

Referenced by setEnabled().

◆ intf

OutputGenIntfPtr OutputList::OutputGenElem::intf

Definition at line 337 of file outputlist.h.

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


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