命名空间 | |
| namespace | detail |
函数 | |
| template<class I > | |
| void | provide (I *impl) |
| template<class I > | |
| I * | query () |
| template<class I > | |
| void | revoke (I *impl) |
| template<class I > | |
| void | addListener (I *impl, int priority=0) |
| template<class I > | |
| void | removeListener (I *impl) |
| template<class I > | |
| size_t | listenerCount () |
| template<class I > | |
| I * | listenerAt (size_t index) |
| template<class I , class F > | |
| void | forEach (F &&fn) |
| template<class I , class F > | |
| bool | forEachUntil (F &&fn) |
函数说明
◆ addListener()
Add one of possibly many implementations. Lower priority runs first.
在文件 Capability.h 第 89 行定义.
引用了 eve::cap::detail::addListenerRaw(), impl , 以及 priority.
◆ forEach()
Call fn for every implementation of I in priority order. Iterating by index keeps this valid if a listener registers or withdraws another during dispatch.
在文件 Capability.h 第 114 行定义.
引用了 fn, impl, eve::cap::detail::listenerAtRaw(), eve::cap::detail::listenerCountRaw(), n , 以及 query().
◆ forEachUntil()
Call fn for each implementation of I until one returns true; returns whether any did. Used where the first handler that recognises an item wins.
在文件 Capability.h 第 126 行定义.
引用了 fn, impl, eve::cap::detail::listenerAtRaw(), eve::cap::detail::listenerCountRaw(), n , 以及 query().
◆ listenerAt()
在文件 Capability.h 第 104 行定义.
引用了 eve::cap::detail::listenerAtRaw() , 以及 query().
◆ listenerCount()
在文件 Capability.h 第 99 行定义.
◆ provide()
Register the single implementation of I, replacing any previous one.
在文件 Capability.h 第 71 行定义.
引用了 impl , 以及 eve::cap::detail::provideRaw().
◆ query()
| I * eve::cap::query | ( | ) |
The implementation of I, or nullptr when no module provides it.
在文件 Capability.h 第 77 行定义.
引用了 query() , 以及 eve::cap::detail::queryRaw().
被这些函数引用 eve::cap::detail::addListenerRaw(), eve::dev::Snapshot::captureState(), eve::ResourceManager::clear(), eve::ResourceManager::ensureRegistered(), forEach(), forEachUntil(), eve::ResourceManager::get(), eve::graphics::Graphics::Graphics(), listenerAt(), eve::cap::detail::listenerAtRaw(), eve::cap::detail::listenerCountRaw(), eve::cmd::Cmdline::McpHost(), eve::thread::Thread::postMain(), eve::event::sdl::Event::pump(), query(), eve::cap::detail::queryRaw(), eve::ResourceManager::refreshEntry(), eve::audio::registerAudioCapabilities(), eve::ui::registerEditorHostCapabilities(), eve::graphics::registerGraphicsCapabilities(), eve::particles::registerParticlesCapabilities(), eve::physics::registerPhysicsCapabilities(), eve::procgen::registerProcgenCapabilities(), eve::scene::registerSceneCapabilities(), eve::cap::detail::removeListenerRaw(), eve::dev::Snapshot::restoreState(), eve::cap::detail::revokeRaw(), eve::window::sdl::Window::setWindowSettings(), eve::thread::ThreadPool::submitPost(), eve::filesystem::HotReload::tryReload() , 以及 eve::window::sdl::Window::updateSettings().
◆ removeListener()
在文件 Capability.h 第 94 行定义.
引用了 impl , 以及 eve::cap::detail::removeListenerRaw().
◆ revoke()
Withdraw impl; a no-op when something else has since taken the slot.
在文件 Capability.h 第 83 行定义.
引用了 impl , 以及 eve::cap::detail::revokeRaw().