Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

gslib::glsl_math::vector_mixin< SubClass, Size > Struct Template Reference

this class implements vector common member More...

#include <glsl_math.h>

Inheritance diagram for gslib::glsl_math::vector_mixin< SubClass, Size >:

Inheritance graph
[legend]
Collaboration diagram for gslib::glsl_math::vector_mixin< SubClass, Size >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

SubClass & operator *= (value_type v)
SubClass operator * (value_type v) const
SubClass & operator/= (value_type v)
SubClass operator/ (value_type v) const
SubClass & operator *= (const tuple< Size > &other)
SubClass operator * (const tuple< Size > &other)
SubClass & operator/= (const tuple< Size > &other)
SubClass operator/ (const tuple< Size > &other)

Detailed Description

template<typename SubClass, size_t Size>
struct gslib::glsl_math::vector_mixin< SubClass, Size >

this class implements vector common member

Definition at line 247 of file glsl_math.h.


Member Function Documentation

template<typename SubClass, size_t Size>
SubClass gslib::glsl_math::vector_mixin< SubClass, Size >::operator * const tuple< Size > &  other  )  [inline]
 

Definition at line 266 of file glsl_math.h.

00266                                                                {
00267                 SubClass result( *this );
00268                 result *= other;
00269                 return result;
00270             }

template<typename SubClass, size_t Size>
SubClass gslib::glsl_math::vector_mixin< SubClass, Size >::operator * value_type  v  )  const [inline]
 

Reimplemented from gslib::glsl_math::tuple_mixin< SubClass, Size >.

Definition at line 251 of file glsl_math.h.

00251                                                        {
00252                 return tuple_mixin< SubClass, Size >::operator * ( v );
00253             }

template<typename SubClass, size_t Size>
SubClass& gslib::glsl_math::vector_mixin< SubClass, Size >::operator *= const tuple< Size > &  other  )  [inline]
 

Definition at line 261 of file glsl_math.h.

00261                                                                  {
00262                 std::transform(
00263                     begin(), end(), other.begin(), begin(), std::multiplies< value_type >() );
00264                 return *static_cast< SubClass* >( this );
00265             }

template<typename SubClass, size_t Size>
SubClass& gslib::glsl_math::vector_mixin< SubClass, Size >::operator *= value_type  v  )  [inline]
 

Reimplemented from gslib::glsl_math::tuple_mixin< SubClass, Size >.

Definition at line 248 of file glsl_math.h.

00248                                                    {
00249                 return tuple_mixin< SubClass, Size >::operator *= ( v );
00250             }

template<typename SubClass, size_t Size>
SubClass gslib::glsl_math::vector_mixin< SubClass, Size >::operator/ const tuple< Size > &  other  )  [inline]
 

Definition at line 276 of file glsl_math.h.

00276                                                                {
00277                 SubClass result( *this );
00278                 result /= other;
00279                 return result;
00280             }

template<typename SubClass, size_t Size>
SubClass gslib::glsl_math::vector_mixin< SubClass, Size >::operator/ value_type  v  )  const [inline]
 

Reimplemented from gslib::glsl_math::tuple_mixin< SubClass, Size >.

Definition at line 257 of file glsl_math.h.

00257                                                        {
00258                 return tuple_mixin< SubClass, Size >::operator / ( v );
00259             }

template<typename SubClass, size_t Size>
SubClass& gslib::glsl_math::vector_mixin< SubClass, Size >::operator/= const tuple< Size > &  other  )  [inline]
 

Definition at line 271 of file glsl_math.h.

00271                                                                  {
00272                 std::transform(
00273                     begin(), end(), other.begin(), begin(), std::divides< value_type >() );
00274                 return *static_cast< SubClass* >( this );
00275             }

template<typename SubClass, size_t Size>
SubClass& gslib::glsl_math::vector_mixin< SubClass, Size >::operator/= value_type  v  )  [inline]
 

Reimplemented from gslib::glsl_math::tuple_mixin< SubClass, Size >.

Definition at line 254 of file glsl_math.h.

00254                                                    {
00255                 return tuple_mixin< SubClass, Size >::operator /= ( v );
00256             }


The documentation for this struct was generated from the following file:
Generated on Fri Dec 24 00:52:06 2004 for glsl_math by doxygen 1.3.6