GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71759
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
im_buffer< T > Class Template Reference

#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
 
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)
 

Detailed Description

template<class T>
class im_buffer< T >

Definition at line 80 of file imbuffer.h.

Constructor & Destructor Documentation

template<class T>
im_buffer< T >::im_buffer ( long  n)
inline

Definition at line 98 of file imbuffer.h.

References MEMORY_LOG().

template<class T >
im_buffer< T >::im_buffer ( const im_buffer< T > &  b)

Definition at line 209 of file imbuffer.h.

References MEMORY_LOG().

template<class T>
im_buffer< T >::~im_buffer ( )
inline

Definition at line 113 of file imbuffer.h.

Member Function Documentation

template<class T>
void im_buffer< T >::clear ( )
inline

Definition at line 169 of file imbuffer.h.

template<class T>
T* im_buffer< T >::get_array ( ) const
inline

Definition at line 146 of file imbuffer.h.

template<class T>
unsigned long im_buffer< T >::get_buf_len ( ) const
inline

Definition at line 131 of file imbuffer.h.

template<class T>
unsigned long im_buffer< T >::get_buf_maxlen ( ) const
inline

Definition at line 128 of file imbuffer.h.

template<class T>
T im_buffer< T >::get_item ( unsigned long  i) const
inline

Definition at line 140 of file imbuffer.h.

template<class T >
bool im_buffer< T >::insert ( T &  x)

Definition at line 226 of file imbuffer.h.

References x.

template<class T >
unsigned long im_buffer< T >::insert ( T *  x,
unsigned long  n 
)

Definition at line 248 of file imbuffer.h.

template<class T>
bool im_buffer< T >::is_empty ( ) const
inline

Definition at line 137 of file imbuffer.h.

template<class T>
bool im_buffer< T >::is_full ( ) const
inline

Definition at line 134 of file imbuffer.h.

template<class T >
void im_buffer< T >::print ( ) const

Definition at line 403 of file imbuffer.h.

template<class T >
void im_buffer< T >::print_range ( ) const

Definition at line 362 of file imbuffer.h.

References max, and min.

template<class T>
void im_buffer< T >::reset ( )
inline

Definition at line 159 of file imbuffer.h.

References NULL.

template<class T >
void im_buffer< T >::reset ( unsigned long  start,
unsigned long  n 
)

Definition at line 328 of file imbuffer.h.

template<class T >
AMI_STREAM< T > * im_buffer< T >::save2str ( ) const

Definition at line 417 of file imbuffer.h.

References AMI_ERROR_NO_ERROR, and AMI_STREAM< T >::write_item().

template<class T>
void im_buffer< T >::set_item ( unsigned long  i,
T &  item 
)
inline

Definition at line 152 of file imbuffer.h.

template<class T >
void im_buffer< T >::shift_left ( unsigned long  n)

Definition at line 349 of file imbuffer.h.

template<class T >
void im_buffer< T >::sort ( )

Definition at line 265 of file imbuffer.h.

Friends And Related Function Documentation

template<class T>
ostream& operator<< ( ostream &  s,
const im_buffer< T > &  b 
)
friend

Definition at line 181 of file imbuffer.h.


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