sapt::Bitext< TKN >::agenda::job Class Reference

#include <ug_bitext.h>

Collaboration diagram for sapt::Bitext< TKN >::agenda::job:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool nextSample (uint64_t &sid, uint64_t &offset)
int check_sample_distribution (uint64_t const &sid, uint64_t const &offset)
bool done () const
 job (Bitext< Token > const *const theBitext, typename TSA< Token >::tree_iterator const &m, SPTR< TSA< Token > > const &r, size_t maxsmpl, bool isfwd, SPTR< SamplingBias const > const &bias, bool const track_sids)
 ~job ()

Public Attributes

size_t workers
SPTR< TSA< Token > const > root
char const * next
char const * stop
size_t max_samples
size_t ctr
size_t len
bool fwd
SPTR< pstatsstats
SPTR< SamplingBias const > const m_bias
float bias_total
bool m_track_sids

Friends

class agenda


Detailed Description

template<typename TKN>
class sapt::Bitext< TKN >::agenda::job

Definition at line 394 of file ug_bitext.h.


Constructor & Destructor Documentation

template<typename Token >
Bitext::agenda< Token >::job::job ( Bitext< Token > const *const   theBitext,
typename TSA< Token >::tree_iterator const &  m,
SPTR< TSA< Token > > const &  r,
size_t  maxsmpl,
bool  isfwd,
SPTR< SamplingBias const > const &  bias,
bool const   track_sids 
) [inline]

Definition at line 455 of file ug_bitext.h.

References tpt::binread().

Here is the call graph for this function:

template<typename Token >
Bitext::agenda< Token >::job::~job (  )  [inline]

Definition at line 444 of file ug_bitext.h.

References tpt::binread().

Here is the call graph for this function:


Member Function Documentation

template<typename Token >
int Bitext::agenda< Token >::job::check_sample_distribution ( uint64_t const &  sid,
uint64_t const &  offset 
) [inline]

Definition at line 516 of file ug_bitext.h.

template<typename Token >
bool Bitext::agenda< Token >::job::done (  )  const [inline]

Definition at line 509 of file ug_bitext.h.

References sapt::Bitext< TKN >::m_sid2docid, NULL, and UTIL_THROW_IF2.

template<typename Token >
bool Bitext::agenda< Token >::job::nextSample ( uint64_t &  sid,
uint64_t &  offset 
) [inline]

Definition at line 609 of file ug_bitext.h.


Friends And Related Function Documentation

template<typename TKN>
friend class agenda [friend]

Definition at line 403 of file ug_bitext.h.


Member Data Documentation

template<typename TKN>
float sapt::Bitext< TKN >::agenda::job::bias_total

Definition at line 424 of file ug_bitext.h.

template<typename TKN>
size_t sapt::Bitext< TKN >::agenda::job::ctr

Definition at line 417 of file ug_bitext.h.

template<typename TKN>
bool sapt::Bitext< TKN >::agenda::job::fwd

Definition at line 421 of file ug_bitext.h.

template<typename TKN>
size_t sapt::Bitext< TKN >::agenda::job::len

Definition at line 420 of file ug_bitext.h.

template<typename TKN>
SPTR<SamplingBias const> const sapt::Bitext< TKN >::agenda::job::m_bias

Definition at line 423 of file ug_bitext.h.

template<typename TKN>
bool sapt::Bitext< TKN >::agenda::job::m_track_sids

Definition at line 425 of file ug_bitext.h.

template<typename TKN>
size_t sapt::Bitext< TKN >::agenda::job::max_samples

Definition at line 416 of file ug_bitext.h.

template<typename TKN>
char const* sapt::Bitext< TKN >::agenda::job::next

Definition at line 414 of file ug_bitext.h.

template<typename TKN>
SPTR<TSA<Token> const> sapt::Bitext< TKN >::agenda::job::root

Definition at line 413 of file ug_bitext.h.

template<typename TKN>
SPTR<pstats> sapt::Bitext< TKN >::agenda::job::stats

Definition at line 422 of file ug_bitext.h.

template<typename TKN>
char const* sapt::Bitext< TKN >::agenda::job::stop

Definition at line 415 of file ug_bitext.h.

template<typename TKN>
size_t sapt::Bitext< TKN >::agenda::job::workers

Definition at line 412 of file ug_bitext.h.


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

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