Lightweight 0.20260921.0
Loading...
Searching...
No Matches
Lightweight::HasManyThrough< ReferencedRecordT, ThroughSpec, TheOwnerSelector, TheReferencedSelector >::Loader Struct Reference

Carries the deferred loads, installed by the DataMapper. More...

#include <HasManyThrough.hpp>

Public Attributes

std::function< RelationResult< size_t >()> count
 Counts the records without loading them.
 
std::function< RelationResult< ReferencedRecordList >()> all
 Loads all records.
 
std::function< RelationResult< void >(std::function< void(ReferencedRecord const &)>)> each
 Streams the records to a callback.
 

Detailed Description

template<typename ReferencedRecordT, typename ThroughSpec, auto TheOwnerSelector = AutoDetectRelation, auto TheReferencedSelector = AutoDetectRelation>
struct Lightweight::HasManyThrough< ReferencedRecordT, ThroughSpec, TheOwnerSelector, TheReferencedSelector >::Loader

Carries the deferred loads, installed by the DataMapper.

Definition at line 220 of file HasManyThrough.hpp.

Member Data Documentation

◆ count

template<typename ReferencedRecordT , typename ThroughSpec , auto TheOwnerSelector = AutoDetectRelation, auto TheReferencedSelector = AutoDetectRelation>
std::function<RelationResult<size_t>()> Lightweight::HasManyThrough< ReferencedRecordT, ThroughSpec, TheOwnerSelector, TheReferencedSelector >::Loader::count

Counts the records without loading them.

Definition at line 223 of file HasManyThrough.hpp.

Referenced by Lightweight::HasManyThrough< ReferencedRecordT, ThroughSpec, TheOwnerSelector, TheReferencedSelector >::Count().

◆ all

template<typename ReferencedRecordT , typename ThroughSpec , auto TheOwnerSelector = AutoDetectRelation, auto TheReferencedSelector = AutoDetectRelation>
std::function<RelationResult<ReferencedRecordList>()> Lightweight::HasManyThrough< ReferencedRecordT, ThroughSpec, TheOwnerSelector, TheReferencedSelector >::Loader::all

Loads all records.

Definition at line 225 of file HasManyThrough.hpp.

◆ each

template<typename ReferencedRecordT , typename ThroughSpec , auto TheOwnerSelector = AutoDetectRelation, auto TheReferencedSelector = AutoDetectRelation>
std::function<RelationResult<void>(std::function<void(ReferencedRecord const&)>)> Lightweight::HasManyThrough< ReferencedRecordT, ThroughSpec, TheOwnerSelector, TheReferencedSelector >::Loader::each

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