Audacity 3.2.0
Public Types | Public Member Functions | Private Attributes | List of all members
anonymous_namespace{WaveTrackViewConstants.cpp}::Registry Class Reference
Collaboration diagram for anonymous_namespace{WaveTrackViewConstants.cpp}::Registry:
[legend]

Public Types

using Type = WaveTrackSubViewType
 
using Types = std::vector< Type >
 

Public Member Functions

void Append (Type type)
 
TypesGet ()
 

Private Attributes

Types types
 
bool sorted = false
 

Detailed Description

Definition at line 49 of file WaveTrackViewConstants.cpp.

Member Typedef Documentation

◆ Type

using anonymous_namespace{WaveTrackViewConstants.cpp}::Registry::Type = WaveTrackSubViewType

Definition at line 51 of file WaveTrackViewConstants.cpp.

◆ Types

using anonymous_namespace{WaveTrackViewConstants.cpp}::Registry::Types = std::vector< Type >

Definition at line 52 of file WaveTrackViewConstants.cpp.

Member Function Documentation

◆ Append()

void anonymous_namespace{WaveTrackViewConstants.cpp}::Registry::Append ( Type  type)
inline

Definition at line 54 of file WaveTrackViewConstants.cpp.

Referenced by WaveTrackSubViewType::RegisteredType::RegisteredType().

Here is the caller graph for this function:

◆ Get()

Types & anonymous_namespace{WaveTrackViewConstants.cpp}::Registry::Get ( )
inline

Definition at line 60 of file WaveTrackViewConstants.cpp.

61 {
62 if ( !sorted ) {
63 auto begin = types.begin(), end = types.end();
64 std::sort( begin, end );
65 // We don't want duplicate ids!
66 wxASSERT( end == std::adjacent_find( begin, end ) );
67 sorted = true;
68 }
69 return types;
70 }
auto end(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
Definition: PackedArray.h:159
auto begin(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
Definition: PackedArray.h:150

References PackedArray::begin(), and PackedArray::end().

Referenced by WaveTrackSubViewType::All().

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

Member Data Documentation

◆ sorted

bool anonymous_namespace{WaveTrackViewConstants.cpp}::Registry::sorted = false
private

Definition at line 74 of file WaveTrackViewConstants.cpp.

◆ types

Types anonymous_namespace{WaveTrackViewConstants.cpp}::Registry::types
private

Definition at line 73 of file WaveTrackViewConstants.cpp.


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