cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes
avx_ptr< T, lgBC > Class Template Reference

#include <vectorize.h>

Collaboration diagram for avx_ptr< T, lgBC >:
Collaboration graph
[legend]

Public Types

typedef T & reference
 
typedef const T & const_reference
 

Public Member Functions

 avx_ptr (long size)
 
 avx_ptr (long begin, long end)
 
 ~avx_ptr ()
 
reference operator[] (long i)
 
const_reference operator[] (long i) const
 
T * data ()
 
const T * data () const
 
T * ptr0 ()
 
const T * ptr0 () const
 

Private Member Functions

 avx_ptr ()
 
void p_alloc (long begin, long end)
 

Private Attributes

long p_begin
 
long p_end
 
T * p_ptr_alloc
 
T * p_ptr
 

Detailed Description

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
class avx_ptr< T, lgBC >

Definition at line 170 of file vectorize.h.

Member Typedef Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef const T& avx_ptr< T, lgBC >::const_reference

Definition at line 205 of file vectorize.h.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
typedef T& avx_ptr< T, lgBC >::reference

Definition at line 204 of file vectorize.h.

Constructor & Destructor Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
avx_ptr< T, lgBC >::avx_ptr ( )
inlineprivate
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
avx_ptr< T, lgBC >::avx_ptr ( long  size)
inlineexplicit

Definition at line 207 of file vectorize.h.

References avx_ptr< T, lgBC >::p_alloc().

Here is the call graph for this function:

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
avx_ptr< T, lgBC >::avx_ptr ( long  begin,
long  end 
)
inline

Definition at line 211 of file vectorize.h.

References avx_ptr< T, lgBC >::p_alloc().

Here is the call graph for this function:

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
avx_ptr< T, lgBC >::~avx_ptr ( )
inline

Definition at line 215 of file vectorize.h.

References t_avx_pool::avx_free(), and avx_ptr< T, lgBC >::p_ptr_alloc.

Here is the call graph for this function:

Member Function Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
T* avx_ptr< T, lgBC >::data ( )
inline

Definition at line 232 of file vectorize.h.

References avx_ptr< T, lgBC >::p_ptr_alloc.

Referenced by GrainMakeDiffuse(), and y2s().

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const T* avx_ptr< T, lgBC >::data ( ) const
inline

Definition at line 236 of file vectorize.h.

References avx_ptr< T, lgBC >::p_ptr_alloc.

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
reference avx_ptr< T, lgBC >::operator[] ( long  i)
inline

Definition at line 220 of file vectorize.h.

References OUT_OF_RANGE(), avx_ptr< T, lgBC >::p_end, and avx_ptr< T, lgBC >::p_ptr.

Here is the call graph for this function:

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const_reference avx_ptr< T, lgBC >::operator[] ( long  i) const
inline

Definition at line 226 of file vectorize.h.

References OUT_OF_RANGE(), avx_ptr< T, lgBC >::p_end, and avx_ptr< T, lgBC >::p_ptr.

Here is the call graph for this function:

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
void avx_ptr< T, lgBC >::p_alloc ( long  begin,
long  end 
)
inlineprivate
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
T* avx_ptr< T, lgBC >::ptr0 ( )
inline
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
const T* avx_ptr< T, lgBC >::ptr0 ( ) const
inline

Definition at line 244 of file vectorize.h.

References avx_ptr< T, lgBC >::p_ptr.

Field Documentation

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
long avx_ptr< T, lgBC >::p_begin
private

Definition at line 172 of file vectorize.h.

Referenced by avx_ptr< T, lgBC >::avx_ptr(), and avx_ptr< T, lgBC >::p_alloc().

template<class T, bool lgBC = lgBOUNDSCHECKVAL>
long avx_ptr< T, lgBC >::p_end
private
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
T* avx_ptr< T, lgBC >::p_ptr
private
template<class T, bool lgBC = lgBOUNDSCHECKVAL>
T* avx_ptr< T, lgBC >::p_ptr_alloc
private

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