util::stream::Offsets Class Reference

#include <sort.hh>

Collaboration diagram for util::stream::Offsets:

Collaboration graph
[legend]

List of all members.

Classes

struct  Entry

Public Member Functions

 Offsets (int fd)
int File () const
void Append (uint64_t length)
void FinishedAppending ()
uint64_t RemainingBlocks () const
uint64_t TotalOffset () const
uint64_t PeekSize () const
uint64_t NextSize ()
void Reset ()


Detailed Description

Definition at line 47 of file sort.hh.


Constructor & Destructor Documentation

util::stream::Offsets::Offsets ( int  fd  )  [inline, explicit]

Definition at line 49 of file sort.hh.

References Reset().

Here is the call graph for this function:


Member Function Documentation

void util::stream::Offsets::Append ( uint64_t  length  )  [inline]

Definition at line 55 of file sort.hh.

References util::WriteOrThrow().

Referenced by util::stream::BlockSorter< Compare >::Run(), and util::stream::MergingReader< Compare, Combine >::Run().

Here is the call graph for this function:

Here is the caller graph for this function:

int util::stream::Offsets::File (  )  const [inline]

Definition at line 53 of file sort.hh.

Referenced by util::stream::OwningMergingReader< Compare, Combine >::Run().

Here is the caller graph for this function:

void util::stream::Offsets::FinishedAppending (  )  [inline]

Definition at line 67 of file sort.hh.

References util::ReadOrThrow(), util::SeekOrThrow(), and util::WriteOrThrow().

Referenced by util::stream::BlockSorter< Compare >::Run().

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t util::stream::Offsets::NextSize (  )  [inline]

Definition at line 86 of file sort.hh.

References util::ReadOrThrow().

Referenced by util::stream::MergingReader< Compare, Combine >::Run().

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t util::stream::Offsets::PeekSize (  )  const [inline]

Definition at line 82 of file sort.hh.

Referenced by util::stream::MergingReader< Compare, Combine >::Run().

Here is the caller graph for this function:

uint64_t util::stream::Offsets::RemainingBlocks (  )  const [inline]

Definition at line 78 of file sort.hh.

Referenced by util::stream::Sort< Compare, Combine >::Merge(), and util::stream::MergingReader< Compare, Combine >::Run().

Here is the caller graph for this function:

void util::stream::Offsets::Reset (  )  [inline]

Definition at line 101 of file sort.hh.

References util::ResizeOrThrow(), and util::SeekOrThrow().

Referenced by Offsets().

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t util::stream::Offsets::TotalOffset (  )  const [inline]

Definition at line 80 of file sort.hh.

Referenced by util::stream::MergingReader< Compare, Combine >::Run().

Here is the caller graph for this function:


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

Generated on Thu Jul 6 00:34:55 2017 for Moses by  doxygen 1.5.9