Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

BspPut Class Reference

#include <BspPut.hpp>

List of all members.

Public Member Functions

BspPutlogicAddr (const int &aLogicAddr)
BspPutoffset (const int &aOffset)
BspPutnBytes (const int &aNBytes)
BspPutsuperstep (const int &aSuperstep)
int logicAddr () const
int offset () const
int nBytes () const
int superstep () const
const unsigned char * memArea () const
void writeInMem (const void *src)
void dump (bool dumpMem) const

Private Attributes

int logicAddr_
int offset_
int nBytes_
int superstep_
vector< unsigned char > memArea_


Detailed Description

BspPut - Represents a pending bsp_put/bsp_get request.

When a BSP task issues a bsp_put/bsp_get request to another task, the request is sent immediately, byt only becomes effective at the end of the superstep. BspPut holds the bsp_put/bsp_get details until the end of the superstep.

Author:
Andrei Goldchleger
Date:
November, 2003


Member Function Documentation

void BspPut::dump bool  dumpMem  )  const [inline]
 

Dumps the object's contents to stderr. Used only for debugging.

Parameters:
dumpMem - if true, dumps the memory contents.

int BspPut::logicAddr  )  const [inline]
 

Returns the logic address of a BspPut object.

BspPut& BspPut::logicAddr const int &  aLogicAddr  )  [inline]
 

Sets the logic address of a recently created BspPut object (Named Parameter Idiom).

const unsigned char* BspPut::memArea  )  const [inline]
 

Returns a pointer to the memory contents of a BspPut object.

int BspPut::nBytes  )  const [inline]
 

Returns the number of bytes destination of a BspPut object.

BspPut& BspPut::nBytes const int &  aNBytes  )  [inline]
 

Sets the number of bytes of a recently created BspPut object (Named Parameter Idiom)..

int BspPut::offset  )  const [inline]
 

Returns the offset of a BspPut object.

BspPut& BspPut::offset const int &  aOffset  )  [inline]
 

Sets the offset of a recently created BspPut object (Named Parameter Idiom).

int BspPut::superstep  )  const [inline]
 

Returns the superstep of a BspPut object.

BspPut& BspPut::superstep const int &  aSuperstep  )  [inline]
 

Sets the superstep of a recently created BspPut object (Named Parameter Idiom).

void BspPut::writeInMem const void *  src  )  [inline]
 

Copies a memory area into the BspPut object that will be used to make a remote bsp_put. nBytes will be copied from src to memArea.

Parameters:
src - address of the memory source to be copied into memArea


Member Data Documentation

int BspPut::logicAddr_ [private]
 

The logic address of the DRMA operation. It is mapped to a physical memory address (

See also:
Registration.hpp)

vector<unsigned char> BspPut::memArea_ [private]
 

Contents to be written at dst

int BspPut::nBytes_ [private]
 

Number of bytes to be written

int BspPut::offset_ [private]
 

Offset from the destination address. Operation(read or write) will start physAddr + offset

int BspPut::superstep_ [private]
 

The superstep in which the corresponding bsp_put request was issued


The documentation for this class was generated from the following file:
Generated on Mon Sep 6 16:13:10 2004 by doxygen 1.3.3