mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-27 08:11:55 +00:00
Adding filters
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -38,4 +38,9 @@ namespace ComSquare::Memory
|
||||
{
|
||||
return this->_initial->getName();
|
||||
}
|
||||
|
||||
Component MemoryShadow::getComponent()
|
||||
{
|
||||
return this->_initial->getComponent();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -47,4 +47,9 @@ namespace ComSquare::Memory
|
||||
{
|
||||
return this->_initial->getName();
|
||||
}
|
||||
|
||||
Component RectangleShadow::getComponent()
|
||||
{
|
||||
return this->_initial->getComponent();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user