OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
vec< T, Length > Class Template Reference

#include <Vec.h>

Inheritance diagram for vec< T, Length >:
Collaboration diagram for vec< T, Length >:

Public Member Functions

 vec ()
 vec (T v0)
 vec (T v0, T v1)
 vec (T v0, T v1, T v2)
T & operator[] (unsigned d)
const T & operator[] (unsigned d) const
MessageputMessage (Message &m)
MessagegetMessage (Message &m)

Static Public Member Functions

static T dot (const T *, const T *)

Private Attributes

Ptr [Length]

Detailed Description

template<class T, unsigned Length>
class vec< T, Length >

Definition at line 21 of file Vec.h.

Constructor & Destructor Documentation

◆ vec() [1/4]

template<class T, unsigned Length>
vec< T, Length >::vec ( )
inline

Definition at line 24 of file Vec.h.

◆ vec() [2/4]

template<class T, unsigned Length>
vec< T, Length >::vec ( T v0)
inline

Definition at line 48 of file Vec.h.

References CTAssert, and Ptr.

◆ vec() [3/4]

template<class T, unsigned Length>
vec< T, Length >::vec ( T v0,
T v1 )
inline

Definition at line 56 of file Vec.h.

References CTAssert, and Ptr.

◆ vec() [4/4]

template<class T, unsigned Length>
vec< T, Length >::vec ( T v0,
T v1,
T v2 )
inline

Definition at line 65 of file Vec.h.

References CTAssert, and Ptr.

Member Function Documentation

◆ dot()

template<class T, unsigned Length>
T vec< T, Length >::dot ( const T * l,
const T * r )
inlinestatic

Definition at line 81 of file Vec.h.

Referenced by BrickIterator< T, Dim >::offset().

◆ getMessage()

template<class T, unsigned Length>
Message & vec< T, Length >::getMessage ( Message & m)
inline

Definition at line 34 of file Vec.h.

References Message::get_iter(), and Ptr.

Here is the call graph for this function:

◆ operator[]() [1/2]

template<class T, unsigned Length>
T & vec< T, Length >::operator[] ( unsigned d)
inline

Definition at line 28 of file Vec.h.

References Ptr.

◆ operator[]() [2/2]

template<class T, unsigned Length>
const T & vec< T, Length >::operator[] ( unsigned d) const
inline

Definition at line 29 of file Vec.h.

References Ptr.

◆ putMessage()

template<class T, unsigned Length>
Message & vec< T, Length >::putMessage ( Message & m)
inline

Definition at line 30 of file Vec.h.

References Ptr, and Message::put().

Here is the call graph for this function:

Member Data Documentation

◆ Ptr

template<class T, unsigned Length>
T vec< T, Length >::Ptr[Length]
private

Definition at line 41 of file Vec.h.

Referenced by getMessage(), operator[](), operator[](), putMessage(), vec(), vec(), and vec().


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