PanNDE
All Classes Namespaces Functions Pages
Public Member Functions | List of all members
PanNDE::Array< T > Class Template Referenceabstract
Inheritance diagram for PanNDE::Array< T >:
HostData::HostArray< T >

Public Member Functions

virtual T & at (int64_t idx)=0
 
virtual int64_t size ()=0
 
virtual T * data ()=0
 
virtual void resize (int64_t newsize)=0
 
virtual void copy (PanNDE::Array< T > *other)=0
 
virtual void copy (std::shared_ptr< PanNDE::Array< T >> other)=0
 
virtual void copy (CArray< T > &other)=0
 
virtual const CArray< T > getCArray ()=0
 

Member Function Documentation

◆ at()

template<typename T >
virtual T& PanNDE::Array< T >::at ( int64_t  idx)
pure virtual

Get array value by reference.

Parameters
idxarray index to access

Implemented in HostData::HostArray< T >.

◆ copy() [1/3]

template<typename T >
virtual void PanNDE::Array< T >::copy ( CArray< T > &  other)
pure virtual

Copy other array to the local array. This is not recommended for general use, CArray has no overrun protections. This is primarily for inter-process or device communications where low-level access is required.

Parameters
otherreference to Carray wrapped struct for copy.

Implemented in HostData::HostArray< T >.

◆ copy() [2/3]

template<typename T >
virtual void PanNDE::Array< T >::copy ( PanNDE::Array< T > *  other)
pure virtual

Copy other array to the local array

Parameters
otherC-pointer to source array for copy.

Implemented in HostData::HostArray< T >.

◆ copy() [3/3]

template<typename T >
virtual void PanNDE::Array< T >::copy ( std::shared_ptr< PanNDE::Array< T >>  other)
pure virtual

Copy other array to the local array

Parameters
othershared pointer to source array for copy.

◆ data()

template<typename T >
virtual T* PanNDE::Array< T >::data ( )
pure virtual

Get C-pointer to head of array. Only use when low-level access is required.

Implemented in HostData::HostArray< T >.

◆ getCArray()

template<typename T >
virtual const CArray<T> PanNDE::Array< T >::getCArray ( )
pure virtual

Get array data as CArray struct. This is not recommended for general use, CArray has no overrun protections. This is primarily for inter-process or device communications where low-level access is required.

Implemented in HostData::HostArray< T >.

◆ resize()

template<typename T >
virtual void PanNDE::Array< T >::resize ( int64_t  newsize)
pure virtual

Resize array. Array contents not guaranteed to be preserved

Parameters
newsizenew size of array.

Implemented in HostData::HostArray< T >.

◆ size()

template<typename T >
virtual int64_t PanNDE::Array< T >::size ( )
pure virtual

Get array size.

Implemented in HostData::HostArray< T >.


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