MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ invoke_perception()

virtual void MayaFlux::Nexus::Agent::invoke_perception ( const PerceptionContext &  ctx)
inlinevirtual

Invoke the perception function with the supplied context.

Parameters
ctxPopulated context for this commit.

Reimplemented in MayaFlux::Nexus::Locus, and MayaFlux::Nexus::Presence.

Definition at line 351 of file Agent.hpp.

352 {
353 for (const auto& [handle, perception] : m_perceptions) {
354 perception(ctx);
355 }
356 if (m_perception_fn) {
357 m_perception_fn(ctx);
358 }
359 }
PerceptionFn m_perception_fn
Definition Agent.hpp:389
std::vector< std::pair< std::shared_ptr< void >, PerceptionFn > > m_perceptions
Definition Agent.hpp:398

Referenced by MayaFlux::Nexus::Locus::invoke_perception(), and MayaFlux::Nexus::Presence::invoke_perception().

+ Here is the caller graph for this function: