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 (Type type=Unspecified, const wxString &name={})
 
bool operator== (const OrderingHint &other) const
 
bool operator< (const OrderingHint &other) const
 

Public Attributes

enum Registry::OrderingHint::Type type
 
Identifier name
 

Detailed Description

Definition at line 39 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 46 of file Registry.h.

46 : int {
48 Begin, End,
49 Unspecified // keep this last
50 } type;
enum Registry::OrderingHint::Type type

Constructor & Destructor Documentation

◆ OrderingHint()

Registry::OrderingHint::OrderingHint ( Type  type = Unspecified,
const wxString &  name = {} 
)
inline

Definition at line 56 of file Registry.h.

56 {})
57 : type{ type }, name{ name } {}

Member Function Documentation

◆ operator<()

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

Definition at line 62 of file Registry.h.

63 {
64 // This sorts unspecified placements later
65 return std::make_pair( type, name ) <
66 std::make_pair( other.type, other.name );
67 }

References name, and type.

◆ operator==()

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

Definition at line 59 of file Registry.h.

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

References name, and type.

Member Data Documentation

◆ name

Identifier Registry::OrderingHint::name

Definition at line 54 of file Registry.h.

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

◆ type

enum Registry::OrderingHint::Type Registry::OrderingHint::type

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