|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
#include <mmap.hh>
Public Types | |
| enum | Alloc { MMAP_ALLOCATED, ARRAY_ALLOCATED, MALLOC_ALLOCATED, NONE_ALLOCATED } |
Public Member Functions | |
| scoped_memory () | |
| ~scoped_memory () | |
| void * | get () const |
| const char * | begin () const |
| const char * | end () const |
| std::size_t | size () const |
| Alloc | source () const |
| void | reset () |
| void | reset (void *data, std::size_t size, Alloc from) |
| void | call_realloc (std::size_t to) |
Private Member Functions | |
| scoped_memory (const scoped_memory &) | |
| scoped_memory & | operator= (const scoped_memory &) |
Private Attributes | |
| void * | data_ |
| std::size_t | size_ |
| Alloc | source_ |
| util::scoped_memory::scoped_memory | ( | const scoped_memory & | ) | [private] |
| const char* util::scoped_memory::begin | ( | ) | const |
| void util::scoped_memory::call_realloc | ( | std::size_t | to | ) |
| const char* util::scoped_memory::end | ( | ) | const |
| void* util::scoped_memory::get | ( | ) | const |
| scoped_memory& util::scoped_memory::operator= | ( | const scoped_memory & | ) | [private] |
| void util::scoped_memory::reset | ( | ) |
| void util::scoped_memory::reset | ( | void * | data, |
| std::size_t | size, | ||
| Alloc | from | ||
| ) |
| std::size_t util::scoped_memory::size | ( | ) | const |
| Alloc util::scoped_memory::source | ( | ) | const |
void* util::scoped_memory::data_ [private] |
std::size_t util::scoped_memory::size_ [private] |
Alloc util::scoped_memory::source_ [private] |