31ProjDataFromStream::StorageOrder
38ProjDataFromStream::find_segment_index_in_sequence(
const int segment_num)
const
40 std::vector<int>::const_iterator iter = std::find(segment_sequence.begin(), segment_sequence.end(), segment_num);
42 assert(iter != segment_sequence.end());
43 return static_cast<int>(iter - segment_sequence.begin());
55 return on_disk_data_type;
61 return on_disk_byte_order;
67 return segment_sequence;
73 return timing_poss_sequence;
84 (scale_factor ==proj.scale_factor)&&
This class provides member functions to find out what byte-order your machine is and to swap numbers.
Definition ByteOrder.h:100
virtual shared_ptr< const ProjDataInfo > get_proj_data_info_sptr() const
Get shared pointer to ProjData info.
Definition DataWithProjDataInfo.cxx:37
provides names for some numeric types and methods for finding their properties.
Definition NumericType.h:55
A class which reads/writes projection data from/to a (binary) stream.
Definition ProjDataFromStream.h:57
NumericType get_data_type_in_stream() const
Get the data_type in the stream.
Definition ProjDataFromStream.inl:53
std::vector< int > get_segment_sequence_in_stream() const
Get the segment sequence.
Definition ProjDataFromStream.inl:65
ByteOrder get_byte_order_in_stream() const
Get the byte order.
Definition ProjDataFromStream.inl:59
std::vector< int > get_timing_poss_sequence_in_stream() const
Get the timing bins sequence.
Definition ProjDataFromStream.inl:71
StorageOrder get_storage_order() const
Obtain the storage order.
Definition ProjDataFromStream.inl:32
std::streamoff get_offset_in_stream() const
Get the offset -Changed into streamoff from int.
Definition ProjDataFromStream.inl:47