Exemplo n.º 1
0
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);
	}
Exemplo n.º 3
0
Nullable<T>& Nullable<T>::operator=( T const& v )
{
    Emplace( v );
    return *this;
}
Exemplo n.º 4
0
Nullable<T>& Nullable<T>::operator=( T&& v )
{
    Emplace( std::move( v ) );
    return *this;
}
Exemplo n.º 5
0
 void List<T>::Push( VT&& v )
 {
     Emplace( std::forward<VT>( v ) );
 }
Exemplo n.º 6
0
void
ReadingList::Insert(const IO::Path& pth, size_t pos)
{
	Emplace(pth, pos);
}