Audacity 3.2.0
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 30 of file Registry.h.

Member Enumeration Documentation

◆ Type

The default Unspecified hint is just like End, except that in case the item is delegated to (by an IndirectItem, ComputedItem, or anonymous group), the delegating item's hint will be used instead

Enumerator
Before 
After 
Begin 
End 
Unspecified 

Definition at line 37 of file Registry.h.

37 : int {
39 Begin, End,
40 Unspecified // keep this last
41 } type{ Unspecified };
enum Registry::OrderingHint::Type Unspecified

Constructor & Destructor Documentation

◆ OrderingHint() [1/2]

Registry::OrderingHint::OrderingHint ( )
inline

Definition at line 47 of file Registry.h.

47{}

◆ OrderingHint() [2/2]

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

Definition at line 48 of file Registry.h.

48 {} )
49 : type(type_), name(name_) {}

Member Function Documentation

◆ operator<()

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

Definition at line 54 of file Registry.h.

55 {
56 // This sorts unspecified placements later
57 return std::make_pair( type, name ) <
58 std::make_pair( other.type, other.name );
59 }

References name.

◆ operator==()

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

Definition at line 51 of file Registry.h.

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

References name.

Member Data Documentation

◆ name

Identifier Registry::OrderingHint::name

Definition at line 45 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: