GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
#include <imbuffer.h>
Public Member Functions | |
im_buffer (long n) | |
im_buffer (const im_buffer &b) | |
~im_buffer () | |
bool | insert (T &x) |
unsigned long | insert (T *x, unsigned long n) |
void | sort () |
unsigned long | get_buf_maxlen () const |
unsigned long | get_buf_len () const |
bool | is_full () const |
bool | is_empty () const |
T | get_item (unsigned long i) const |
T * | get_array () const |
AMI_STREAM< T > * | save2str () const |
void | set_item (unsigned long i, T &item) |
void | reset () |
void | clear () |
void | reset (unsigned long start, unsigned long n) |
void | shift_left (unsigned long n) |
void | print_range () const |
void | print () const |
Friends | |
ostream & | operator<< (ostream &s, const im_buffer &b) |
Definition at line 80 of file imbuffer.h.
Definition at line 98 of file imbuffer.h.
References assert, b, and MEMORY_LOG().
Definition at line 209 of file imbuffer.h.
References assert, and MEMORY_LOG().
Definition at line 113 of file imbuffer.h.
References im_buffer< T >::insert(), im_buffer< T >::sort(), and x.
|
inline |
Definition at line 169 of file imbuffer.h.
References im_buffer< T >::reset(), and im_buffer< T >::shift_left().
|
inline |
Definition at line 146 of file imbuffer.h.
References im_buffer< T >::save2str().
|
inline |
Definition at line 131 of file imbuffer.h.
|
inline |
Definition at line 128 of file imbuffer.h.
|
inline |
bool im_buffer< T >::insert | ( | T & | x | ) |
Definition at line 226 of file imbuffer.h.
Referenced by im_buffer< T >::insert(), and im_buffer< T >::~im_buffer().
unsigned long im_buffer< T >::insert | ( | T * | x, |
unsigned long | n | ||
) |
Definition at line 248 of file imbuffer.h.
References assert, and im_buffer< T >::insert().
|
inline |
Definition at line 137 of file imbuffer.h.
Referenced by im_buffer< T >::sort().
|
inline |
Definition at line 134 of file imbuffer.h.
void im_buffer< T >::print | ( | ) | const |
Definition at line 403 of file imbuffer.h.
void im_buffer< T >::print_range | ( | ) | const |
Definition at line 362 of file imbuffer.h.
|
inline |
void im_buffer< T >::reset | ( | unsigned long | start, |
unsigned long | n | ||
) |
Definition at line 328 of file imbuffer.h.
References assert.
AMI_STREAM< T > * im_buffer< T >::save2str | ( | ) | const |
Definition at line 417 of file imbuffer.h.
References AMI_ERROR_NO_ERROR, assert, and AMI_STREAM< T >::write_item().
Referenced by im_buffer< T >::get_array().
|
inline |
void im_buffer< T >::shift_left | ( | unsigned long | n | ) |
Definition at line 349 of file imbuffer.h.
References assert.
Referenced by im_buffer< T >::clear().
void im_buffer< T >::sort | ( | ) |
Definition at line 265 of file imbuffer.h.
References assert, im_buffer< T >::get_item(), im_buffer< T >::is_empty(), l, r, and im_buffer< T >::set_item().
Referenced by im_buffer< T >::~im_buffer().
|
friend |
Definition at line 181 of file imbuffer.h.