Skip to content

SegmentRef

#include <sbio/core/topology.hh>
template<IsStreamBroker BrokerType>
struct SegmentRef

Defined in src/lib/sbio/core/topology.hh:60

Map a StreamBroker to a logical position within a BrokerGroup.

Return Name Description
BrokerType * broker The pointer to the StreamBroker where you find this logical segment.
EPolicy::template SegmentState< SegmentCursor< DataFormat > > cursor Tracking state handle for segment position within the StreamBroker’s streams.
hd_std::uint32_t format_segment_id The identifier provided by the actual data format specification.
hd_std::uint32_t logical_slot The logical order of the segment within a BrokerGroup.
DataAccessPtn access_ptn The format-specific access strategy used to access this logical segment.

BrokerType * broker { nullptr }

Defined in src/lib/sbio/core/topology.hh:79

The pointer to the StreamBroker where you find this logical segment.


EPolicy::template SegmentState< SegmentCursor< DataFormat > > cursor {}

Type: EPolicy::template SegmentState< SegmentCursor< DataFormat > >

Defined in src/lib/sbio/core/topology.hh:83

Tracking state handle for segment position within the StreamBroker’s streams.


hd_std::uint32_t format_segment_id { 0 }

Defined in src/lib/sbio/core/topology.hh:90

The identifier provided by the actual data format specification.

The format identifier does not necessarily equal the logical_slot. In some cases, the format may not even provide an identifier.


hd_std::uint32_t logical_slot { 0 }

Defined in src/lib/sbio/core/topology.hh:94

The logical order of the segment within a BrokerGroup.


DataAccessPtn access_ptn

Type: DataAccessPtn

Defined in src/lib/sbio/core/topology.hh:101

The format-specific access strategy used to access this logical segment.

Some formats expose multiple mechanisms to traverse data. The access pattern controls which mechanism to use.

Name Description
DataFormat The type of data being read.
EPolicy Current execution policy.
DataAccessPtn The type of the enumerator used to specify access patterns used for the format.

using DataFormat = typename BrokerType::DataFormat

Defined in src/lib/sbio/core/topology.hh:64

The type of data being read.


using EPolicy = typename BrokerType::ExecutionPolicy

Defined in src/lib/sbio/core/topology.hh:69

Current execution policy.


using DataAccessPtn = typename DataFormat::DataAccessPtn

Defined in src/lib/sbio/core/topology.hh:74

The type of the enumerator used to specify access patterns used for the format.