STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
Concurrency::graphics::uint_2 Class Reference

Represent a short vector of 2 unsigned int's. More...

#include <amp_short_vectors.h>

Public Types

typedef unsigned int value_type
 

Public Member Functions

 __declspec (property(get=get_x, put=set_x)) unsigned int x
 Property for accessing element 0 of this uint_2 as an unsigned int. More...
 
 __declspec (property(get=get_x, put=set_x)) unsigned int r
 Property for accessing element 0 of this uint_2 as an unsigned int. More...
 
unsigned int get_x () const __GPU
 Returns element 0 of this uint_2. More...
 
unsigned int & ref_x () __GPU
 Returns reference to element 0 of this uint_2. More...
 
unsigned int & ref_r () __GPU
 Returns reference to element 0 of this uint_2. More...
 
void set_x (unsigned int _Value) __GPU
 Set element 0 of this uint_2 with an unsigned int. More...
 
 __declspec (property(get=get_y, put=set_y)) unsigned int y
 Property for accessing element 1 of this uint_2 as an unsigned int. More...
 
 __declspec (property(get=get_y, put=set_y)) unsigned int g
 Property for accessing element 1 of this uint_2 as an unsigned int. More...
 
unsigned int get_y () const __GPU
 Returns element 1 of this uint_2. More...
 
unsigned int & ref_y () __GPU
 Returns reference to element 1 of this uint_2. More...
 
unsigned int & ref_g () __GPU
 Returns reference to element 1 of this uint_2. More...
 
void set_y (unsigned int _Value) __GPU
 Set element 1 of this uint_2 with an unsigned int. More...
 
 uint_2 () __GPU
 Default constructor, initializes all elements with 0. More...
 
 uint_2 (unsigned int _V0, unsigned int _V1) __GPU
 Constructor. More...
 
 uint_2 (unsigned int _V) __GPU
 Constructor. More...
 
 uint_2 (const int_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 uint_2 (const float_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 uint_2 (const unorm_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 uint_2 (const norm_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 uint_2 (const double_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
uint_2 operator~ () const __GPU
 
uint_2operator++ () __GPU
 
uint_2 operator++ (int) __GPU
 
uint_2operator-- () __GPU
 
uint_2 operator-- (int) __GPU
 
uint_2operator+= (const uint_2 &_Other) __GPU
 
uint_2operator-= (const uint_2 &_Other) __GPU
 
uint_2operator*= (const uint_2 &_Other) __GPU
 
uint_2operator/= (const uint_2 &_Other) __GPU
 
uint_2operator%= (const uint_2 &_Other) __GPU
 
uint_2operator^= (const uint_2 &_Other) __GPU
 
uint_2operator|= (const uint_2 &_Other) __GPU
 
uint_2operator&= (const uint_2 &_Other) __GPU
 
uint_2operator>>= (const uint_2 &_Other) __GPU
 
uint_2operator<<= (const uint_2 &_Other) __GPU
 
 __declspec (property(get=get_xy, put=set_xy)) uint_2 xy
 Property for accessing element 0, and 1 of this uint_2 as a uint_2. More...
 
 __declspec (property(get=get_xy, put=set_xy)) uint_2 rg
 Property for accessing element 0, and 1 of this uint_2 as a uint_2. More...
 
uint_2 get_xy () const __GPU
 Returns a uint_2 that is composed of element 0, and element 1 of this uint_2. More...
 
void set_xy (const uint_2 &_Value) __GPU
 Set element 0, and 1 of this uint_2 with a uint_2. More...
 
 __declspec (property(get=get_yx, put=set_yx)) uint_2 yx
 Property for accessing element 1, and 0 of this uint_2 as a uint_2. More...
 
 __declspec (property(get=get_yx, put=set_yx)) uint_2 gr
 Property for accessing element 1, and 0 of this uint_2 as a uint_2. More...
 
uint_2 get_yx () const __GPU
 Returns a uint_2 that is composed of element 1, and element 0 of this uint_2. More...
 
void set_yx (const uint_2 &_Value) __GPU
 Set element 1, and 0 of this uint_2 with a uint_2. More...
 

Static Public Attributes

static const int size = 2
 

Private Attributes

value_type _M_x
 
value_type _M_y
 

Static Private Attributes

static const _Short_vector_base_type_id _Base_type_id = _Uint_type
 

Detailed Description

Represent a short vector of 2 unsigned int's.

Member Typedef Documentation

Constructor & Destructor Documentation

Concurrency::graphics::uint_2::uint_2 ( )
inline

Default constructor, initializes all elements with 0.

639  {
640  _M_x = 0;
641  _M_y = 0;
642  }
value_type _M_x
Definition: amp_short_vectors.h:530
value_type _M_y
Definition: amp_short_vectors.h:531
Concurrency::graphics::uint_2::uint_2 ( unsigned int  _V0,
unsigned int  _V1 
)
inline

Constructor.

Parameters
_V0The value to initialize element 0.
_V1The value to initialize element 1.
654  {
655  _M_x = _V0;
656  _M_y = _V1;
657  }
value_type _M_x
Definition: amp_short_vectors.h:530
value_type _M_y
Definition: amp_short_vectors.h:531
Concurrency::graphics::uint_2::uint_2 ( unsigned int  _V)
inline

Constructor.

Parameters
_VThe value for initialization.
666  {
667  _M_x = _V;
668  _M_y = _V;
669  }
value_type _M_x
Definition: amp_short_vectors.h:530
value_type _M_y
Definition: amp_short_vectors.h:531
Concurrency::graphics::uint_2::uint_2 ( const int_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22058  {
22059  int_2 _Value = _Other;
22060  _M_x = static_cast<value_type>(_Value.x);
22061  _M_y = static_cast<value_type>(_Value.y);
22062  }
value_type _M_x
Definition: amp_short_vectors.h:530
unsigned int value_type
Definition: amp_short_vectors.h:525
value_type _M_y
Definition: amp_short_vectors.h:531
_In_ int _Value
Definition: setjmp.h:173
Concurrency::graphics::uint_2::uint_2 ( const float_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22065  {
22066  float_2 _Value = _Other;
22067  _M_x = static_cast<value_type>(_Value.x);
22068  _M_y = static_cast<value_type>(_Value.y);
22069  }
value_type _M_x
Definition: amp_short_vectors.h:530
unsigned int value_type
Definition: amp_short_vectors.h:525
value_type _M_y
Definition: amp_short_vectors.h:531
_In_ int _Value
Definition: setjmp.h:173
Concurrency::graphics::uint_2::uint_2 ( const unorm_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22072  {
22073  unorm_2 _Value = _Other;
22074  _M_x = static_cast<value_type>(_Value.x);
22075  _M_y = static_cast<value_type>(_Value.y);
22076  }
value_type _M_x
Definition: amp_short_vectors.h:530
unsigned int value_type
Definition: amp_short_vectors.h:525
value_type _M_y
Definition: amp_short_vectors.h:531
_In_ int _Value
Definition: setjmp.h:173
Concurrency::graphics::uint_2::uint_2 ( const norm_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22079  {
22080  norm_2 _Value = _Other;
22081  _M_x = static_cast<value_type>(_Value.x);
22082  _M_y = static_cast<value_type>(_Value.y);
22083  }
value_type _M_x
Definition: amp_short_vectors.h:530
unsigned int value_type
Definition: amp_short_vectors.h:525
value_type _M_y
Definition: amp_short_vectors.h:531
_In_ int _Value
Definition: setjmp.h:173
Concurrency::graphics::uint_2::uint_2 ( const double_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22086  {
22087  double_2 _Value = _Other;
22088  _M_x = static_cast<value_type>(_Value.x);
22089  _M_y = static_cast<value_type>(_Value.y);
22090  }
value_type _M_x
Definition: amp_short_vectors.h:530
unsigned int value_type
Definition: amp_short_vectors.h:525
value_type _M_y
Definition: amp_short_vectors.h:531
_In_ int _Value
Definition: setjmp.h:173

Member Function Documentation

Concurrency::graphics::uint_2::__declspec ( property(get=get_x, put=set_x )

Property for accessing element 0 of this uint_2 as an unsigned int.

Concurrency::graphics::uint_2::__declspec ( property(get=get_x, put=set_x )

Property for accessing element 0 of this uint_2 as an unsigned int.

Concurrency::graphics::uint_2::__declspec ( property(get=get_y, put=set_y )

Property for accessing element 1 of this uint_2 as an unsigned int.

Concurrency::graphics::uint_2::__declspec ( property(get=get_y, put=set_y )

Property for accessing element 1 of this uint_2 as an unsigned int.

Concurrency::graphics::uint_2::__declspec ( property(get=get_xy, put=set_xy )

Property for accessing element 0, and 1 of this uint_2 as a uint_2.

Concurrency::graphics::uint_2::__declspec ( property(get=get_xy, put=set_xy )

Property for accessing element 0, and 1 of this uint_2 as a uint_2.

Concurrency::graphics::uint_2::__declspec ( property(get=get_yx, put=set_yx )

Property for accessing element 1, and 0 of this uint_2 as a uint_2.

Concurrency::graphics::uint_2::__declspec ( property(get=get_yx, put=set_yx )

Property for accessing element 1, and 0 of this uint_2 as a uint_2.

unsigned int Concurrency::graphics::uint_2::get_x ( ) const
inline

Returns element 0 of this uint_2.

Returns
Element 0 of this uint_2.
549  {
550  return _M_x;
551  }
value_type _M_x
Definition: amp_short_vectors.h:530
uint_2 Concurrency::graphics::uint_2::get_xy ( ) const
inline

Returns a uint_2 that is composed of element 0, and element 1 of this uint_2.

Returns
a uint_2.
870  {
871  return uint_2(_M_x,_M_y);
872  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
value_type _M_x
Definition: amp_short_vectors.h:530
value_type _M_y
Definition: amp_short_vectors.h:531
unsigned int Concurrency::graphics::uint_2::get_y ( ) const
inline

Returns element 1 of this uint_2.

Returns
Element 1 of this uint_2.
599  {
600  return _M_y;
601  }
value_type _M_y
Definition: amp_short_vectors.h:531
uint_2 Concurrency::graphics::uint_2::get_yx ( ) const
inline

Returns a uint_2 that is composed of element 1, and element 0 of this uint_2.

Returns
a uint_2.
902  {
903  return uint_2(_M_y,_M_x);
904  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
value_type _M_x
Definition: amp_short_vectors.h:530
value_type _M_y
Definition: amp_short_vectors.h:531
uint_2& Concurrency::graphics::uint_2::operator%= ( const uint_2 _Other)
inline
795  {
796  uint_2 _Value1 = *this;
797  uint_2 _Value2 = _Other;
798  _Value1.x %= _Value2.x;
799  _Value1.y %= _Value2.y;
800  *this = _Value1;
801  return *this;
802  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator&= ( const uint_2 _Other)
inline
825  {
826  uint_2 _Value1 = *this;
827  uint_2 _Value2 = _Other;
828  _Value1.x &= _Value2.x;
829  _Value1.y &= _Value2.y;
830  *this = _Value1;
831  return *this;
832  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator*= ( const uint_2 _Other)
inline
775  {
776  uint_2 _Value1 = *this;
777  uint_2 _Value2 = _Other;
778  _Value1.x *= _Value2.x;
779  _Value1.y *= _Value2.y;
780  *this = _Value1;
781  return *this;
782  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator++ ( )
inline
723  {
724  uint_2 _Value = *this;
725  ++_Value._M_x;
726  ++_Value._M_y;
727  *this = _Value;
728  return *this;
729  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
_In_ int _Value
Definition: setjmp.h:173
uint_2 Concurrency::graphics::uint_2::operator++ ( int  )
inline
732  {
733  uint_2 _Result = *this;
734  ++(*this);
735  return _Result;
736  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator+= ( const uint_2 _Other)
inline
755  {
756  uint_2 _Value1 = *this;
757  uint_2 _Value2 = _Other;
758  _Value1.x += _Value2.x;
759  _Value1.y += _Value2.y;
760  *this = _Value1;
761  return *this;
762  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator-- ( )
inline
739  {
740  uint_2 _Value = *this;
741  --_Value._M_x;
742  --_Value._M_y;
743  *this = _Value;
744  return *this;
745  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
_In_ int _Value
Definition: setjmp.h:173
uint_2 Concurrency::graphics::uint_2::operator-- ( int  )
inline
748  {
749  uint_2 _Result = *this;
750  --(*this);
751  return _Result;
752  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator-= ( const uint_2 _Other)
inline
765  {
766  uint_2 _Value1 = *this;
767  uint_2 _Value2 = _Other;
768  _Value1.x -= _Value2.x;
769  _Value1.y -= _Value2.y;
770  *this = _Value1;
771  return *this;
772  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator/= ( const uint_2 _Other)
inline
785  {
786  uint_2 _Value1 = *this;
787  uint_2 _Value2 = _Other;
788  _Value1.x /= _Value2.x;
789  _Value1.y /= _Value2.y;
790  *this = _Value1;
791  return *this;
792  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator<<= ( const uint_2 _Other)
inline
845  {
846  uint_2 _Value1 = *this;
847  uint_2 _Value2 = _Other;
848  _Value1.x <<= _Value2.x;
849  _Value1.y <<= _Value2.y;
850  *this = _Value1;
851  return *this;
852  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator>>= ( const uint_2 _Other)
inline
835  {
836  uint_2 _Value1 = *this;
837  uint_2 _Value2 = _Other;
838  _Value1.x >>= _Value2.x;
839  _Value1.y >>= _Value2.y;
840  *this = _Value1;
841  return *this;
842  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator^= ( const uint_2 _Other)
inline
805  {
806  uint_2 _Value1 = *this;
807  uint_2 _Value2 = _Other;
808  _Value1.x ^= _Value2.x;
809  _Value1.y ^= _Value2.y;
810  *this = _Value1;
811  return *this;
812  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2& Concurrency::graphics::uint_2::operator|= ( const uint_2 _Other)
inline
815  {
816  uint_2 _Value1 = *this;
817  uint_2 _Value2 = _Other;
818  _Value1.x |= _Value2.x;
819  _Value1.y |= _Value2.y;
820  *this = _Value1;
821  return *this;
822  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
uint_2 Concurrency::graphics::uint_2::operator~ ( ) const
inline
717  {
718  uint_2 _Value = *this;
719  return uint_2(~_Value.x, ~_Value.y);
720  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
_In_ int _Value
Definition: setjmp.h:173
unsigned int& Concurrency::graphics::uint_2::ref_g ( )
inline

Returns reference to element 1 of this uint_2.

Returns
Reference to element 1 of this uint_2.
619  {
620  return _M_y;
621  }
value_type _M_y
Definition: amp_short_vectors.h:531
unsigned int& Concurrency::graphics::uint_2::ref_r ( )
inline

Returns reference to element 0 of this uint_2.

Returns
Reference to element 0 of this uint_2.
569  {
570  return _M_x;
571  }
value_type _M_x
Definition: amp_short_vectors.h:530
unsigned int& Concurrency::graphics::uint_2::ref_x ( )
inline

Returns reference to element 0 of this uint_2.

Returns
Reference to element 0 of this uint_2.
559  {
560  return _M_x;
561  }
value_type _M_x
Definition: amp_short_vectors.h:530
unsigned int& Concurrency::graphics::uint_2::ref_y ( )
inline

Returns reference to element 1 of this uint_2.

Returns
Reference to element 1 of this uint_2.
609  {
610  return _M_y;
611  }
value_type _M_y
Definition: amp_short_vectors.h:531
void Concurrency::graphics::uint_2::set_x ( unsigned int  _Value)
inline

Set element 0 of this uint_2 with an unsigned int.

Parameters
_Valuean unsigned int value.
580  {
581  _M_x = _Value;
582  }
value_type _M_x
Definition: amp_short_vectors.h:530
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::uint_2::set_xy ( const uint_2 _Value)
inline

Set element 0, and 1 of this uint_2 with a uint_2.

Parameters
_Valuea uint_2 value.
881  {
882  uint_2 _Val = _Value;
883  _M_x = _Val.x;
884  _M_y = _Val.y;
885  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_x
Definition: amp_short_vectors.h:530
value_type _M_y
Definition: amp_short_vectors.h:531
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::uint_2::set_y ( unsigned int  _Value)
inline

Set element 1 of this uint_2 with an unsigned int.

Parameters
_Valuean unsigned int value.
630  {
631  _M_y = _Value;
632  }
value_type _M_y
Definition: amp_short_vectors.h:531
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::uint_2::set_yx ( const uint_2 _Value)
inline

Set element 1, and 0 of this uint_2 with a uint_2.

Parameters
_Valuea uint_2 value.
913  {
914  uint_2 _Val = _Value;
915  _M_y = _Val.x;
916  _M_x = _Val.y;
917  }
uint_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:638
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_x
Definition: amp_short_vectors.h:530
value_type _M_y
Definition: amp_short_vectors.h:531
_In_ int _Value
Definition: setjmp.h:173

Member Data Documentation

const _Short_vector_base_type_id Concurrency::graphics::uint_2::_Base_type_id = _Uint_type
staticprivate
value_type Concurrency::graphics::uint_2::_M_x
private
value_type Concurrency::graphics::uint_2::_M_y
private
const int Concurrency::graphics::uint_2::size = 2
static

The documentation for this class was generated from the following file: