NVIDIA Index example code nvidia_logo_transpbg.gif Up
nv::index_common::io::File::File_impl Class Reference
Inheritance diagram for nv::index_common::io::File::File_impl:
nv::index_common::io::File_gzip_impl

Public Member Functions

 File_impl ()
 
virtual ~File_impl ()
 
virtual bool open (const std::string &file_path, std::ios_base::openmode open_mode, mi::Uint32 file_flags)
 
virtual bool is_open () const
 
virtual void close ()
 
mi::Uint64 read_plain (void *output_buffer, mi::Uint64 start_position, mi::Uint64 num_bytes_to_read)
 
mi::Uint64 read_odirect (void *output_buffer, mi::Uint64 start_position, mi::Uint64 num_bytes_to_read)
 
virtual mi::Uint64 read (void *output_buffer, mi::Uint64 start_position, mi::Uint64 num_bytes_to_read)
 
virtual mi::Uint64 read (void *output_buffer, mi::Uint64 num_bytes_to_read)
 
virtual mi::Uint64 write (const void *input_buffer, mi::Uint64 start_position, mi::Uint64 num_bytes_to_write)
 
virtual mi::Uint64 write (const void *input_buffer, mi::Uint64 num_bytes_to_write)
 
virtual bool flush_buffers () const
 
virtual mi::Uint64 size () const
 
virtual const std::string & file_path () const
 
virtual mi::Uint64 actual_file_size () const
 

Protected Attributes

mi::Sint32 m_file_handle
 
mi::Uint64 m_position
 
std::string m_file_path
 
mi::Uint64 m_file_size
 
mi::Uint32 m_file_flags
 
std::ios_base::openmode m_open_mode
 

Detailed Description

Definition at line 365 of file large_file_io.cpp.

Constructor & Destructor Documentation

 File_impl()

nv::index_common::io::File::File_impl::File_impl ( )
inline

Definition at line 368 of file large_file_io.cpp.

 ~File_impl()

virtual nv::index_common::io::File::File_impl::~File_impl ( )
inlinevirtual

Definition at line 377 of file large_file_io.cpp.

Member Function Documentation

 actual_file_size()

virtual mi::Uint64 nv::index_common::io::File::File_impl::actual_file_size ( ) const
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 676 of file large_file_io.cpp.

 close()

virtual void nv::index_common::io::File::File_impl::close ( )
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 491 of file large_file_io.cpp.

 file_path()

virtual const std::string & nv::index_common::io::File::File_impl::file_path ( ) const
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 671 of file large_file_io.cpp.

 flush_buffers()

virtual bool nv::index_common::io::File::File_impl::flush_buffers ( ) const
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 654 of file large_file_io.cpp.

 is_open()

virtual bool nv::index_common::io::File::File_impl::is_open ( ) const
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 486 of file large_file_io.cpp.

 open()

virtual bool nv::index_common::io::File::File_impl::open ( const std::string &  file_path,
std::ios_base::openmode  open_mode,
mi::Uint32  file_flags 
)
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 381 of file large_file_io.cpp.

 read() [1/2]

virtual mi::Uint64 nv::index_common::io::File::File_impl::read ( void *  output_buffer,
mi::Uint64  num_bytes_to_read 
)
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 597 of file large_file_io.cpp.

 read() [2/2]

virtual mi::Uint64 nv::index_common::io::File::File_impl::read ( void *  output_buffer,
mi::Uint64  start_position,
mi::Uint64  num_bytes_to_read 
)
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 579 of file large_file_io.cpp.

 read_odirect()

mi::Uint64 nv::index_common::io::File::File_impl::read_odirect ( void *  output_buffer,
mi::Uint64  start_position,
mi::Uint64  num_bytes_to_read 
)
inline

Definition at line 554 of file large_file_io.cpp.

 read_plain()

mi::Uint64 nv::index_common::io::File::File_impl::read_plain ( void *  output_buffer,
mi::Uint64  start_position,
mi::Uint64  num_bytes_to_read 
)
inline

Definition at line 516 of file large_file_io.cpp.

 size()

virtual mi::Uint64 nv::index_common::io::File::File_impl::size ( ) const
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 666 of file large_file_io.cpp.

 write() [1/2]

virtual mi::Uint64 nv::index_common::io::File::File_impl::write ( const void *  input_buffer,
mi::Uint64  num_bytes_to_write 
)
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 647 of file large_file_io.cpp.

 write() [2/2]

virtual mi::Uint64 nv::index_common::io::File::File_impl::write ( const void *  input_buffer,
mi::Uint64  start_position,
mi::Uint64  num_bytes_to_write 
)
inlinevirtual

Reimplemented in nv::index_common::io::File_gzip_impl.

Definition at line 604 of file large_file_io.cpp.

Member Data Documentation

 m_file_flags

mi::Uint32 nv::index_common::io::File::File_impl::m_file_flags
protected

Definition at line 708 of file large_file_io.cpp.

 m_file_handle

mi::Sint32 nv::index_common::io::File::File_impl::m_file_handle
protected

Definition at line 702 of file large_file_io.cpp.

 m_file_path

std::string nv::index_common::io::File::File_impl::m_file_path
protected

Definition at line 706 of file large_file_io.cpp.

 m_file_size

mi::Uint64 nv::index_common::io::File::File_impl::m_file_size
protected

Definition at line 707 of file large_file_io.cpp.

 m_open_mode

std::ios_base::openmode nv::index_common::io::File::File_impl::m_open_mode
protected

Definition at line 710 of file large_file_io.cpp.

 m_position

mi::Uint64 nv::index_common::io::File::File_impl::m_position
protected

Definition at line 704 of file large_file_io.cpp.


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