NotifyMapping AmsConnection::CreateNotifyMapping(uint32_t hNotify, Notification& notification) { const auto dispatcher = DispatcherListAdd(notification.connection); notification.hNotify(hNotify); dispatcher->Emplace(hNotify, notification); return NotifyMapping {hNotify, dispatcher}; }
/**Add a item to the manager. \param name [in] the name of the resource to load. \param path [in] path the path to the resource to load. \return a reference to the newly loaded resource.*/ virtual inline sf::Music& MakeMusic(const std::string& name, const std::string& path) { cg::logger::log_note(2, GetName(), "(MakeMusic): Making the " "sound ", name, " from ", path); Emplace(name, path).openFromFile(path); return this->Get(name); }
Nullable<T>& Nullable<T>::operator=( T const& v ) { Emplace( v ); return *this; }
Nullable<T>& Nullable<T>::operator=( T&& v ) { Emplace( std::move( v ) ); return *this; }
void List<T>::Push( VT&& v ) { Emplace( std::forward<VT>( v ) ); }
void ReadingList::Insert(const IO::Path& pth, size_t pos) { Emplace(pth, pos); }