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

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

Detailed Description

template<class T, class Key>
class em_buffer< T, Key >

Definition at line 211 of file embuffer.h.

Constructor & Destructor Documentation

template<class T , class Key >
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 MEMORY_LOG(), and NULL.

template<class T , class Key >
em_buffer< T, Key >::em_buffer ( const em_buffer< T, Key > &  buf)
template<class T , class Key >
em_buffer< T, Key >::~em_buffer ( )

Definition at line 544 of file embuffer.h.

References name, and NULL.

Member Function Documentation

template<class T , class Key >
void em_buffer< T, Key >::cleanup ( )

Definition at line 786 of file embuffer.h.

References MY_LOG_DEBUG_ID, name, and NULL.

template<class T, class Key>
unsigned int em_buffer< T, Key >::get_arity ( ) const
inline

Definition at line 291 of file embuffer.h.

template<class T, class Key>
long* em_buffer< T, Key >::get_bos ( ) const
inline

Definition at line 276 of file embuffer.h.

Referenced by em_pqueue< T, Key >::merge_buffer().

template<class T, class Key>
unsigned long em_buffer< T, Key >::get_buf_len ( )
inline
template<class T, class Key>
unsigned long em_buffer< T, Key >::get_buf_maxlen ( )
inline

Definition at line 333 of file embuffer.h.

References em_buffer< T, Key >::get_stream_maxlen().

Referenced by em_pqueue< T, Key >::maxlen().

template<class T, class Key>
unsigned short em_buffer< T, Key >::get_level ( ) const
inline

Definition at line 260 of file embuffer.h.

Referenced by em_pqueue< T, Key >::merge_buffer().

template<class T, class Key>
unsigned int em_buffer< T, Key >::get_nbstreams ( ) const
inline

Definition at line 288 of file embuffer.h.

Referenced by em_pqueue< T, Key >::merge_buffer().

template<class T , class Key >
AMI_STREAM< T > * em_buffer< T, Key >::get_stream ( unsigned int  i)

Definition at line 604 of file embuffer.h.

References fclose(), MY_LOG_DEBUG_ID, name, and NULL.

template<class T, class Key>
unsigned long em_buffer< T, Key >::get_stream_len ( unsigned int  i)
inline

Definition at line 317 of file embuffer.h.

Referenced by em_buffer< T, Key >::get_buf_len().

template<class T, class Key>
unsigned long em_buffer< T, Key >::get_stream_maxlen ( ) const
inline

Definition at line 311 of file embuffer.h.

Referenced by em_buffer< T, Key >::get_buf_maxlen().

template<class T , class Key >
AMI_STREAM< T > ** em_buffer< T, Key >::get_streams ( )

Definition at line 705 of file embuffer.h.

References MY_LOG_DEBUG_ID.

Referenced by em_buffer< T, Key >::em_buffer(), and em_pqueue< T, Key >::merge_buffer().

template<class T, class Key>
void em_buffer< T, Key >::incr_deleted ( unsigned int  i)
inline

Definition at line 303 of file embuffer.h.

template<class T, class Key>
void em_buffer< T, Key >::incr_nextstream ( )
inline

Definition at line 285 of file embuffer.h.

template<class T , class Key >
long em_buffer< T, Key >::insert ( T *  a,
long  n 
)
template<class T , class Key >
long em_buffer< T, Key >::insert ( AMI_STREAM< T > *  str,
long  bos = 0 
)
template<class T, class Key>
bool em_buffer< T, Key >::is_empty ( )
inline
template<class T, class Key>
bool em_buffer< T, Key >::is_full ( ) const
inline

Definition at line 343 of file embuffer.h.

References em_buffer< T, Key >::nextstream().

template<class T, class Key>
unsigned int em_buffer< T, Key >::laststream ( ) const
inline

Definition at line 279 of file embuffer.h.

template<class T, class Key>
unsigned int em_buffer< T, Key >::nextstream ( ) const
inline

Definition at line 282 of file embuffer.h.

Referenced by em_buffer< T, Key >::is_empty(), and em_buffer< T, Key >::is_full().

template<class T , class Key >
void em_buffer< T, Key >::print ( )

Definition at line 1285 of file embuffer.h.

References AMI_ERROR_NO_ERROR, and x.

template<class T , class Key >
void em_buffer< T, Key >::print_range ( )

Definition at line 1250 of file embuffer.h.

References AMI_ERROR_NO_ERROR, max, and min.

template<class T , class Key >
void em_buffer< T, Key >::print_stream_sizes ( )

Definition at line 1315 of file embuffer.h.

template<class T , class Key >
void em_buffer< T, Key >::put_stream ( unsigned int  i)

Definition at line 665 of file embuffer.h.

References MY_LOG_DEBUG_ID, name, NULL, and PERSIST_PERSISTENT.

template<class T , class Key >
void em_buffer< T, Key >::put_streams ( )

Definition at line 732 of file embuffer.h.

References MY_LOG_DEBUG_ID, and NULL.

Referenced by em_buffer< T, Key >::em_buffer(), and em_pqueue< T, Key >::merge_buffer().

template<class T , class Key >
void em_buffer< T, Key >::reset ( )

Definition at line 903 of file embuffer.h.

References name, NULL, and PERSIST_DELETE.

template<class T , class Key >
AMI_STREAM< T > * em_buffer< T, Key >::sort ( )

Definition at line 937 of file embuffer.h.

References AMI_ERROR_NO_ERROR, and MEMORY_LOG().

template<class T, class Key>
long em_buffer< T, Key >::total_deleted ( ) const
inline

Definition at line 294 of file embuffer.h.

Friends And Related Function Documentation

template<class T, class Key>
ostream& operator<< ( ostream &  s,
em_buffer< T, Key > &  b 
)
friend

Definition at line 395 of file embuffer.h.


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