Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SH::ShHostHostTransfer Class Reference

Inheritance diagram for SH::ShHostHostTransfer:

Inheritance graph
[legend]
Collaboration diagram for SH::ShHostHostTransfer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool transfer (const ShStorage *from, ShStorage *to)
 Returns true if the transfer succeeded.
int cost (const ShStorage *from, const ShStorage *to)
 Returns -1 if transfer impossible, otherwise the cost of transfer.

Detailed Description

Definition at line 325 of file ShMemory.cpp.


Member Function Documentation

int SH::ShHostHostTransfer::cost const ShStorage from,
const ShStorage to
[inline, virtual]
 

Returns -1 if transfer impossible, otherwise the cost of transfer.

Todo:
Perhaps this needs more information, e.g.
size of the storages.

Implements SH::ShTransfer.

Definition at line 354 of file ShMemory.cpp.


The documentation for this class was generated from the following file:
Generated on Thu Jul 28 17:36:06 2005 for Sh by  doxygen 1.4.3-20050530