Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
WaveClip::StrongInvariantScope Struct Reference

#include <WaveClip.h>

Collaboration diagram for WaveClip::StrongInvariantScope:
[legend]

Public Member Functions

 StrongInvariantScope (WaveClip &clip)
 
 ~StrongInvariantScope ()
 

Private Attributes

WaveClipmClip
 

Detailed Description

Assert or repair strong invariant before mutating the sequence; assert the strong invariant again at exit

Definition at line 324 of file WaveClip.h.

Constructor & Destructor Documentation

◆ StrongInvariantScope()

WaveClip::StrongInvariantScope::StrongInvariantScope ( WaveClip clip)
explicit

Definition at line 2039 of file WaveClip.cpp.

2040 : mClip{ clip }
2041{
2043}
void AssertOrRepairStrongInvariant()
Definition: WaveClip.cpp:2030

References WaveClip::AssertOrRepairStrongInvariant(), and mClip.

Here is the call graph for this function:

◆ ~StrongInvariantScope()

WaveClip::StrongInvariantScope::~StrongInvariantScope ( )

Definition at line 2045 of file WaveClip.cpp.

2046{
2047 assert(mClip.StrongInvariant());
2048}
bool StrongInvariant() const
Definition: WaveClip.cpp:2013

Member Data Documentation

◆ mClip

WaveClip& WaveClip::StrongInvariantScope::mClip
private

Definition at line 328 of file WaveClip.h.

Referenced by StrongInvariantScope().


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