BlockBase< T, STRIDED > Class Template Reference

#include <block.h>

Detailed Description

template<typename T, Bool STRIDED>
class maxon::BlockBase< T, STRIDED >

Base class for Block.

Public Member Functions

 BlockBase (T *ptr, Int size, Int stride)
 
Int GetCount () const
 
void SetCount (Int cnt)
 

Protected Member Functions

Int PrivateGetStride () const
 

Protected Attributes

T * _ptr
 
Int _size
 
Int _stride
 

Constructor & Destructor Documentation

◆ BlockBase()

BlockBase ( T *  ptr,
Int  size,
Int  stride 
)

Member Function Documentation

◆ GetCount()

Int GetCount ( ) const

Returns the number of elements of this block.

Returns
Number of elements of this block.

◆ SetCount()

void SetCount ( Int  cnt)

Sets the number of elements of this block.

Parameters
[in]cntNumber of elements of this block.

◆ PrivateGetStride()

Int PrivateGetStride ( ) const
protected

Member Data Documentation

◆ _ptr

T* _ptr
protected

◆ _size

Int _size
protected

◆ _stride

Int _stride
protected