|
Lightweight 0.20260625.0
|
Carries the deferred load, installed by the DataMapper. More...
#include <CompositeForeignKey.hpp>
Public Member Functions | |
| std::weak_ordering | operator<=> (Loader const &) const noexcept |
| Loaders carry no comparable state of their own, so any two are considered equivalent. | |
| bool | operator== (Loader const &) const noexcept |
Public Attributes | |
| std::function< std::shared_ptr< ReferencedRecord >()> | loadReference {} |
Loads and returns the referenced record, or nullptr if none exists. | |
Carries the deferred load, installed by the DataMapper.
Definition at line 386 of file CompositeForeignKey.hpp.
|
inlinenoexcept |
Loaders carry no comparable state of their own, so any two are considered equivalent.
Definition at line 392 of file CompositeForeignKey.hpp.
|
inlinenoexcept |
Loaders carry no comparable state of their own, so any two compare equal.
A defaulted == on the enclosing class does not derive equality from a member's <=> - each member needs its own viable ==, or the default is silently deleted. See HasMany::Loader for the same shape (there, without this operator; equal by convention since it holds none of the relation's state).
Definition at line 403 of file CompositeForeignKey.hpp.
| std::function<std::shared_ptr<ReferencedRecord>()> Lightweight::CompositeForeignKey< Connections >::Loader::loadReference {} |
Loads and returns the referenced record, or nullptr if none exists.
Definition at line 389 of file CompositeForeignKey.hpp.
Referenced by Lightweight::CompositeForeignKey< Connections >::operator==().