Skip to content

CustomLambdaLocatorTraits

#include <sbio/locators/custom_lambda.hh>
template<typename FTraits>
struct CustomLambdaLocatorTraits

Defined in src/lib/sbio/locators/custom_lambda.hh:44

Return Name Description
constexpr auto finder_lambda static constexpr

static constexpr

constexpr auto finder_lambda =
[]<typename DS>(DS& ds,
const Parameters& params,
const GenericStreamConfig<typename DS::DataFormat>& base_cfg) {
return ds.num_data_streams() > 0;
}

Defined in src/lib/sbio/locators/custom_lambda.hh:47

Return Name Description
std::size_t id_stream static inline Given a filename, determine the stream identifier number.
std::size_t id_chain_order static inline Given a filename, determine the stream’s order in a processing chain.

static inline

static inline std::size_t id_stream()

Defined in src/lib/sbio/locators/custom_lambda.hh:67

Given a filename, determine the stream identifier number.

If the format allows for multiple streams, it must assign a numeric value to them, even if it is not encoded directly in the filename. Additionally, if there are multiple stream roles which must be grouped together under a single StreamBroker for processing, the stream identifiers must match for the roles that will be grouped.

A numeric identifier for the stream. This is unique within a single role, but different roles may, and should, have streams with the same identifier when they must be grouped together.


static inline

static inline std::size_t id_chain_order()

Defined in src/lib/sbio/locators/custom_lambda.hh:81

Given a filename, determine the stream’s order in a processing chain.

Some formats allow, or require, streams to be processed in sequence. The chain identifier positions a given stream in the correct order of the processing sequence. E.g., chain id 0 will be processed, then chain id 1, and so on. As with the stream identifiers, if there are multiple roles that must be grouped together, the streams corresponding to different roles must have matched chain identifiers to ensure proper grouping.

A numeric identifier for the stream’s position in a sequence/chain.

Name Description
Parameters

using Parameters = LocatorParameters_t< CustomLambdaLocator, FTraits >

Type: LocatorParameters_t< CustomLambdaLocator, FTraits >

Defined in src/lib/sbio/locators/custom_lambda.hh:45