Skip to main content

struct

AddressSpace

Address space of the pointer.

Aliases

  • GENERIC = 0: Generic address space.

Implemented traits

AnyType, Copyable, EqualityComparable, Movable

Methods

__init__

__init__(inout self: Self, value: Int)

Initializes the address space from the underlying integral value.

Args:

  • value (Int): The address space value.

__init__(inout self: Self, value: _GPUAddressSpace)

Initializes the address space from the underlying integral value.

Args:

  • value (_GPUAddressSpace): The address space value.

__eq__

__eq__(self: Self, other: Self) -> Bool

True if the two address spaces are equal and False otherwise.

Args:

  • other (Self): The other address space value.

Returns:

True if the two address spaces are equal and False otherwise.

__ne__

__ne__(self: Self, other: Self) -> Bool

True if the two address spaces are inequal and False otherwise.

Args:

  • other (Self): The other address space value.

Returns:

True if the two address spaces are inequal and False otherwise.

value

value(self: Self) -> Int

The integral value of the address space.

Returns:

The integral value of the address space.