Memory Class Reference
#include <memory.h>
Public Member Functions | |
Memory (ArchComponent &c) | |
virtual | ~Memory () |
CSize | getSize () const |
void | setSize (const CSize sz) |
CSize | availableMemorySize () const |
CSize | occupiedMemorySizeByActors () const |
bool | reserveMemory (SDFactor *a, CSize sz) |
bool | releaseMemory (SDFactor *a) |
bool | reserveMemory (SDFchannel *c, CSize sz) |
bool | releaseMemory (SDFchannel *c) |
bool | reserveMemory (CSize sz) |
bool | releaseMemory () |
CompBindings * | getActorBindings () const |
CompBindings * | getChannelBindings () const |
Private Attributes | |
CompBindings * | memActor |
CompBindings * | memChannel |
Detailed Description
Memory Container for tile memory.
Constructor & Destructor Documentation
Memory::Memory | ( | ArchComponent & | c | ) | [inline] |
References memActor, and memChannel.
virtual Memory::~Memory | ( | ) | [inline, virtual] |
References memActor, and memChannel.
Member Function Documentation
CSize Memory::availableMemorySize | ( | ) | const |
availableMemorySize () The function returns the amount of memory which is free.
References CompBindings::getCurVal(), CompBindings::getMaxVal(), memActor, and memChannel.
Referenced by SDFconvertToHTML::convertPlatformUsage(), createTileUsageNode(), outputSystemUsage(), reserveMemory(), and LoadBalanceBinding::sortTilesOnLoad().
CompBindings* Memory::getActorBindings | ( | ) | const [inline] |
References memActor.
Referenced by SDFconvertToHTML::convertPlatformMapping(), and createMappingNode().
CompBindings* Memory::getChannelBindings | ( | ) | const [inline] |
Referenced by SDFconvertToHTML::convertPlatformMapping(), and createMappingNode().
CSize Memory::getSize | ( | void | ) | const |
getSize () Get the size of the memory.
References CompBindings::getMaxVal(), and memActor.
Referenced by SDFconvertToHTML::convertPlatformGraph(), SDFconvertToHTML::convertPlatformUsage(), createTileNode(), createTileUsageNode(), outputSystemUsage(), and LoadBalanceBinding::sortTilesOnLoad().
CSize Memory::occupiedMemorySizeByActors | ( | ) | const |
occupiedMemorySizeByActors () The function returns the amount of memory used by the bound actors.
References CompBindings::getCurVal(), and memActor.
Referenced by reserveMemory(), and LoadBalanceBinding::sortTilesOnLoad().
bool Memory::releaseMemory | ( | SDFchannel * | c | ) |
releaseMemory () The function releases the memory reserved by SDF channl c and removes its binding to the memory.
References memChannel, and CompBindings::unbind().
bool Memory::releaseMemory | ( | SDFactor * | a | ) |
releaseMemory () The function releases the memory reserved by SDF actor a and removes its binding to the memory.
References memActor, and CompBindings::unbind().
Referenced by LoadBalanceBinding::releaseConnectionResources(), LoadBalanceBinding::releaseResources(), and LoadBalanceBinding::updateStorageSpaceAllocation().
bool Memory::releaseMemory | ( | ) |
releaseMemory () The function releases the memory.
References memChannel, and CompBindings::unbind().
bool Memory::reserveMemory | ( | SDFchannel * | c, | |
CSize | sz | |||
) |
reserveMemory () The function tries to reserve memory space with size sz for the SDF channl c. On success, it returns true and it creates a binding between the channel and the memory. Else, it returns false and no binding is created.
References availableMemorySize(), CompBindings::bind(), memChannel, and ComponentBinding::setValue().
bool Memory::reserveMemory | ( | CSize | sz | ) |
reserveMemory () The function tries to reserve memory space with size sz. On success, it returns true. Else, it returns false and no binding is created.
References availableMemorySize(), CompBindings::bind(), memChannel, and ComponentBinding::setValue().
reserveMemory () The function tries to reserve memory space with size sz for the SDF actor a. On success, it returns true and it creates a binding between the actor and the memory. Else, it returns false and no binding is created.
References availableMemorySize(), CompBindings::bind(), memActor, occupiedMemorySizeByActors(), and ComponentBinding::setValue().
Referenced by LoadBalanceBinding::allocateConnectionResources(), LoadBalanceBinding::allocateResources(), setMappingMemory(), setUsagePlatformGraph(), and LoadBalanceBinding::updateStorageSpaceAllocation().
void Memory::setSize | ( | const CSize | sz | ) |
setSize () Set the size of the memory. The function removes all existing component bindings to the memory.
References memActor, memChannel, CompBindings::TypeMax, and CompBindings::TypeSum.
Referenced by constructPlatformGraph().
Member Data Documentation
CompBindings* Memory::memActor [private] |
Referenced by availableMemorySize(), getActorBindings(), getSize(), Memory(), occupiedMemorySizeByActors(), releaseMemory(), reserveMemory(), setSize(), and ~Memory().
CompBindings* Memory::memChannel [private] |
Referenced by availableMemorySize(), Memory(), releaseMemory(), reserveMemory(), setSize(), and ~Memory().
The documentation for this class was generated from the following files: