util::scoped_FILE Class Reference

#include <file.hh>

List of all members.

Public Member Functions

 scoped_FILE (std::FILE *file=NULL)
 ~scoped_FILE ()
std::FILE * get ()
const std::FILE * get () const
void reset (std::FILE *to=NULL)
std::FILE * release ()

Detailed Description

Definition at line 44 of file file.hh.

Constructor & Destructor Documentation

util::scoped_FILE::scoped_FILE ( std::FILE *  file = NULL  )  [inline, explicit]

Definition at line 46 of file file.hh.

util::scoped_FILE::~scoped_FILE (  ) 

Definition at line 39 of file file.cc.

Member Function Documentation

const std::FILE* util::scoped_FILE::get (  )  const [inline]

Definition at line 51 of file file.hh.

std::FILE* util::scoped_FILE::get (  )  [inline]

Definition at line 50 of file file.hh.

Referenced by lm::ngram::trie::BuildTrie(), lm::ngram::trie::SortedFiles::Context(), and lm::ngram::trie::SortedFiles::Full().

Here is the caller graph for this function:

std::FILE* util::scoped_FILE::release (  )  [inline]

Definition at line 58 of file file.hh.

References NULL.

void util::scoped_FILE::reset ( std::FILE *  to = NULL  )  [inline]

Definition at line 53 of file file.hh.

Referenced by lm::ngram::trie::BuildTrie().

Here is the caller graph for this function:

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

Generated on Thu Jun 4 00:33:21 2015 for Moses by  doxygen 1.5.9