Udostępnij za pośrednictwem


int_2 — Klasa

Reprezentuje krótki wektor dwóch liczb całkowitych.

Składnia

class int_2;

Członkowie

Definicje typów publicznych

Nazwa/nazwisko opis
value_type

Konstruktory publiczne

Nazwa/nazwisko opis
konstruktor int_2 Przeciążone. Domyślny konstruktor inicjuje wszystkie elementy z wartością 0.

Metody publiczne

Nazwa/nazwisko opis
int_2::get_x
int_2::get_xy
int_2::get_y
int_2::get_yx
int_2::ref_g
int_2::ref_r
int_2::ref_x
int_2::ref_y
int_2::set_x
int_2::set_xy
int_2::set_y
int_2::set_yx

Operatory publiczne

Nazwa/nazwisko opis
int_2::operator—
int_2::operator-
int_2::operator%=
int_2::operator&=
int_2::operator*=
int_2::operator/=
int_2::operator^=
int_2::operator|=
int_2::operator~
int_2::operator++
int_2::operator+=
int_2::operator<<=
int_2::operator=
int_2::operator-=
int_2::operator>>=

Stałe publiczne

Nazwa/nazwisko opis
size, stała

Publiczne elementy członkowskie danych

Nazwa/nazwisko opis
int_2::g
int_2::gr
int_2::r
int_2::rg
int_2::x
int_2::xy
int_2::y
int_2::yx

Hierarchia dziedziczenia

int_2

Wymagania

Nagłówek: amp_short_vectors.h

Przestrzeń nazw: Concurrency::graphics

int_2

Domyślny konstruktor inicjuje wszystkie elementy z wartością 0.

int_2() restrict(amp,
    cpu);

int_2(
    int _V0,
    int _V1) restrict(amp,
    cpu);

int_2(
    int _V) restrict(amp,
    cpu);

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

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

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

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

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

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

Parametry

_V0
Wartość inicjowania elementu 0.

_V1
Wartość inicjowania elementu 1.

_V
Wartość inicjowania.

_Innych
Obiekt używany do inicjowania.

size

static const int size = 2;

Zobacz też

Concurrency::graphics, przestrzeń nazw