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 42 of file UndoManager.cpp.

Function Documentation

◆ GetExtensions()

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

Definition at line 49 of file UndoManager.cpp.

50 {
52 for (auto &saver : GetSavers())
53 if (saver)
54 result.emplace_back(saver(project));
55 return result;
56 }
const auto project
std::vector< std::shared_ptr< UndoStateExtension > > Extensions
Definition: UndoManager.h:108

References GetSavers(), and project.

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 43 of file UndoManager.cpp.

44 {
45 static Savers theSavers;
46 return theSavers;
47 }
std::vector< UndoRedoExtensionRegistry::Saver > Savers
Definition: UndoManager.cpp:42

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

Here is the caller graph for this function: