Skip to content
Permalink
Browse files

DSP/LabelMap: Amend class formatting

Places the most important stuff, the public interface first.
  • Loading branch information...
lioncash committed Jun 7, 2019
1 parent e73a3ba commit 0a1249ea40e4d8d3c1665c415a1516ca10c1f812
Showing with 10 additions and 9 deletions.
  1. +10 −9 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<label_t> 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

0 comments on commit 0a1249e

Please sign in to comment.
You can’t perform that action at this time.