From 0a1249ea40e4d8d3c1665c415a1516ca10c1f812 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 7 Jun 2019 17:05:23 -0400 Subject: [PATCH] DSP/LabelMap: Amend class formatting Places the most important stuff, the public interface first. --- Source/Core/Core/DSP/LabelMap.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Source/Core/Core/DSP/LabelMap.h b/Source/Core/Core/DSP/LabelMap.h index d3252a6feb..ac1cb42041 100644 --- a/Source/Core/Core/DSP/LabelMap.h +++ b/Source/Core/Core/DSP/LabelMap.h @@ -21,6 +21,16 @@ enum LabelType class LabelMap { +public: + LabelMap(); + ~LabelMap() {} + void RegisterDefaults(); + void RegisterLabel(const std::string& label, u16 lval, LabelType type = LABEL_VALUE); + void DeleteLabel(const std::string& label); + bool GetLabelValue(const std::string& label, u16* value, LabelType type = LABEL_ANY) const; + void Clear(); + +private: struct label_t { label_t(const std::string& lbl, s32 address, LabelType ltype) @@ -32,14 +42,5 @@ class LabelMap LabelType type; }; std::vector labels; - -public: - LabelMap(); - ~LabelMap() {} - void RegisterDefaults(); - void RegisterLabel(const std::string& label, u16 lval, LabelType type = LABEL_VALUE); - void DeleteLabel(const std::string& label); - bool GetLabelValue(const std::string& label, u16* value, LabelType type = LABEL_ANY) const; - void Clear(); }; } // namespace DSP