GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
#include <embuffer.h>
Public Member Functions | |
em_buffer (const unsigned short i, const unsigned long bs, const unsigned int ar) | |
em_buffer (const em_buffer &buf) | |
~em_buffer () | |
unsigned short | get_level () const |
AMI_STREAM< T > * | get_stream (unsigned int i) |
AMI_STREAM< T > ** | get_streams () |
void | put_stream (unsigned int i) |
void | put_streams () |
long * | get_bos () const |
unsigned int | laststream () const |
unsigned int | nextstream () const |
void | incr_nextstream () |
unsigned int | get_nbstreams () const |
unsigned int | get_arity () const |
long | total_deleted () const |
void | incr_deleted (unsigned int i) |
unsigned long | get_stream_maxlen () const |
unsigned long | get_stream_len (unsigned int i) |
unsigned long | get_buf_len () |
unsigned long | get_buf_maxlen () |
bool | is_empty () |
bool | is_full () const |
void | reset () |
void | cleanup () |
AMI_STREAM< T > * | sort () |
long | insert (T *a, long n) |
long | insert (AMI_STREAM< T > *str, long bos=0) |
void | print_range () |
void | print () |
void | print_stream_sizes () |
Friends | |
ostream & | operator<< (ostream &s, em_buffer &b) |
Definition at line 211 of file embuffer.h.
em_buffer< T, Key >::em_buffer | ( | const unsigned short | i, |
const unsigned long | bs, | ||
const unsigned int | ar | ||
) |
Definition at line 448 of file embuffer.h.
References assert, MEMORY_LOG(), and NULL.
Definition at line 510 of file embuffer.h.
References assert, em_buffer< T, Key >::get_streams(), MEMORY_LOG(), NULL, and em_buffer< T, Key >::put_streams().
Definition at line 544 of file embuffer.h.
References assert, em_buffer< T, Key >::get_streams(), and NULL.
void em_buffer< T, Key >::cleanup | ( | ) |
Definition at line 786 of file embuffer.h.
References assert, em_buffer< T, Key >::get_stream_len(), em_buffer< T, Key >::get_streams(), MY_LOG_DEBUG_ID, NULL, em_buffer< T, Key >::print_stream_sizes(), and em_buffer< T, Key >::put_streams().
|
inline |
Definition at line 291 of file embuffer.h.
|
inline |
Definition at line 276 of file embuffer.h.
Referenced by em_pqueue< T, Key >::merge_buffer().
|
inline |
Definition at line 324 of file embuffer.h.
Referenced by em_pqueue< T, Key >::merge_buffer().
|
inline |
Definition at line 333 of file embuffer.h.
|
inline |
Definition at line 260 of file embuffer.h.
Referenced by em_pqueue< T, Key >::merge_buffer().
|
inline |
Definition at line 288 of file embuffer.h.
Referenced by em_pqueue< T, Key >::active_streams(), and em_pqueue< T, Key >::merge_buffer().
AMI_STREAM< T > * em_buffer< T, Key >::get_stream | ( | unsigned int | i | ) |
Definition at line 604 of file embuffer.h.
References assert, MY_LOG_DEBUG_ID, and NULL.
Referenced by em_buffer< T, Key >::get_streams().
|
inline |
Definition at line 317 of file embuffer.h.
Referenced by em_buffer< T, Key >::cleanup(), em_buffer< T, Key >::print(), em_buffer< T, Key >::print_range(), and em_buffer< T, Key >::print_stream_sizes().
|
inline |
Definition at line 311 of file embuffer.h.
AMI_STREAM< T > ** em_buffer< T, Key >::get_streams | ( | ) |
Definition at line 705 of file embuffer.h.
References assert, em_buffer< T, Key >::get_stream(), and MY_LOG_DEBUG_ID.
Referenced by em_buffer< T, Key >::cleanup(), em_buffer< T, Key >::em_buffer(), em_pqueue< T, Key >::merge_buffer(), em_buffer< T, Key >::print(), em_buffer< T, Key >::print_range(), em_buffer< T, Key >::reset(), em_buffer< T, Key >::sort(), and em_buffer< T, Key >::~em_buffer().
|
inline |
Definition at line 303 of file embuffer.h.
References assert.
|
inline |
Definition at line 285 of file embuffer.h.
long em_buffer< T, Key >::insert | ( | T * | a, |
long | n | ||
) |
Definition at line 1089 of file embuffer.h.
long em_buffer< T, Key >::insert | ( | AMI_STREAM< T > * | str, |
long | bos = 0 |
||
) |
Definition at line 1139 of file embuffer.h.
References AMI_ERROR_NO_ERROR, assert, em_buffer< T, Key >::is_full(), em_buffer< T, Key >::nextstream(), NULL, AMI_STREAM< T >::read_item(), AMI_STREAM< T >::seek(), and AMI_STREAM< T >::stream_len().
|
inline |
Definition at line 338 of file embuffer.h.
|
inline |
Definition at line 343 of file embuffer.h.
Referenced by em_buffer< T, Key >::insert().
|
inline |
Definition at line 279 of file embuffer.h.
|
inline |
Definition at line 282 of file embuffer.h.
Referenced by em_buffer< T, Key >::insert().
void em_buffer< T, Key >::print | ( | ) |
Definition at line 1285 of file embuffer.h.
References AMI_ERROR_NO_ERROR, assert, em_buffer< T, Key >::get_stream_len(), em_buffer< T, Key >::get_streams(), em_buffer< T, Key >::put_streams(), and x.
void em_buffer< T, Key >::print_range | ( | ) |
Definition at line 1250 of file embuffer.h.
References AMI_ERROR_NO_ERROR, assert, em_buffer< T, Key >::get_stream_len(), em_buffer< T, Key >::get_streams(), max, min, and em_buffer< T, Key >::put_streams().
void em_buffer< T, Key >::print_stream_sizes | ( | ) |
Definition at line 1315 of file embuffer.h.
References em_buffer< T, Key >::get_stream_len().
Referenced by em_buffer< T, Key >::cleanup().
void em_buffer< T, Key >::put_stream | ( | unsigned int | i | ) |
Definition at line 665 of file embuffer.h.
References assert, MY_LOG_DEBUG_ID, NULL, and PERSIST_PERSISTENT.
Referenced by em_buffer< T, Key >::put_streams().
void em_buffer< T, Key >::put_streams | ( | ) |
Definition at line 732 of file embuffer.h.
References assert, MY_LOG_DEBUG_ID, NULL, and em_buffer< T, Key >::put_stream().
Referenced by em_buffer< T, Key >::cleanup(), em_buffer< T, Key >::em_buffer(), em_pqueue< T, Key >::merge_buffer(), em_buffer< T, Key >::print(), em_buffer< T, Key >::print_range(), and em_buffer< T, Key >::sort().
void em_buffer< T, Key >::reset | ( | ) |
Definition at line 903 of file embuffer.h.
References assert, em_buffer< T, Key >::get_streams(), NULL, and PERSIST_DELETE.
AMI_STREAM< T > * em_buffer< T, Key >::sort | ( | ) |
Definition at line 937 of file embuffer.h.
References AMI_ERROR_END_OF_STREAM, AMI_ERROR_NO_ERROR, assert, pqheap_t1< T >::delete_min(), pqheap_t1< T >::delete_min_and_insert(), pqheap_t1< T >::empty(), em_buffer< T, Key >::get_streams(), MEMORY_LOG(), pqheap_t1< T >::min(), NULL, em_buffer< T, Key >::put_streams(), AMI_STREAM< T >::seek(), merge_key< KEY >::set(), merge_key< KEY >::stream_id(), and AMI_STREAM< T >::write_item().
|
inline |
Definition at line 294 of file embuffer.h.
|
friend |
Definition at line 395 of file embuffer.h.