GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-66aae0a5a0
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 46 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 77 of file mem_stream.h.

◆ ~MEM_STREAM()

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

Definition at line 124 of file mem_stream.h.

Member Function Documentation

◆ name()

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

Definition at line 98 of file mem_stream.h.

References AMI_ERROR_NO_ERROR, and strcpy.

◆ read_item()

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

Definition at line 130 of file mem_stream.h.

References assert.

◆ seek()

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

Definition at line 112 of file mem_stream.h.

References assert.

◆ sprint()

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

Definition at line 167 of file mem_stream.h.

◆ stream_len()

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

Definition at line 89 of file mem_stream.h.

◆ write_item()

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

Definition at line 146 of file mem_stream.h.

References assert.


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