Boost C++ Libraries/Boost.Asio

Boost.Asio 색인 - any_io_executor

까마귀75 2021. 1. 5. 11:34
728x90
반응형

any_io_executor

I/O 개체와 사용하기 위한 다형성 실행기(executor) 유형

typedef execution::any_executor<...> any_io_executor;

멤버 함수

이 름 설 명
any_executor
[생성자(constructor)]
기본 생성자

비어있는 상태의 생성자(기본 생성자와 동등한 효과)

복사 생성자

이동 생성자

다른 execution::any_executor와 동일한 대상을 가리키는 생성자

지정된 실행기(executor)에 대한 다형성 래퍼 생성자
context 기본 실행 컨텍스트를 가져온다.
execute 대상 실행기(executor)에서 함수를 실행한다.
operator bool 래퍼에 대상 실행기(executor)가 있는지 확인한다.
operator= 할당 연산자

이동 할당 연산자

비어있는 상태로 다형성 래퍼를 설정하는 할당 연산자

지정된 실행기(executor)에 대한 다형성 래퍼를 생성하는 할당 연산자
prefer 지정된 속성을 가진 다형성 래퍼를 가져온다.
query 지정된 속성과 연결된 값을 가져온다.
require 지정된 속성을 가진 다형성 래퍼를 가져온다.
swap 다른 다형성 래퍼로 대상을 변경한다.
target 대상 실행기(executor)의 포인터를 가져온다.
target_type 대상 실행기(executor)의 유형을 가져온다.
~any_executor
[소멸자(destructor)]
소멸자

관련 함수

이 름 설 명
operator!= 부등식 연산자 (같지 않음 연산자)
operator== 등식 연산자 (같음 연산자)


any_io_executor 유형은 I/O 개체에 필요한 속성 집합을 지원하는 다형성 실행기(executor)이다. 다음과 같이 파라미터화된(parameterised) execution::any_executor 클래스 템플릿으로 정의된다.

execution::any_executor<
  execution::context_as_t<execution_context&>,
  execution::blocking_t::never_t,
  execution::prefer_only<execution::blocking_t::possibly_t>,
  execution::prefer_only<execution::outstanding_work_t::tracked_t>,
  execution::prefer_only<execution::outstanding_work_t::untracked_t>,
  execution::prefer_only<execution::relationship_t::fork_t>,
  execution::prefer_only<execution::relationship_t::continuation_t>
>

요구사항

일반 헤더: boost/asio/any_io_executor.hpp
편의 헤더: boost.asio.hpp

Boost.Asio 홈

728x90
반응형