v2.0.0
Loading...
Searching...
No Matches
observerpattern.cpp File Reference

Out-of-line definitions of UTILSLIB::Subject — attach/detach observer bookkeeping and the notify() fan-out. More...

#include "observerpattern.h"
Include dependency graph for observerpattern.cpp:

Go to the source code of this file.

Detailed Description

Out-of-line definitions of UTILSLIB::Subject — attach/detach observer bookkeeping and the notify() fan-out.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2017-2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org; Lorenz Esch loren.nosp@m.z.es.nosp@m.ch@tu.nosp@m.-ilm.nosp@m.enau..nosp@m.de; Gabriel Motta gabri.nosp@m.elbe.nosp@m.nmott.nosp@m.a@gm.nosp@m.ail.c.nosp@m.om
Since
0.1.0
Date
September 2017

Owns the storage for the static notifyEnabled flag and the non-inline notify() loop. Observer destruction is the caller's responsibility — Subject only holds raw pointers because many concrete observers live on the stack or are owned by Qt parent chains that do not fit a smart-pointer lifetime model.

Definition in file observerpattern.cpp.