Ejemplo n.º 1
0
 void operator()(std::pair<info, info> const& pair) const
 {
     callback.element(tag, "", depth);
     boost::apply_visitor(
         this_type(callback, pair.first.tag, depth+1), pair.first.value);
     boost::apply_visitor(
         this_type(callback, pair.second.tag, depth+1), pair.second.value);
 }
Ejemplo n.º 2
0
 void operator()(std::list<info> const& l) const
 {
     callback.element(tag, "", depth);
     BOOST_FOREACH(info const& what, l)
     {
         boost::apply_visitor(
             this_type(callback, what.tag, depth+1), what.value);
     }
Ejemplo n.º 3
0
	typename fixed<FractalBits>::this_type& fixed<FractalBits>::operator =(int other)
	{
		this_type(other).swap(*this);
		return *this;
	}
Ejemplo n.º 4
0
	auto_close<HANDLE> & auto_close<HANDLE>::operator = (this_type && rhs) {
		if (this != (this_type*)&(size_t&)rhs) // amazing operator & bypass
			this_type(std::move(rhs)).swap(*this);
		return *this;
	}
Ejemplo n.º 5
0
	auto_close<HANDLE> & auto_close<HANDLE>::operator = (const this_type & rhs) {
		if (this != &rhs)
			this_type(rhs).swap(*this);
		return *this;
	}
Ejemplo n.º 6
0
 void reset(T *r = 0) {
     this_type(r).swap(*this);
 }
Ejemplo n.º 7
0
 intrusive_ptr& operator=(T *r) {
     this_type(r).swap(*this);
     return *this;
 }
Ejemplo n.º 8
0
	Item::this_type Item::restart(SC_HANDLE scm, const wchar_t* name)
	{
		return simstd::move(this_type(scm, name, SERVICE_STOP | SERVICE_START | SERVICE_QUERY_CONFIG | SERVICE_QUERY_STATUS).stop().wait_state(State::STOPPED, 30000).start());
	}
Ejemplo n.º 9
0
	Start Item::get_start_type(SC_HANDLE scm, const wchar_t* name)
	{
		return this_type(scm, name, SERVICE_QUERY_CONFIG).get_start_type();
	}
Ejemplo n.º 10
0
	ustring Item::get_description(SC_HANDLE scm, const wchar_t* name)
	{
		return this_type(scm, name, SERVICE_QUERY_CONFIG).get_description();
	}
Ejemplo n.º 11
0
	Status Item::get_status(SC_HANDLE scm, const wchar_t* name)
	{
		return this_type(scm, name, SERVICE_QUERY_STATUS).get_status();
	}
Ejemplo n.º 12
0
	Item::this_type Item::pause(SC_HANDLE scm, const wchar_t* name)
	{
		return simstd::move(this_type(scm, name, SERVICE_STOP | SERVICE_QUERY_CONFIG | SERVICE_QUERY_STATUS).pause());
	}
Ejemplo n.º 13
0
	Item::this_type Item::contin(SC_HANDLE scm, const wchar_t* name)
	{
		return simstd::move(this_type(scm, name, SERVICE_START | SERVICE_QUERY_CONFIG | SERVICE_QUERY_STATUS).contin());
	}
Ejemplo n.º 14
0
	typename fixed<FractalBits>::this_type& fixed<FractalBits>::operator =(floating_point_type other)
	{
		this_type(other).swap(*this);
		return *this;
	}
Ejemplo n.º 15
0
 void operator()(info const& what) const
 {
     boost::apply_visitor(
         this_type(callback, what.tag, depth+1), what.value);
 }
Ejemplo n.º 16
0
		this_type& operator =(Arg&& other)
		{
			this_type(other).swap(*this);
			return *this;
		}
Ejemplo n.º 17
0
	Item::this_type Item::start(SC_HANDLE scm, PCWSTR name)
	{
		return simstd::move(this_type(scm, name, SERVICE_START | SERVICE_QUERY_CONFIG | SERVICE_QUERY_STATUS).start());
	}