GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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

◆ MEM_STREAM()

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

Definition at line 79 of file mem_stream.h.

◆ ~MEM_STREAM()

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

Definition at line 130 of file mem_stream.h.

Member Function Documentation

◆ name()

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().

◆ read_item()

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, AMI_ERROR_NO_ERROR, and assert.

◆ seek()

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, and assert.

◆ sprint()

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

Definition at line 176 of file mem_stream.h.

References MEM_STREAM< T >::stream_len().

◆ stream_len()

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

Definition at line 92 of file mem_stream.h.

Referenced by MEM_STREAM< T >::sprint().

◆ write_item()

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, AMI_ERROR_NO_ERROR, and assert.


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