mpi4py.MPI.File

Package mpi4py :: Module MPI :: Class File |
[hide private]
[frames] | no frames]

# type File

File

Instance Methods | [hide private]
Call_errhandler(self, int errorcode) Call the error handler installed on a file |
Close(self) Close a file |
Delete(type cls, filename, Info info=INFO_NULL) Delete a file |
Get_amode(self) Return the file access mode |
Get_atomicity(self) Return the atomicity mode |
Get_byte_offset(self, Offset offset) Returns the absolute byte position in the file corresponding to 'offset' etypes relative to the current view |
Get_errhandler(self) Get the error handler for a file |
Get_group(self) Return the group of processes that opened the file |
Get_info(self) Return the hints for a file that that are currently in use |
Get_position(self) Return the current position of the individual file pointer in etype units relative to the current view |
Get_position_shared(self) Return the current position of the shared file pointer in etype units relative to the current view |
Get_size(self) Return the file size |
Get_type_extent(self, Datatype datatype) Return the extent of datatype in the file |
Get_view(self) Return the file view |
Iread(self, buf) Nonblocking read using individual file pointer |
Iread_all(self, buf) Nonblocking collective read using individual file pointer |
Iread_at(self, Offset offset, buf) Nonblocking read using explicit offset |
Iread_at_all(self, Offset offset, buf) Nonblocking collective read using explicit offset |
Iread_shared(self, buf) Nonblocking read using shared file pointer |
Iwrite(self, buf) Nonblocking write using individual file pointer |
Iwrite_all(self, buf) Nonblocking collective write using individual file pointer |
Iwrite_at(self, Offset offset, buf) Nonblocking write using explicit offset |
Iwrite_at_all(self, Offset offset, buf) Nonblocking collective write using explicit offset |
Iwrite_shared(self, buf) Nonblocking write using shared file pointer |
Open(type cls, Intracomm comm, filename, int amode=MODE_RDONLY, Info info=INFO_NULL) Open a file |
Preallocate(self, Offset size) Preallocate storage space for a file |
Read(self, buf, Status status=None) Read using individual file pointer |
Read_all(self, buf, Status status=None) Collective read using individual file pointer |
Read_all_begin(self, buf) Start a split collective read using individual file pointer |
Read_all_end(self, buf, Status status=None) Complete a split collective read using individual file pointer |
Read_at(self, Offset offset, buf, Status status=None) Read using explicit offset |
Read_at_all(self, Offset offset, buf, Status status=None) Collective read using explicit offset |
Read_at_all_begin(self, Offset offset, buf) Start a split collective read using explict offset |
Read_at_all_end(self, buf, Status status=None) Complete a split collective read using explict offset |
Read_ordered(self, buf, Status status=None) Collective read using shared file pointer |
Read_ordered_begin(self, buf) Start a split collective read using shared file pointer |
Read_ordered_end(self, buf, Status status=None) Complete a split collective read using shared file pointer |
Read_shared(self, buf, Status status=None) Read using shared file pointer |
Seek(self, Offset offset, int whence=SEEK_SET) Update the individual file pointer |
Seek_shared(self, Offset offset, int whence=SEEK_SET) Update the shared file pointer |
Set_atomicity(self, bool flag) Set the atomicity mode |
Set_errhandler(self, Errhandler errhandler) Set the error handler for a file |
Set_info(self, Info info) Set new values for the hints associated with a file |
Set_size(self, Offset size) Sets the file size |
Set_view(self, Offset disp=0, Datatype etype=None, Datatype filetype=None, datarep=None, Info info=INFO_NULL) Set the file view |
Sync(self) Causes all previous writes to be transferred to the storage device |
Write(self, buf, Status status=None) Write using individual file pointer |
Write_all(self, buf, Status status=None) Collective write using individual file pointer |
Write_all_begin(self, buf) Start a split collective write using individual file pointer |
Write_all_end(self, buf, Status status=None) Complete a split collective write using individual file pointer |
Write_at(self, Offset offset, buf, Status status=None) Write using explicit offset |
Write_at_all(self, Offset offset, buf, Status status=None) Collective write using explicit offset |
Write_at_all_begin(self, Offset offset, buf) Start a split collective write using explict offset |
Write_at_all_end(self, buf, Status status=None) Complete a split collective write using explict offset |
Write_ordered(self, buf, Status status=None) Collective write using shared file pointer |
Write_ordered_begin(self, buf) Start a split collective write using shared file pointer |
Write_ordered_end(self, buf, Status status=None) Complete a split collective write using shared file pointer |
Write_shared(self, buf, Status status=None) Write using shared file pointer |
__eq__(y) x==y |
__ge__(y) x>=y |
__gt__(y) x>y |
__le__(y) x<=y |
__lt__(y) x<y |
__ne__(y) x!=y |
a new object with type S, a subtype of T |
__new__(S, ...) |
__nonzero__() x != 0 |
f2py(type cls, arg) |
py2f(self) |

Properties | [hide private]
| amode file access mode
| atomicity atomicity
| group file group
| info file info
| size file size

Method Details | [hide private]

### __new__(S, ...) |
Returns: a new object with type S, a subtype of T Overrides: object.__new__