Add override
keyword where applicable (#188)
This commit is contained in:
parent
c1174e057d
commit
0197bf18c1
@ -10,9 +10,9 @@ class CParentheses final : public IParenthesisCommand
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CParentheses(_In_ int command);
|
CParentheses(_In_ int command);
|
||||||
int GetCommand() const;
|
int GetCommand() const override;
|
||||||
CalculationManager::CommandType GetCommandType() const;
|
CalculationManager::CommandType GetCommandType() const override;
|
||||||
void Accept(_In_ ISerializeCommandVisitor &commandVisitor);
|
void Accept(_In_ ISerializeCommandVisitor &commandVisitor) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_command;
|
int m_command;
|
||||||
@ -23,11 +23,11 @@ class CUnaryCommand final : public IUnaryCommand
|
|||||||
public:
|
public:
|
||||||
CUnaryCommand(int command);
|
CUnaryCommand(int command);
|
||||||
CUnaryCommand(int command1, int command2);
|
CUnaryCommand(int command1, int command2);
|
||||||
const std::shared_ptr<CalculatorVector<int>> & GetCommands() const;
|
const std::shared_ptr<CalculatorVector<int>> & GetCommands() const override;
|
||||||
CalculationManager::CommandType GetCommandType() const;
|
CalculationManager::CommandType GetCommandType() const override;
|
||||||
void SetCommand(int command);
|
void SetCommand(int command) override;
|
||||||
void SetCommands(int command1, int command2);
|
void SetCommands(int command1, int command2) override;
|
||||||
void Accept(_In_ ISerializeCommandVisitor &commandVisitor);
|
void Accept(_In_ ISerializeCommandVisitor &commandVisitor) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<CalculatorVector<int>> m_command;
|
std::shared_ptr<CalculatorVector<int>> m_command;
|
||||||
@ -37,10 +37,10 @@ class CBinaryCommand final : public IBinaryCommand
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CBinaryCommand(int command);
|
CBinaryCommand(int command);
|
||||||
void SetCommand(int command);
|
void SetCommand(int command) override;
|
||||||
int GetCommand() const;
|
int GetCommand() const override;
|
||||||
CalculationManager::CommandType GetCommandType() const;
|
CalculationManager::CommandType GetCommandType() const override;
|
||||||
void Accept(_In_ ISerializeCommandVisitor &commandVisitor);
|
void Accept(_In_ ISerializeCommandVisitor &commandVisitor) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_command;
|
int m_command;
|
||||||
@ -56,17 +56,17 @@ public:
|
|||||||
bool fSciFmt);
|
bool fSciFmt);
|
||||||
void Initialize(CalcEngine::Rational const& rat);
|
void Initialize(CalcEngine::Rational const& rat);
|
||||||
|
|
||||||
const std::shared_ptr<CalculatorVector<int>> & GetCommands() const;
|
const std::shared_ptr<CalculatorVector<int>> & GetCommands() const override;
|
||||||
void SetCommands(std::shared_ptr<CalculatorVector<int>> const& commands);
|
void SetCommands(std::shared_ptr<CalculatorVector<int>> const& commands) override;
|
||||||
void AppendCommand(int command);
|
void AppendCommand(int command) override;
|
||||||
void ToggleSign();
|
void ToggleSign() override;
|
||||||
void RemoveFromEnd();
|
void RemoveFromEnd() override;
|
||||||
bool IsNegative() const;
|
bool IsNegative() const override;
|
||||||
bool IsSciFmt() const;
|
bool IsSciFmt() const override;
|
||||||
bool IsDecimalPresent() const;
|
bool IsDecimalPresent() const override;
|
||||||
const std::wstring & GetToken(wchar_t decimalSymbol);
|
const std::wstring & GetToken(wchar_t decimalSymbol) override;
|
||||||
CalculationManager::CommandType GetCommandType() const;
|
CalculationManager::CommandType GetCommandType() const override;
|
||||||
void Accept(_In_ ISerializeCommandVisitor &commandVisitor);
|
void Accept(_In_ ISerializeCommandVisitor &commandVisitor) override;
|
||||||
std::wstring GetString(uint32_t radix, int32_t precision, wchar_t decimalSymbol);
|
std::wstring GetString(uint32_t radix, int32_t precision, wchar_t decimalSymbol);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -30,7 +30,7 @@ public:
|
|||||||
class IBinaryCommand : public IOperatorCommand
|
class IBinaryCommand : public IOperatorCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void SetCommand(int command) = 0;
|
virtual void SetCommand(int command) override = 0;
|
||||||
virtual int GetCommand() const = 0;
|
virtual int GetCommand() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user