Adding filters

This commit is contained in:
Anonymus Raccoon
2020-03-24 21:06:54 +01:00
parent 256fea8955
commit 40f843da75
22 changed files with 160 additions and 28 deletions
+3
View File
@@ -10,6 +10,7 @@
#include <vector>
#include <memory>
#include "../Models/Int24.hpp"
#include "../Models/Components.hpp"
namespace ComSquare::Memory
{
@@ -48,6 +49,8 @@ namespace ComSquare::Memory
virtual bool isMirror();
//! @brief Get the name of this accessor (used for debug purpose)
virtual std::string getName() = 0;
//! @brief Get the component of this accessor (used for debug purpose)
virtual Component getComponent() = 0;
//! @brief Get the name of the data at the address
//! @param addr The address (in local space)
virtual std::string getValueName(uint24_t addr);
+5
View File
@@ -38,4 +38,9 @@ namespace ComSquare::Memory
{
return this->_initial->getName();
}
Component MemoryShadow::getComponent()
{
return this->_initial->getComponent();
}
}
+2
View File
@@ -36,6 +36,8 @@ namespace ComSquare::Memory
bool isMirror() override;
//! @brief Get the name of this accessor (used for debug purpose)
std::string getName() override;
//! @brief Get the component of this accessor (used for debug purpose)
Component getComponent() override;
//! @brief Return the memory accessor this accessor mirror if any
//! @return nullptr if isMirror is false, the source otherwise.
std::shared_ptr<AMemory> getMirrored() override;
+5
View File
@@ -47,4 +47,9 @@ namespace ComSquare::Memory
{
return this->_initial->getName();
}
Component RectangleShadow::getComponent()
{
return this->_initial->getComponent();
}
}
+2
View File
@@ -39,6 +39,8 @@ namespace ComSquare::Memory
bool isMirror() override;
//! @brief Get the name of this accessor (used for debug purpose)
std::string getName() override;
//! @brief Get the component of this accessor (used for debug purpose)
Component getComponent() override;
//! @brief Return the memory accessor this accessor mirror if any
//! @return nullptr if isMirror is false, the source otherwise.
std::shared_ptr<AMemory> getMirrored() override;