Defines | Functions
core/vil/io/vil_io_memory_chunk.cxx File Reference
#include "vil_io_memory_chunk.h"
#include <vsl/vsl_block_binary.h>
#include <vsl/vsl_complex_io.h>

Go to the source code of this file.

Defines

#define write_case_macro(T)
#define read_case_macro_v1(T)
#define read_case_macro_v2(T)
#define read_case_macro_v3(T)

Functions

void vsl_b_write (vsl_b_ostream &os, const vil_memory_chunk &chunk)
 Binary save vil_memory_chunk to stream.
void vsl_b_read (vsl_b_istream &is, vil_memory_chunk &chunk)
 Binary load vil_memory_chunk from stream.
void vsl_b_write (vsl_b_ostream &os, const vil_memory_chunk *chunk_ptr)
 Binary save vil_memory_chunk to stream by pointer.
void vsl_b_read (vsl_b_istream &is, vil_memory_chunk *&p)
 Binary load vil_memory_chunk from stream onto the heap.
void vsl_print_summary (vcl_ostream &os, const vil_memory_chunk &chunk)
 Print human readable summary of a vil_memory_chunk object to a stream.

Detailed Description

Author:
Tim Cootes
    Modifications
     Feb.2003 - Ian Scott - Upgraded IO to use vsl_block_binary io
     23 Oct.2003 - Peter Vanroose - Added support for 64-bit int pixels
   

Definition in file vil_io_memory_chunk.cxx.


Define Documentation

#define read_case_macro_v1 (   T)
Value:
chunk.set_size(n*sizeof(T ),pixel_format); \
  for (unsigned i=0; i<n; ++i)\
    vsl_b_read(is, static_cast<T *>(chunk.data())[i]);

Definition at line 82 of file vil_io_memory_chunk.cxx.

#define read_case_macro_v2 (   T)
Value:
chunk.set_size(n*sizeof(T ),pixel_format); \
vsl_block_binary_read_confirm_specialisation(is, false); \
  for (unsigned i=0; i<n; ++i)\
    vsl_b_read(is, static_cast<T *>(chunk.data())[i]);

Definition at line 87 of file vil_io_memory_chunk.cxx.

#define read_case_macro_v3 (   T)
Value:
chunk.set_size(n*sizeof(T ),pixel_format); \
vsl_block_binary_read(is,static_cast<T *>(chunk.data()),n)

Definition at line 93 of file vil_io_memory_chunk.cxx.

#define write_case_macro (   T)
Value:
vsl_b_write(os,unsigned(chunk.size()/sizeof(T ))); \
vsl_block_binary_write(os,(const T*) chunk.const_data(),chunk.size()/sizeof(T))

Definition at line 15 of file vil_io_memory_chunk.cxx.


Function Documentation

void vsl_b_read ( vsl_b_istream &  is,
vil_memory_chunk chunk 
)

Binary load vil_memory_chunk from stream.

Definition at line 99 of file vil_io_memory_chunk.cxx.

void vsl_b_read ( vsl_b_istream &  is,
vil_memory_chunk *&  p 
)

Binary load vil_memory_chunk from stream onto the heap.

Definition at line 287 of file vil_io_memory_chunk.cxx.

void vsl_b_write ( vsl_b_ostream &  os,
const vil_memory_chunk chunk 
)

Binary save vil_memory_chunk to stream.

Definition at line 21 of file vil_io_memory_chunk.cxx.

void vsl_b_write ( vsl_b_ostream &  os,
const vil_memory_chunk chunk_ptr 
)

Binary save vil_memory_chunk to stream by pointer.

Definition at line 278 of file vil_io_memory_chunk.cxx.

void vsl_print_summary ( vcl_ostream &  os,
const vil_memory_chunk chunk 
)

Print human readable summary of a vil_memory_chunk object to a stream.

Definition at line 302 of file vil_io_memory_chunk.cxx.