STIR 6.4.0
Collaboration diagram for Implementation details for functions that implement IO for Array objects:

Files

file  read_data_1d.h
 Declaration of stir::read_data_1d() functions for reading 1D stir::Array objects from file.
 
file  read_data_1d.inl
 Implementation of stir::read_data_1d() functions.
 
file  write_data_1d.h
 Declaration of stir::write_data_1d() functions for writing 1D stir::Array objects to file.
 
file  write_data_1d.inl
 Implementation of stir::write_data_1d() functions.
 

Functions

template<int num_dimensions, class elemT>
Succeeded stir::detail::read_data_1d (std::istream &s, ArrayType< num_dimensions, elemT > &data, const ByteOrder byte_order)
 This is an internal function called by read_data(). It does the actual reading to std::istream.
 
template<int num_dimensions, class elemT>
Succeeded stir::detail::write_data_1d (std::ostream &s, const Array< num_dimensions, elemT > &data, const ByteOrder byte_order, const bool can_corrupt_data)
 This is an internal function called by write_data(). It does the actual writing to std::ostream.
 
template<int num_dimensions, class elemT>
Succeeded stir::detail::write_data_1d (FILE *&fptr_ref, const ArrayType< num_dimensions, elemT > &data, const ByteOrder byte_order, const bool can_corrupt_data)
 This is an internal function called by write_data(). It does the actual writing to FILE* using stdio functions.
 

Detailed Description

Function Documentation

◆ read_data_1d()

template<int num_dimensions, class elemT>
Succeeded stir::detail::read_data_1d ( std::istream & s,
ArrayType< num_dimensions, elemT > & data,
const ByteOrder byte_order )
inline

◆ write_data_1d() [1/2]

template<int num_dimensions, class elemT>
Succeeded stir::detail::write_data_1d ( std::ostream & s,
const Array< num_dimensions, elemT > & data,
const ByteOrder byte_order,
const bool can_corrupt_data )
inline

◆ write_data_1d() [2/2]

template<int num_dimensions, class elemT>
Succeeded stir::detail::write_data_1d ( FILE *& fptr_ref,
const ArrayType< num_dimensions, elemT > & data,
const ByteOrder byte_order,
const bool can_corrupt_data )
inline

This is an internal function called by write_data(). It does the actual writing to FILE* using stdio functions.

This function does not throw any exceptions.

References write_data_1d().