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

Class File


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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  amode
File.amode: int file access mode
  atomicity
File.atomicity: bool atomicity
  group
File.group: Group file group
  info
File.info: Info file info
  size
File.size: int file size

Inherited from object: __class__

Method Details [hide private]

__new__(S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__