|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
#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 189 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 409 of file embuffer.h.
References assert, MEMORY_LOG(), and NULL.
Definition at line 472 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 506 of file embuffer.h.
References assert, AMI_STREAM< T >::name(), and NULL.
Definition at line 733 of file embuffer.h.
References AMI_STREAM< T >::AMI_STREAM(), assert, MY_LOG_DEBUG_ID, AMI_STREAM< T >::name(), and NULL.
Definition at line 266 of file embuffer.h.
Definition at line 251 of file embuffer.h.
Definition at line 302 of file embuffer.h.
References em_buffer< T, Key >::get_stream_len().
Referenced by em_buffer< T, Key >::is_empty().
Definition at line 312 of file embuffer.h.
References em_buffer< T, Key >::get_stream_maxlen().
Definition at line 235 of file embuffer.h.
Definition at line 263 of file embuffer.h.
Definition at line 564 of file embuffer.h.
References AMI_STREAM< T >::AMI_STREAM(), assert, UntypedStream::fp, MY_LOG_DEBUG_ID, AMI_STREAM< T >::name(), NULL, AMI_STREAM< T >::sprint(), and AMI_STREAM< T >::stream_len().
|
inline |
Definition at line 294 of file embuffer.h.
Referenced by em_buffer< T, Key >::get_buf_len().
|
inline |
Definition at line 287 of file embuffer.h.
Referenced by em_buffer< T, Key >::get_buf_maxlen().
| AMI_STREAM< T > ** em_buffer< T, Key >::get_streams | ( | ) |
Definition at line 660 of file embuffer.h.
References assert, and MY_LOG_DEBUG_ID.
Referenced by em_buffer< T, Key >::em_buffer().
Definition at line 279 of file embuffer.h.
References assert.
Definition at line 260 of file embuffer.h.
| long em_buffer< T, Key >::insert | ( | AMI_STREAM< T > * | str, |
| long | bos = 0 |
||
| ) |
Definition at line 1081 of file embuffer.h.
References AMI_ERROR_NO_ERROR, AMI_STREAM< T >::AMI_STREAM(), assert, MY_LOG_DEBUG_ID, AMI_STREAM< T >::name(), AMI_STREAM< T >::name(), NULL, AMI_STREAM< T >::persist(), PERSIST_PERSISTENT, AMI_STREAM< T >::read_item(), AMI_STREAM< T >::seek(), and AMI_STREAM< T >::stream_len().
Definition at line 1033 of file embuffer.h.
References AMI_ERROR_NO_ERROR, AMI_STREAM< T >::AMI_STREAM(), assert, MEMORY_LOG(), AMI_STREAM< T >::stream_len(), and AMI_STREAM< T >::write_item().
Definition at line 315 of file embuffer.h.
References em_buffer< T, Key >::get_buf_len(), and em_buffer< T, Key >::nextstream().
Definition at line 318 of file embuffer.h.
References em_buffer< T, Key >::nextstream().
Definition at line 254 of file embuffer.h.
Definition at line 257 of file embuffer.h.
Referenced by em_buffer< T, Key >::is_empty(), and em_buffer< T, Key >::is_full().
Definition at line 1221 of file embuffer.h.
References AMI_ERROR_NO_ERROR, AMI_STREAM< T >::AMI_STREAM(), assert, AMI_STREAM< T >::read_item(), AMI_STREAM< T >::seek(), and x.
Definition at line 1188 of file embuffer.h.
References AMI_ERROR_NO_ERROR, AMI_STREAM< T >::AMI_STREAM(), assert, max, min, AMI_STREAM< T >::read_item(), and AMI_STREAM< T >::seek().
Definition at line 1250 of file embuffer.h.
Definition at line 623 of file embuffer.h.
References assert, MY_LOG_DEBUG_ID, AMI_STREAM< T >::name(), NULL, AMI_STREAM< T >::persist(), PERSIST_PERSISTENT, and AMI_STREAM< T >::sprint().
Definition at line 685 of file embuffer.h.
References assert, MY_LOG_DEBUG_ID, and NULL.
Referenced by em_buffer< T, Key >::em_buffer().
Definition at line 850 of file embuffer.h.
References assert, AMI_STREAM< T >::name(), NULL, AMI_STREAM< T >::persist(), PERSIST_DELETE, and AMI_STREAM< T >::stream_len().
| AMI_STREAM< T > * em_buffer< T, Key >::sort | ( | ) |
Definition at line 882 of file embuffer.h.
References AMI_ERROR_NO_ERROR, AMI_STREAM< T >::AMI_STREAM(), assert, and MEMORY_LOG().
Definition at line 269 of file embuffer.h.
Definition at line 364 of file embuffer.h.