xtd 0.2.0
Loading...
Searching...
No Matches
xtd::diagnostics::process::exit_event Class Reference
Inheritance diagram for xtd::diagnostics::process::exit_event:

Definition

Represents a process exit event.

Library
xtd.core
Remarks
Used by xtd::diagnostics::process::exited event.

Public Methods

auto is_empty () const noexcept -> bool
 Gets a value indicate if the event is empty.
 

Operators

auto operator+= (const xtd::event_handler &handler) noexcept -> xtd::event_handler &
 Adds an handler to the event.
 
auto operator+= (const typename xtd::event_handler::function_t &function) noexcept -> xtd::event_handler &
 Adds a function to the event.
 
template<class fn_t>
auto operator+= (fn_t function) noexcept -> xtd::event_handler &
 Adds a function to the event.
 
auto operator-= (const xtd::event_handler &handler) noexcept -> xtd::event_handler &
 Removes an handler to the event.
 
auto operator-= (const typename xtd::event_handler::function_t &function) noexcept -> xtd::event_handler &
 Removes a function to the event.
 
template<class fn_t>
auto operator-= (fn_t function) noexcept -> xtd::event_handler &
 Removes a function to the event.
 

Member Function Documentation

◆ is_empty()

auto xtd::diagnostics::process::exit_event::is_empty ( ) const -> bool
nodiscardnoexcept

Gets a value indicate if the event is empty.

Returns
true if event does not contains functions; otherwise false.

◆ operator+=() [1/3]

auto xtd::diagnostics::process::exit_event::operator+= ( const xtd::event_handler & handler) -> xtd::event_handler &
noexcept

Adds an handler to the event.

Parameters
handlerHandler to add.
Returns
The current event instance.

◆ operator+=() [2/3]

auto xtd::diagnostics::process::exit_event::operator+= ( const typename xtd::event_handler::function_t & function) -> xtd::event_handler &
noexcept

Adds a function to the event.

Parameters
functionFunction to add.
Returns
The current event instance.

◆ operator+=() [3/3]

template<class fn_t>
auto xtd::diagnostics::process::exit_event::operator+= ( fn_t function) -> xtd::event_handler&
inlinenoexcept

Adds a function to the event.

Parameters
functionFunction to add.
Returns
The current event instance.

◆ operator-=() [1/3]

auto xtd::diagnostics::process::exit_event::operator-= ( const xtd::event_handler & handler) -> xtd::event_handler &
noexcept

Removes an handler to the event.

Parameters
handlerHandler to remove.
Returns
The current event instance.

◆ operator-=() [2/3]

auto xtd::diagnostics::process::exit_event::operator-= ( const typename xtd::event_handler::function_t & function) -> xtd::event_handler &
noexcept

Removes a function to the event.

Parameters
functionFunction to remove.
Returns
The current event instance.

◆ operator-=() [3/3]

template<class fn_t>
auto xtd::diagnostics::process::exit_event::operator-= ( fn_t function) -> xtd::event_handler&
inlinenoexcept

Removes a function to the event.

Parameters
functionFunction to remove.
Returns
The current event instance.

The documentation for this class was generated from the following file: