SOFA plugin: SofaOpenCL  master
Open source framework for multi-physics simuation
sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > > Class Template Reference

#include <OpenCLTypes.h>

Protected Attributes

const container_typevref
 
const value_typedata
 

Public Member Functions

 ReadAccessor (const container_type &container)
 
 ~ReadAccessor ()
 
size_type size () const
 
bool empty () const
 
const container_typeref () const
 
const_reference operator[] (size_type i) const
 
const_iterator begin () const
 
const_iterator end () const
 

Friends

std::ostream & operator<< (std::ostream &os, const ReadAccessor< container_type > &vec)
 

Attribute details

◆ data

template<class T >
const value_type* sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::data
protected

◆ vref

template<class T >
const container_type& sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::vref
protected

Constructor details

◆ ReadAccessor()

template<class T >
sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::ReadAccessor ( const container_type container)
inline

◆ ~ReadAccessor()

template<class T >
sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::~ReadAccessor ( )
inline

Function details

◆ begin()

template<class T >
const_iterator sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::begin ( ) const
inline

◆ empty()

template<class T >
bool sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::empty ( ) const
inline

◆ end()

template<class T >
const_iterator sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::end ( ) const
inline

◆ operator[]()

template<class T >
const_reference sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::operator[] ( size_type  i) const
inline

◆ ref()

template<class T >
const container_type& sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::ref ( ) const
inline

◆ size()

template<class T >
size_type sofa::helper::ReadAccessor< gpu::opencl::OpenCLVector< T > >::size ( ) const
inline

Related details

◆ operator<<

template<class T >
std::ostream& operator<< ( std::ostream &  os,
const ReadAccessor< container_type > &  vec 
)
friend