Skip to main content

The OutputGenElem Struct Reference

Declaration

struct OutputList::OutputGenElem { ... }

Public Constructors Index

OutputGenElem (OutputGenIntfPtr &&v)
OutputGenElem (const OutputGenElem &other)

Public Operators Index

OutputGenElem &operator= (const OutputGenElem &other)

Public Member Functions Index

voidsetEnabled (bool e)

Public Member Attributes Index

OutputGenIntfPtrintf
boolenabled = true
std::stack< bool >enabledStack

Definition at line 319 of file outputlist.h.

Public Constructors

OutputGenElem()

OutputList::OutputGenElem::OutputGenElem (OutputGenIntfPtr && v)
inline explicit

Definition at line 321 of file outputlist.h.

321 explicit OutputGenElem(OutputGenIntfPtr &&v) : intf(std::move(v)) {}

Reference intf.

Referenced by operator= and OutputGenElem.

OutputGenElem()

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

Definition at line 322 of file outputlist.h.

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

References enabled, intf and OutputGenElem.

Public Operators

operator=()

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

Definition at line 327 of file outputlist.h.

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

References enabled, intf and OutputGenElem.

Public Member Functions

setEnabled()

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

Definition at line 337 of file outputlist.h.

337 void setEnabled(bool e) { enabled = e && !enabledStack.empty() ? enabledStack.top() : e; }

References enabled and enabledStack.

Public Member Attributes

enabled

bool OutputList::OutputGenElem::enabled = true

Definition at line 338 of file outputlist.h.

338 bool enabled = true;

Referenced by operator=, OutputGenElem and setEnabled.

enabledStack

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

Definition at line 339 of file outputlist.h.

339 std::stack<bool> enabledStack;

Referenced by setEnabled.

intf

OutputGenIntfPtr OutputList::OutputGenElem::intf

Definition at line 336 of file outputlist.h.

Referenced by operator=, OutputGenElem and OutputGenElem.


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.