Go to the documentation of this file.
94 string msg =
"Address space doesn't belong to the target machine";
110 MemoryMap::const_iterator iter =
memories_.begin();
113 if (space.
name() == aSpaceName) {
134 for (std::size_t i = 0; i < other.
memoryCount(); ++i) {
185 MemoryMap::const_iterator iter =
memories_.begin();
189 if (space.
name() == addressSpaceName) {
194 string msg =
"No memory model found for address space " + addressSpaceName;
212 MemoryMap::const_iterator iter =
memories_.find(&as);
214 string msg =
"No memory found for address space " + as.
name();
217 return ((*iter).second);
240 "Index out of bounds. Count of memories is " +
245 unsigned int foundCount = 0;
246 MemoryMap::const_iterator iter =
memories_.begin();
247 while (iter !=
memories_.end() && foundCount < i) {
251 return ((*iter).second);
264 "Index out of bounds. Count of memories is " +
269 unsigned int foundCount = 0;
270 MemoryMap::const_iterator iter =
memories_.begin();
271 while (iter !=
memories_.end() && foundCount < i) {
275 return *((*iter).first);
287 MemoryMap::const_iterator iter =
memories_.begin();
289 if ((*iter).first->name() == name)
290 return *((*iter).first);
296 "Address space with the given name not found.");
MemoryContainer sharedMemories_
All memories shared between multiple cores.
void addAddressSpace(const TTAMachine::AddressSpace &as, MemoryPtr mem, bool shared=true)
virtual TCEString name() const
TTAMachine::Machine * machine
the architecture definition of the estimated processor
const TTAMachine::Machine * machine_
Machine in which MemorySystem belongs to.
MemorySystem(const TTAMachine::Machine &machine)
const MemoryPtr memoryConst(const TTAMachine::AddressSpace &as) const
static std::string toString(const T &source)
boost::shared_ptr< Memory > MemoryPtr
virtual bool isShared() const
unsigned int memoryCount() const
void deleteSharedMemories()
MemoryContainer localMemories_
All private/local memories used by a single core only.
void shareMemoriesWith(MemorySystem &other)
bool hasItem(const std::string &name) const
virtual AddressSpaceNavigator addressSpaceNavigator() const
bool hasMemory(const TCEString &aSpaceName) const
MemoryContainer replacedSharedMemories_
Shared memories which have been replaced with a shared memory from another core. Just for garbage rem...
MemoryContainer memoryList_
List of all the memories for faster traversal.
MemoryPtr memory(const TTAMachine::AddressSpace &as)
ComponentType * item(int index) const
MemoryMap memories_
Contains all memories indexed by AddressSpaces.
const TTAMachine::AddressSpace & addressSpace(unsigned int i)