MayaFlux
1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
◆
make_placer()
template<typename Source, typename Access = Reflect::RecordAccess<Source>>
template<typename T>
Placer
MayaFlux::Portal::Forma::FactoryTable
< Source, Access >::make_placer
(
Geometry::Form
< T >
form
,
T
initial
,
std::function< void(
Tend
< T > &)>
after
)
inline
static
private
Definition at line
273
of file
FactoryTable.hpp
.
275
{
276
return
[
form
=
std::move
(
form
),
initial
=
std::move
(
initial
),
277
after
=
std::move
(
after
)](
Surface
&
surface
,
std::string
&
error
) ->
std::optional<uint32_t>
{
278
Tend<T>
tend
{
279
.form =
form
,
280
.initial =
initial
,
281
};
282
tend
.place(
surface
);
283
if
(!
tend
.result) {
284
error
=
"could not place the element"
;
285
return
std::nullopt
;
286
}
287
if
(
after
)
288
after
(
tend
);
289
return
tend
.result->element.id;
290
};
291
}
MayaFlux::Portal::Forma::FactoryTable
Named factories that turn a template's factory element and an instance into placed Forma elements,...
Definition
FactoryTable.hpp:62
MayaFlux
Portal
Forma
FactoryTable
Generated by
1.15.0