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

#include <mem_stream.h>

Public Member Functions

 MEM_STREAM (T *data, int len)
 
 ~MEM_STREAM (void)
 
AMI_err read_item (T **elt)
 
AMI_err write_item (const T &elt)
 
off_t stream_len (void)
 
AMI_err name (char **stream_name)
 
AMI_err seek (off_t offset)
 
char * sprint ()
 

Detailed Description

template<class T>
class MEM_STREAM< T >

Definition at line 47 of file mem_stream.h.

Constructor & Destructor Documentation

template<class T >
MEM_STREAM< T >::MEM_STREAM ( T *  data,
int  len 
)

Definition at line 79 of file mem_stream.h.

template<class T >
MEM_STREAM< T >::~MEM_STREAM ( void  )

Definition at line 130 of file mem_stream.h.

Member Function Documentation

template<class T >
AMI_err MEM_STREAM< T >::name ( char **  stream_name)

Definition at line 103 of file mem_stream.h.

References AMI_ERROR_NO_ERROR.

Referenced by ReplacementHeapBlock< T, Compare >::addRun().

template<class T >
AMI_err MEM_STREAM< T >::read_item ( T **  elt)

Definition at line 137 of file mem_stream.h.

References AMI_ERROR_END_OF_STREAM, and AMI_ERROR_NO_ERROR.

template<class T >
AMI_err MEM_STREAM< T >::seek ( off_t  offset)

Definition at line 117 of file mem_stream.h.

References AMI_ERROR_NO_ERROR.

template<class T >
char * MEM_STREAM< T >::sprint ( )

Definition at line 176 of file mem_stream.h.

template<class T >
off_t MEM_STREAM< T >::stream_len ( void  )

Definition at line 92 of file mem_stream.h.

template<class T >
AMI_err MEM_STREAM< T >::write_item ( const T &  elt)

Definition at line 155 of file mem_stream.h.

References AMI_ERROR_END_OF_STREAM, and AMI_ERROR_NO_ERROR.


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