#include <ShMemory.hpp>
Public Member Functions | |
| virtual bool | transfer (const ShStorage *from, ShStorage *to)=0 |
| Returns true if the transfer succeeded. | |
| virtual int | cost ()=0 |
| Returns -1 if transfer impossible, otherwise the cost of transfer. | |
Protected Member Functions | |
| ShTransfer (const std::string &from, const std::string &to) | |
A transfer specifies the cost and manner of transferring data from one storage to another. Static instances of these should be created for any possible storage transfers. Use the ShStorage::addTransfer() function to add a transfer to the list.
Definition at line 106 of file ShMemory.hpp.
|
|
Returns -1 if transfer impossible, otherwise the cost of transfer.
|
1.3.7