PPL Logo

Ck::IO::Manager Class Reference

Class to mediate IO operations between Charm++ application code and underlying filesystems. More...

#include <ckio.h>

Inheritance diagram for Ck::IO::Manager:

Inheritance graph
[legend]
Collaboration diagram for Ck::IO::Manager:

Collaboration graph
[legend]

Public Member Functions

 Manager ()
void prepareOutput (const char *name, size_t bytes, CkCallback ready, CkCallback complete, Options opts=Options())
 Application-facing methods, invoked locally on the calling PE.
void write (Token token, const char *data, size_t bytes, size_t offset)
void prepareInput (const char *name, CkCallback ready, Options opts=Options())
void read (Token token, void *data, size_t bytes, size_t offset, CkCallback complete)
void write_forwardData (Token token, const char *data, size_t bytes, size_t offset)
 Internal methods, used for interaction among IO managers across the system.
void write_dataWritten (Token token, size_t bytes)

Data Fields

 Manager_SDAG_CODE

Private Member Functions

int lastActivePE (const Options &opts)

Private Attributes

int filesOpened
Token nextToken
std::map< Token, FileInfofiles
CkCallback nextReady

Detailed Description

Class to mediate IO operations between Charm++ application code and underlying filesystems.

Tokens are passed to

Definition at line 105 of file ckio.h.


Constructor & Destructor Documentation

Ck::IO::Manager::Manager (  ) 

Definition at line 7 of file ckio.C.


Member Function Documentation

void Ck::IO::Manager::prepareOutput ( const char *  name,
size_t  bytes,
CkCallback  ready,
CkCallback  complete,
Options  opts = Options() 
)

Application-facing methods, invoked locally on the calling PE.

Definition at line 12 of file ckio.C.

void Ck::IO::Manager::write ( Token  token,
const char *  data,
size_t  bytes,
size_t  offset 
)

void Ck::IO::Manager::prepareInput ( const char *  name,
CkCallback  ready,
Options  opts = Options() 
)

Definition at line 90 of file ckio.C.

void Ck::IO::Manager::read ( Token  token,
void *  data,
size_t  bytes,
size_t  offset,
CkCallback  complete 
)

Definition at line 94 of file ckio.C.

void Ck::IO::Manager::write_forwardData ( Token  token,
const char *  data,
size_t  bytes,
size_t  offset 
)

Internal methods, used for interaction among IO managers across the system.

Definition at line 31 of file ckio.C.

References Ck::IO::buffer::array, Ck::IO::buffer::bytes_filled_so_far, Converse::CkMyPe(), errno, Ck::IO::buffer::expect(), files, Ck::IO::buffer::insertData(), Ck::IO::buffer::isFull(), and min().

void Ck::IO::Manager::write_dataWritten ( Token  token,
size_t  bytes 
)

Definition at line 81 of file ckio.C.

References Converse::CkMyPe(), and files.

int Ck::IO::Manager::lastActivePE ( const Options opts  )  [inline, private]


Field Documentation

Definition at line 109 of file ckio.h.

Definition at line 128 of file ckio.h.

Definition at line 129 of file ckio.h.

std::map<Token, FileInfo> Ck::IO::Manager::files [private]

Definition at line 130 of file ckio.h.

Referenced by write(), write_dataWritten(), and write_forwardData().

Definition at line 131 of file ckio.h.


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

Generated on Fri May 25 08:06:02 2012 for Charm++ by  doxygen 1.5.5