Audacity  3.0.3
Public Types | Public Member Functions | Public Attributes | List of all members
Registry::OrderingHint Struct Reference

#include <Registry.h>

Collaboration diagram for Registry::OrderingHint:
[legend]

Public Types

enum  Type : int {
  Before, After, Begin, End,
  Unspecified
}
 

Public Member Functions

 OrderingHint ()
 
 OrderingHint (Type type_, const wxString &name_={})
 
bool operator== (const OrderingHint &other) const
 
bool operator< (const OrderingHint &other) const
 

Public Attributes

enum Registry::OrderingHint::Type Unspecified
 
Identifier name
 

Detailed Description

Definition at line 23 of file Registry.h.

Member Enumeration Documentation

◆ Type

Enumerator
Before 
After 
Begin 
End 
Unspecified 

Definition at line 28 of file Registry.h.

28  : int {
29  Before, After,
30  Begin, End,
31  Unspecified // keep this last
32  } type{ Unspecified };

Constructor & Destructor Documentation

◆ OrderingHint() [1/2]

Registry::OrderingHint::OrderingHint ( )
inline

Definition at line 38 of file Registry.h.

38 {}

◆ OrderingHint() [2/2]

Registry::OrderingHint::OrderingHint ( Type  type_,
const wxString &  name_ = {} 
)
inline

Definition at line 39 of file Registry.h.

39  {} )
40  : type(type_), name(name_) {}

Member Function Documentation

◆ operator<()

bool Registry::OrderingHint::operator< ( const OrderingHint other) const
inline

Definition at line 45 of file Registry.h.

46  {
47  // This sorts unspecified placements later
48  return std::make_pair( type, name ) <
49  std::make_pair( other.type, other.name );
50  }

References name.

◆ operator==()

bool Registry::OrderingHint::operator== ( const OrderingHint other) const
inline

Definition at line 42 of file Registry.h.

43  { return name == other.name && type == other.type; }

References name.

Member Data Documentation

◆ name

Identifier Registry::OrderingHint::name

Definition at line 36 of file Registry.h.

Referenced by operator<(), and operator==().

◆ Unspecified

enum Registry::OrderingHint::Type Registry::OrderingHint::Unspecified

The documentation for this struct was generated from the following file:
Registry::OrderingHint::End
@ End
Definition: Registry.h:30
Registry::OrderingHint::After
@ After
Definition: Registry.h:29
Registry::OrderingHint::Begin
@ Begin
Definition: Registry.h:30
Registry::OrderingHint::Before
@ Before
Definition: Registry.h:29
Registry::OrderingHint::Unspecified
enum Registry::OrderingHint::Type Unspecified
Registry::OrderingHint::name
Identifier name
Definition: Registry.h:36