Audacity 3.2.0
Typedefs | Functions
anonymous_namespace{UndoManager.cpp} Namespace Reference

Typedefs

using Savers = std::vector< UndoRedoExtensionRegistry::Saver >
 

Functions

static SaversGetSavers ()
 
UndoState::Extensions GetExtensions (AudacityProject &project)
 

Typedef Documentation

◆ Savers

using anonymous_namespace{UndoManager.cpp}::Savers = typedef std::vector<UndoRedoExtensionRegistry::Saver>

Definition at line 38 of file UndoManager.cpp.

Function Documentation

◆ GetExtensions()

UndoState::Extensions anonymous_namespace{UndoManager.cpp}::GetExtensions ( AudacityProject project)

Definition at line 45 of file UndoManager.cpp.

46 {
48 for (auto &saver : GetSavers())
49 if (saver)
50 result.emplace_back(saver(project));
51 return result;
52 }
std::vector< std::shared_ptr< UndoStateExtension > > Extensions
Definition: UndoManager.h:113

References GetSavers().

Referenced by UndoManager::ModifyState(), and UndoManager::PushState().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSavers()

static Savers & anonymous_namespace{UndoManager.cpp}::GetSavers ( )
static

Definition at line 39 of file UndoManager.cpp.

40 {
41 static Savers theSavers;
42 return theSavers;
43 }
std::vector< UndoRedoExtensionRegistry::Saver > Savers
Definition: UndoManager.cpp:38

Referenced by UndoRedoExtensionRegistry::Entry::Entry(), and GetExtensions().

Here is the caller graph for this function: