STIR 6.4.0
stir::CListRecordSAFIR< DataType > Class Template Reference

Class for general SAFIR record, containing a union of data, time and raw record and providing access to certain elements. More...

#include "stir/listmode/CListRecordSAFIR.h"

Inheritance diagram for stir::CListRecordSAFIR< DataType >:

Public Member Functions

DataType get_data () const
 Returns event_data (without checking if the type is really event and not time).
 
bool is_time () const override
 
bool is_event () const override
 
CListEventevent () override
 
const CListEventevent () const override
 
virtual CListEventSAFIR< CListRecordSAFIR< DataType > > & event_SAFIR ()
 
virtual const CListEventSAFIR< CListRecordSAFIR< DataType > > & event_SAFIR () const
 
ListTimetime () override
 
const ListTimetime () const override
 
virtual bool operator== (const CListRecord &e2) const
 
unsigned long get_time_in_millisecs () const override
 
Succeeded set_time_in_millisecs (const unsigned long time_in_millisecs) override
 
bool is_prompt () const override
 Returns 0 if event is prompt and 1 if delayed.
 
Succeeded init_from_data_ptr (const char *const data_ptr, const std::size_t size_of_record, const bool do_byte_swap)
 
std::size_t size_of_record_at_ptr (const char *const, const std::size_t, const bool) const
 
- Public Member Functions inherited from stir::ListTime
double get_time_in_secs () const
 
Succeeded set_time_in_secs (const double time_in_secs)
 
- Public Member Functions inherited from stir::CListEventSAFIR< CListRecordSAFIR< DataType > >
 CListEventSAFIR ()
 
LORAs2Points< float > get_LOR () const override
 Returns LOR corresponding to the given event.
 
void get_bin (Bin &bin, const ProjDataInfo &proj_data_info) const override
 Override the default implementation.
 
bool is_valid_template (const ProjDataInfo &) const override
 This method checks if the template is valid for LmToProjData.
 
void set_map_sptr (shared_ptr< const DetectorCoordinateMap > new_map_sptr)
 Function to set map for detector indices to coordinates.
 
void set_scanner_sptr (shared_ptr< const Scanner > new_scanner_sptr)
 
- Public Member Functions inherited from stir::CListEvent
virtual Succeeded set_prompt (const bool prompt=true)
 Changes the event from prompt to delayed or vice versa.
 

Detailed Description

template<class DataType>
class stir::CListRecordSAFIR< DataType >

Class for general SAFIR record, containing a union of data, time and raw record and providing access to certain elements.

Member Function Documentation

◆ is_time()

template<class DataType>
bool stir::CListRecordSAFIR< DataType >::is_time ( ) const
inlineoverridevirtual

Implements stir::ListRecord.

◆ is_event()

template<class DataType>
bool stir::CListRecordSAFIR< DataType >::is_event ( ) const
inlineoverridevirtual

Implements stir::ListRecord.

◆ event() [1/2]

template<class DataType>
CListEvent & stir::CListRecordSAFIR< DataType >::event ( )
inlineoverridevirtual

Implements stir::ListRecord.

◆ event() [2/2]

template<class DataType>
const CListEvent & stir::CListRecordSAFIR< DataType >::event ( ) const
inlineoverridevirtual

Implements stir::ListRecord.

◆ time() [1/2]

template<class DataType>
ListTime & stir::CListRecordSAFIR< DataType >::time ( )
inlineoverridevirtual

Implements stir::ListRecord.

◆ time() [2/2]

template<class DataType>
const ListTime & stir::CListRecordSAFIR< DataType >::time ( ) const
inlineoverridevirtual

Implements stir::ListRecord.

◆ get_time_in_millisecs()

template<class DataType>
unsigned long stir::CListRecordSAFIR< DataType >::get_time_in_millisecs ( ) const
inlineoverridevirtual

Implements stir::ListTime.

◆ set_time_in_millisecs()

template<class DataType>
Succeeded stir::CListRecordSAFIR< DataType >::set_time_in_millisecs ( const unsigned long time_in_millisecs)
inlineoverridevirtual

Implements stir::ListTime.

◆ is_prompt()

template<class DataType>
bool stir::CListRecordSAFIR< DataType >::is_prompt ( ) const
inlineoverridevirtual

Returns 0 if event is prompt and 1 if delayed.

Reimplemented from stir::CListEventSAFIR< CListRecordSAFIR< DataType > >.


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