Memory Class Reference

#include <memory.h>

Inheritance diagram for Memory:
Collaboration diagram for Memory:

List of all members.

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 ()
CompBindingsgetActorBindings () const
CompBindingsgetChannelBindings () const

Private Attributes

CompBindingsmemActor
CompBindingsmemChannel

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().

Here is the call graph for this function:

CompBindings* Memory::getActorBindings (  )  const [inline]
CompBindings* Memory::getChannelBindings (  )  const [inline]
CSize Memory::getSize ( void   )  const
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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

bool Memory::releaseMemory (  ) 

releaseMemory () The function releases the memory.

References memChannel, and CompBindings::unbind().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

bool Memory::reserveMemory ( SDFactor a,
CSize  sz 
)

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().

Here is the call graph for this function:

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


The documentation for this class was generated from the following files: