Loading src/core/arrays/tnlStaticArray.h +16 −0 Original line number Diff line number Diff line Loading @@ -64,15 +64,19 @@ class tnlStaticArray __cuda_callable__ Element& operator[]( int i ); __cuda_callable__ tnlStaticArray< Size, Element >& operator = ( const tnlStaticArray< Size, Element >& array ); template< typename Array > __cuda_callable__ tnlStaticArray< Size, Element >& operator = ( const Array& array ); template< typename Array > __cuda_callable__ bool operator == ( const Array& array ) const; template< typename Array > __cuda_callable__ bool operator != ( const Array& array ) const; void setValue( const ElementType& val ); Loading Loading @@ -134,15 +138,19 @@ class tnlStaticArray< 1, Element > __cuda_callable__ const Element& x() const; __cuda_callable__ tnlStaticArray< 1, Element >& operator = ( const tnlStaticArray< 1, Element >& array ); template< typename Array > __cuda_callable__ tnlStaticArray< 1, Element >& operator = ( const Array& array ); template< typename Array > __cuda_callable__ bool operator == ( const Array& array ) const; template< typename Array > __cuda_callable__ bool operator != ( const Array& array ) const; void setValue( const ElementType& val ); Loading Loading @@ -215,15 +223,19 @@ class tnlStaticArray< 2, Element > __cuda_callable__ const Element& y() const; __cuda_callable__ tnlStaticArray< 2, Element >& operator = ( const tnlStaticArray< 2, Element >& array ); template< typename Array > __cuda_callable__ tnlStaticArray< 2, Element >& operator = ( const Array& array ); template< typename Array > __cuda_callable__ bool operator == ( const Array& array ) const; template< typename Array > __cuda_callable__ bool operator != ( const Array& array ) const; void setValue( const ElementType& val ); Loading Loading @@ -304,15 +316,19 @@ class tnlStaticArray< 3, Element > __cuda_callable__ const Element& z() const; __cuda_callable__ tnlStaticArray< 3, Element >& operator = ( const tnlStaticArray< 3, Element >& array ); template< typename Array > __cuda_callable__ tnlStaticArray< 3, Element >& operator = ( const Array& array ); template< typename Array > __cuda_callable__ bool operator == ( const Array& array ) const; template< typename Array > __cuda_callable__ bool operator != ( const Array& array ) const; void setValue( const ElementType& val ); Loading src/core/arrays/tnlStaticArray1D_impl.h +4 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,7 @@ const Element& tnlStaticArray< 1, Element >::x() const } template< typename Element > __cuda_callable__ tnlStaticArray< 1, Element >& tnlStaticArray< 1, Element >::operator = ( const tnlStaticArray< 1, Element >& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -119,6 +120,7 @@ tnlStaticArray< 1, Element >& tnlStaticArray< 1, Element >::operator = ( const t template< typename Element > template< typename Array > __cuda_callable__ tnlStaticArray< 1, Element >& tnlStaticArray< 1, Element >::operator = ( const Array& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -127,6 +129,7 @@ tnlStaticArray< 1, Element >& tnlStaticArray< 1, Element >::operator = ( const A template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 1, Element >::operator == ( const Array& array ) const { return( ( int ) size == ( int ) Array::size && data[ 0 ] == array[ 0 ] ); Loading @@ -134,6 +137,7 @@ bool tnlStaticArray< 1, Element >::operator == ( const Array& array ) const template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 1, Element >::operator != ( const Array& array ) const { return ! this->operator == ( array ); Loading src/core/arrays/tnlStaticArray2D_impl.h +4 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,7 @@ const Element& tnlStaticArray< 2, Element >::y() const } template< typename Element > __cuda_callable__ tnlStaticArray< 2, Element >& tnlStaticArray< 2, Element >::operator = ( const tnlStaticArray< 2, Element >& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -145,6 +146,7 @@ tnlStaticArray< 2, Element >& tnlStaticArray< 2, Element >::operator = ( const t template< typename Element > template< typename Array > __cuda_callable__ tnlStaticArray< 2, Element >& tnlStaticArray< 2, Element >::operator = ( const Array& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -154,6 +156,7 @@ tnlStaticArray< 2, Element >& tnlStaticArray< 2, Element >::operator = ( const A template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 2, Element >::operator == ( const Array& array ) const { return( ( int ) size == ( int ) Array::size && Loading @@ -163,6 +166,7 @@ bool tnlStaticArray< 2, Element >::operator == ( const Array& array ) const template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 2, Element >::operator != ( const Array& array ) const { return ! this->operator == ( array ); Loading src/core/arrays/tnlStaticArray3D_impl.h +4 −0 Original line number Diff line number Diff line Loading @@ -153,6 +153,7 @@ const Element& tnlStaticArray< 3, Element >::z() const return data[ 2 ]; } template< typename Element > __cuda_callable__ tnlStaticArray< 3, Element >& tnlStaticArray< 3, Element >::operator = ( const tnlStaticArray< 3, Element >& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -163,6 +164,7 @@ tnlStaticArray< 3, Element >& tnlStaticArray< 3, Element >::operator = ( const t template< typename Element > template< typename Array > __cuda_callable__ tnlStaticArray< 3, Element >& tnlStaticArray< 3, Element >::operator = ( const Array& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -173,6 +175,7 @@ tnlStaticArray< 3, Element >& tnlStaticArray< 3, Element >::operator = ( const A template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 3, Element >::operator == ( const Array& array ) const { return( ( int ) size == ( int ) Array::size && Loading @@ -183,6 +186,7 @@ bool tnlStaticArray< 3, Element >::operator == ( const Array& array ) const template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 3, Element >::operator != ( const Array& array ) const { return ! this->operator == ( array ); Loading src/core/arrays/tnlStaticArray_impl.h +4 −0 Original line number Diff line number Diff line Loading @@ -100,6 +100,7 @@ Element& tnlStaticArray< Size, Element >::operator[]( int i ) } template< int Size, typename Element > __cuda_callable__ tnlStaticArray< Size, Element >& tnlStaticArray< Size, Element >::operator = ( const tnlStaticArray< Size, Element >& array ) { for( int i = 0; i < size; i++ ) Loading @@ -109,6 +110,7 @@ tnlStaticArray< Size, Element >& tnlStaticArray< Size, Element >::operator = ( c template< int Size, typename Element > template< typename Array > __cuda_callable__ tnlStaticArray< Size, Element >& tnlStaticArray< Size, Element >::operator = ( const Array& array ) { for( int i = 0; i < size; i++ ) Loading @@ -118,6 +120,7 @@ tnlStaticArray< Size, Element >& tnlStaticArray< Size, Element >::operator = ( c template< int Size, typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< Size, Element >::operator == ( const Array& array ) const { if( ( int ) size != ( int ) Array::size ) Loading @@ -130,6 +133,7 @@ bool tnlStaticArray< Size, Element >::operator == ( const Array& array ) const template< int Size, typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< Size, Element >::operator != ( const Array& array ) const { return ! this->operator == ( array ); Loading Loading
src/core/arrays/tnlStaticArray.h +16 −0 Original line number Diff line number Diff line Loading @@ -64,15 +64,19 @@ class tnlStaticArray __cuda_callable__ Element& operator[]( int i ); __cuda_callable__ tnlStaticArray< Size, Element >& operator = ( const tnlStaticArray< Size, Element >& array ); template< typename Array > __cuda_callable__ tnlStaticArray< Size, Element >& operator = ( const Array& array ); template< typename Array > __cuda_callable__ bool operator == ( const Array& array ) const; template< typename Array > __cuda_callable__ bool operator != ( const Array& array ) const; void setValue( const ElementType& val ); Loading Loading @@ -134,15 +138,19 @@ class tnlStaticArray< 1, Element > __cuda_callable__ const Element& x() const; __cuda_callable__ tnlStaticArray< 1, Element >& operator = ( const tnlStaticArray< 1, Element >& array ); template< typename Array > __cuda_callable__ tnlStaticArray< 1, Element >& operator = ( const Array& array ); template< typename Array > __cuda_callable__ bool operator == ( const Array& array ) const; template< typename Array > __cuda_callable__ bool operator != ( const Array& array ) const; void setValue( const ElementType& val ); Loading Loading @@ -215,15 +223,19 @@ class tnlStaticArray< 2, Element > __cuda_callable__ const Element& y() const; __cuda_callable__ tnlStaticArray< 2, Element >& operator = ( const tnlStaticArray< 2, Element >& array ); template< typename Array > __cuda_callable__ tnlStaticArray< 2, Element >& operator = ( const Array& array ); template< typename Array > __cuda_callable__ bool operator == ( const Array& array ) const; template< typename Array > __cuda_callable__ bool operator != ( const Array& array ) const; void setValue( const ElementType& val ); Loading Loading @@ -304,15 +316,19 @@ class tnlStaticArray< 3, Element > __cuda_callable__ const Element& z() const; __cuda_callable__ tnlStaticArray< 3, Element >& operator = ( const tnlStaticArray< 3, Element >& array ); template< typename Array > __cuda_callable__ tnlStaticArray< 3, Element >& operator = ( const Array& array ); template< typename Array > __cuda_callable__ bool operator == ( const Array& array ) const; template< typename Array > __cuda_callable__ bool operator != ( const Array& array ) const; void setValue( const ElementType& val ); Loading
src/core/arrays/tnlStaticArray1D_impl.h +4 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,7 @@ const Element& tnlStaticArray< 1, Element >::x() const } template< typename Element > __cuda_callable__ tnlStaticArray< 1, Element >& tnlStaticArray< 1, Element >::operator = ( const tnlStaticArray< 1, Element >& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -119,6 +120,7 @@ tnlStaticArray< 1, Element >& tnlStaticArray< 1, Element >::operator = ( const t template< typename Element > template< typename Array > __cuda_callable__ tnlStaticArray< 1, Element >& tnlStaticArray< 1, Element >::operator = ( const Array& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -127,6 +129,7 @@ tnlStaticArray< 1, Element >& tnlStaticArray< 1, Element >::operator = ( const A template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 1, Element >::operator == ( const Array& array ) const { return( ( int ) size == ( int ) Array::size && data[ 0 ] == array[ 0 ] ); Loading @@ -134,6 +137,7 @@ bool tnlStaticArray< 1, Element >::operator == ( const Array& array ) const template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 1, Element >::operator != ( const Array& array ) const { return ! this->operator == ( array ); Loading
src/core/arrays/tnlStaticArray2D_impl.h +4 −0 Original line number Diff line number Diff line Loading @@ -136,6 +136,7 @@ const Element& tnlStaticArray< 2, Element >::y() const } template< typename Element > __cuda_callable__ tnlStaticArray< 2, Element >& tnlStaticArray< 2, Element >::operator = ( const tnlStaticArray< 2, Element >& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -145,6 +146,7 @@ tnlStaticArray< 2, Element >& tnlStaticArray< 2, Element >::operator = ( const t template< typename Element > template< typename Array > __cuda_callable__ tnlStaticArray< 2, Element >& tnlStaticArray< 2, Element >::operator = ( const Array& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -154,6 +156,7 @@ tnlStaticArray< 2, Element >& tnlStaticArray< 2, Element >::operator = ( const A template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 2, Element >::operator == ( const Array& array ) const { return( ( int ) size == ( int ) Array::size && Loading @@ -163,6 +166,7 @@ bool tnlStaticArray< 2, Element >::operator == ( const Array& array ) const template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 2, Element >::operator != ( const Array& array ) const { return ! this->operator == ( array ); Loading
src/core/arrays/tnlStaticArray3D_impl.h +4 −0 Original line number Diff line number Diff line Loading @@ -153,6 +153,7 @@ const Element& tnlStaticArray< 3, Element >::z() const return data[ 2 ]; } template< typename Element > __cuda_callable__ tnlStaticArray< 3, Element >& tnlStaticArray< 3, Element >::operator = ( const tnlStaticArray< 3, Element >& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -163,6 +164,7 @@ tnlStaticArray< 3, Element >& tnlStaticArray< 3, Element >::operator = ( const t template< typename Element > template< typename Array > __cuda_callable__ tnlStaticArray< 3, Element >& tnlStaticArray< 3, Element >::operator = ( const Array& array ) { data[ 0 ] = array[ 0 ]; Loading @@ -173,6 +175,7 @@ tnlStaticArray< 3, Element >& tnlStaticArray< 3, Element >::operator = ( const A template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 3, Element >::operator == ( const Array& array ) const { return( ( int ) size == ( int ) Array::size && Loading @@ -183,6 +186,7 @@ bool tnlStaticArray< 3, Element >::operator == ( const Array& array ) const template< typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< 3, Element >::operator != ( const Array& array ) const { return ! this->operator == ( array ); Loading
src/core/arrays/tnlStaticArray_impl.h +4 −0 Original line number Diff line number Diff line Loading @@ -100,6 +100,7 @@ Element& tnlStaticArray< Size, Element >::operator[]( int i ) } template< int Size, typename Element > __cuda_callable__ tnlStaticArray< Size, Element >& tnlStaticArray< Size, Element >::operator = ( const tnlStaticArray< Size, Element >& array ) { for( int i = 0; i < size; i++ ) Loading @@ -109,6 +110,7 @@ tnlStaticArray< Size, Element >& tnlStaticArray< Size, Element >::operator = ( c template< int Size, typename Element > template< typename Array > __cuda_callable__ tnlStaticArray< Size, Element >& tnlStaticArray< Size, Element >::operator = ( const Array& array ) { for( int i = 0; i < size; i++ ) Loading @@ -118,6 +120,7 @@ tnlStaticArray< Size, Element >& tnlStaticArray< Size, Element >::operator = ( c template< int Size, typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< Size, Element >::operator == ( const Array& array ) const { if( ( int ) size != ( int ) Array::size ) Loading @@ -130,6 +133,7 @@ bool tnlStaticArray< Size, Element >::operator == ( const Array& array ) const template< int Size, typename Element > template< typename Array > __cuda_callable__ bool tnlStaticArray< Size, Element >::operator != ( const Array& array ) const { return ! this->operator == ( array ); Loading