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

Public Types

using Type = WaveChannelSubViewType
 
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 WaveChannelViewConstants.cpp.

Member Typedef Documentation

◆ Type

using anonymous_namespace{WaveChannelViewConstants.cpp}::Registry::Type = WaveChannelSubViewType

Definition at line 51 of file WaveChannelViewConstants.cpp.

◆ Types

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

Definition at line 52 of file WaveChannelViewConstants.cpp.

Member Function Documentation

◆ Append()

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

Definition at line 54 of file WaveChannelViewConstants.cpp.

Referenced by WaveChannelSubViewType::RegisteredType::RegisteredType().

Here is the caller graph for this function:

◆ Get()

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

Definition at line 60 of file WaveChannelViewConstants.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 }
const char * end(const char *str) noexcept
Definition: StringUtils.h:106
const char * begin(const char *str) noexcept
Definition: StringUtils.h:101

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

Referenced by WaveChannelSubViewType::All().

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

Member Data Documentation

◆ sorted

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

Definition at line 74 of file WaveChannelViewConstants.cpp.

◆ types

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

Definition at line 73 of file WaveChannelViewConstants.cpp.


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