25#ifndef __stir_stream_H__
26#define __stir_stream_H__
51template <
typename elemT>
52inline std::ostream& operator<<(std::ostream& str,
const VectorWithOffset<elemT>& v);
63template <
int num_dimensions,
typename coordT>
64inline std::ostream& operator<<(std::ostream& str,
const BasicCoordinate<num_dimensions, coordT>& v);
77template <
typename elemT>
78inline std::ostream& operator<<(std::ostream& str,
const std::vector<elemT>& v);
90operator<<(std::ostream& out,
const Bin& bin)
111 return out <<
"[tangential=" << det_pos.tangential_coord() <<
", axial=" << det_pos.axial_coord()
112 <<
", radial=" << det_pos.radial_coord() <<
"]";
128 return out <<
"[pos1=" << det_pos.pos1() <<
", pos2=" << det_pos.pos2() <<
", timing_pos=" << det_pos.timing_pos() <<
"]";
147template <
typename elemT>
148inline std::istream& operator>>(std::istream& str, std::vector<elemT>& v);
174template <
typename elemT>
175inline std::istream& operator>>(std::istream& str, VectorWithOffset<elemT>& v);
193template <
int num_dimensions,
typename coordT>
194inline std::istream& operator>>(std::istream& str, BasicCoordinate<num_dimensions, coordT>& v);
This file declares class stir::BasicCoordinate and some functions acting on stir::BasicCoordinate obj...
Declaration of class stir::Bin.
Declaration of class stir::DetectionPositionPair.
Declaration of class stir::DetectionPosition.
defines the stir::VectorWithOffset class
A class for storing coordinates and value of a single projection bin.
Definition Bin.h:49
int time_frame_num() const
get time-frame number (1-based)
Definition Bin.inl:82
float get_bin_value() const
get the value after forward projection
Definition Bin.inl:123
int tangential_pos_num() const
get tangential position number
Definition Bin.inl:76
int axial_pos_num() const
get axial position number
Definition Bin.inl:70
A class for storing 2 coordinates-sets of a detection, together with a timing-position index (for TOF...
Definition DetectionPositionPair.h:41
A class for storing coordinates of a detection.
Definition DetectionPosition.h:61
int segment_num() const
get segment number for const objects
Definition SegmentIndices.inl:32
int timing_pos_num() const
get TOF index for const objects
Definition SegmentIndices.inl:44
int view_num() const
get view number for const objects
Definition ViewgramIndices.inl:36
Input/output of basic vector-like types to/from streams.