facebook360_dep
Facebook360 Depth Estimation Pipeline
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
fb360_dep::AsyncFile Struct Reference

#include <AsyncFile.h>

Classes

struct  ActivityLog
 

Public Types

using HANDLE = int
 
using Segment = iovec
 
using PendingRead = std::future< ssize_t >
 

Public Member Functions

 AsyncFile (const std::string &filename)
 
void close () const
 
ssize_t readSegments (const std::vector< Segment > &segments, uint64_t offset) const
 
void readBegin (PendingRead &pending, const std::vector< Segment > &segments, uint64_t offset) const
 

Static Public Member Functions

static uint64_t readEnd (PendingRead &pending)
 
static AsyncFile::ActivityLogactivityLog ()
 

Public Attributes

HANDLE handle
 

Member Typedef Documentation

◆ HANDLE

◆ PendingRead

◆ Segment

Constructor & Destructor Documentation

◆ AsyncFile()

fb360_dep::AsyncFile::AsyncFile ( const std::string &  filename)
inline

Member Function Documentation

◆ activityLog()

static AsyncFile::ActivityLog& fb360_dep::AsyncFile::activityLog ( )
inlinestatic

◆ close()

void fb360_dep::AsyncFile::close ( ) const
inline

◆ readBegin()

void fb360_dep::AsyncFile::readBegin ( PendingRead pending,
const std::vector< Segment > &  segments,
uint64_t  offset 
) const
inline

◆ readEnd()

static uint64_t fb360_dep::AsyncFile::readEnd ( PendingRead pending)
inlinestatic

◆ readSegments()

ssize_t fb360_dep::AsyncFile::readSegments ( const std::vector< Segment > &  segments,
uint64_t  offset 
) const
inline

Member Data Documentation

◆ handle

HANDLE fb360_dep::AsyncFile::handle

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