Megosztás a következőn keresztül:


int_2 osztály

Két egész szám rövid vektorát jelöli.

Szemantika

class int_2;

Tagok

Nyilvános típustdefiníciók

Név Description
value_type

Nyilvános konstruktorok

Név Description
int_2 Konstruktor Túlterhelt. Az alapértelmezett konstruktor az összes elemet inicializálja 0-val.

Nyilvános módszerek

Név Description
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

Nyilvános operátorok

Név Description
int_2::operátor-
int_2::operátor-
int_2::operátor%=
int_2::operátor>
int_2::operátor*=
int_2::operátor/=
int_2::operátor^=
int_2::operátor|=
int_2::operátor~
int_2::operátor++
int_2::operátor+=
int_2::operátor<<=
int_2::operátor=
int_2::operator-=
int_2::operátor>>=

Nyilvános állandók

Név Description
méretállandó

Nyilvános adatok tagjai

Név Description
int_2::g
int_2::gr
int_2::r
int_2::rg
int_2::x
int_2::xy
int_2::y
int_2::yx

Öröklési hierarchia

int_2

Requirements

Fejléc: amp_short_vectors.h

Namespace: Párhuzamosság::grafika

int_2

Az alapértelmezett konstruktor az összes elemet inicializálja 0-val.

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);

Paraméterek

_V0
A 0. elem inicializálandó értéke.

_V1
Az 1. elem inicializálandó értéke.

_V
Az inicializálás értéke.

_Más
Az inicializáláshoz használt objektum.

size

static const int size = 2;

Lásd még

Concurrency::grafikus névtér