Поделиться через


Класс uint_2

Представляет короткий вектор двух целых чисел без знака.

Синтаксис

class uint_2;

Участники

Общедоступные определения типов

Имя Описание
value_type

Открытые конструкторы

Имя Описание
Конструктор uint_2 Перегружен. Конструктор по умолчанию инициализирует все элементы с 0.

Открытые методы

Имя Описание
uint_2::get_x
uint_2::get_xy
uint_2::get_y
uint_2::get_yx
uint_2::ref_g_Method
uint_2::ref_r_Method
uint_2::ref_x_Method
uint_2::ref_y_Method
uint_2::set_x
uint_2::set_xy
uint_2::set_y
uint_2::set_yx

Открытые операторы

Имя Описание
uint_2::operator--
uint_2::operator%=
uint_2::operator&=
uint_2::operator*=
uint_2::operator/=
uint_2::operator^=
uint_2::operator|=
uint_2::operator~
uint_2::operator++
uint_2::operator+=
uint_2::operator<<=
uint_2::operator=
uint_2::operator-=
uint_2::operator>>=

Открытые константы

Имя Описание
Констант размера

Открытые члены данных

Имя Описание
uint_2::g
uint_2::gr
uint_2::r
uint_2::rg
uint_2::x
uint_2::xy
uint_2::y
uint_2::yx

Иерархия наследования

uint_2

Requirements

Заголовок: amp_short_vectors.h

Пространство имен: параллелизм::графика

uint_2

Конструктор по умолчанию инициализирует все элементы с 0.

uint_2() restrict(amp,
    cpu);

uint_2(
    unsigned int _V0,
    unsigned int _V1) restrict(amp,
    cpu);

uint_2(
    unsigned int _V) restrict(amp,
    cpu);

uint_2(
    const uint_2& _Other) restrict(amp,
    cpu);

explicit inline uint_2(
    const int_2& _Other) restrict(amp,
    cpu);

explicit inline uint_2(
    const float_2& _Other) restrict(amp,
    cpu);

explicit inline uint_2(
    const unorm_2& _Other) restrict(amp,
    cpu);

explicit inline uint_2(
    const norm_2& _Other) restrict(amp,
    cpu);

explicit inline uint_2(
    const double_2& _Other) restrict(amp,
    cpu);

Параметры

_V0
Значение для инициализации элемента 0.

_V1
Значение для инициализации элемента 1.

_V
Значение инициализации.

_Other
Объект, используемый для инициализации.

size

static const int size = 2;

См. также

Пространство имен Concurrency::graphics