mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
DSP/LabelMap: Amend class formatting
Places the most important stuff, the public interface first.
This commit is contained in:
parent
e73a3ba1c6
commit
0a1249ea40
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user