Share via


int_2-klasse

Vertegenwoordigt een korte vector van twee gehele getallen.

Syntaxis

class int_2;

Leden

Openbare typedefs

Naam Description
value_type

Openbare constructors

Naam Description
int_2 constructor Overbelast. Standaardconstructor, initialiseert alle elementen met 0.

Openbare methoden

Naam 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

Openbare operators

Naam Description
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>>=

Openbare constanten

Naam Description
grootteconstante

Publieke dataleden

Naam 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

Overnamehiƫrarchie

int_2

Requirements

Koptekst: amp_short_vectors.h

Namespace: Gelijktijdigheid::graphics

int_2

Standaardconstructor, initialiseert alle elementen met 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);

Parameterwaarden

_V0
De waarde voor het initialiseren van element 0.

_V1
De waarde voor het initialiseren van element 1.

_V
De waarde voor initialisatie.

_Andere
Het object dat is gebruikt om te initialiseren.

size

static const int size = 2;

Zie ook

Gelijktijdigheid::graphics-naamruimte