class transfer_resource


class transfer_resource

Description

This class is the base class for transfer resources. A transfer resource can be an input resource (a source of input), an output resource (a destination for output), or both.

Public Member Functions

explicit
transfer_resource (
    std::size_t buffer_capacity = io_buffer::default_buffer_capacity
)

Constructs a transfer resource with the given buffer capacity.

Parameters:
  • buffer_capacity:

    The capacity of the I/O buffer. If this is zero, the transfer resource is completely unbuffered.

transfer_resource (
    const transfer_resource& other
)

Copy-constructs a transfer_resource from an existing one.

Parameters:
  • other:

    The transfer_resource to copy from.

transfer_resource&
operator = (
    const transfer_resource& other
)

Copy-assigns a transfer_resource into this one.

Parameters:
  • other:

    The transfer_resource to copy from.

transfer_resource (
    transfer_resource&& other
)
noexcept

Move-constructs a transfer_resource from an existing one.

Parameters:
  • other:

    The transfer_resource to move from.

transfer_resource&
operator = (
    transfer_resource&& other
)
noexcept

Move-assigns a transfer_resource into this one.

Parameters:
  • other:

    The transfer_resource to move from.

virtual
bool
is_at_end ()
const noexcept = 0

Tells whether this transfer resource is at its end.



Copyright © 2022-2025 Daniel T. McGinnis

CCL was first published in 2022, and is still actively maintained.

This website was first published in 2022, and is still actively maintained.

This specific web page was first published in 2023.