Lunchbox  1.17.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
lunchbox::Array< T > Class Template Reference

A wrapper for C arrays without any memory management. More...

#include <array.h>

+ Collaboration diagram for lunchbox::Array< T >:

Public Member Functions

 Array (T *data_, const size_t num_)
 Create a new array wrapper for the given data. More...
 
size_t getNumBytes () const
 
template<>
size_t getNumBytes () const
 
template<>
size_t getNumBytes () const
 

Public Attributes

T * data
 The data.
 
size_t num
 The number of elements in the data.
 

Detailed Description

template<class T>
class lunchbox::Array< T >

A wrapper for C arrays without any memory management.

Definition at line 30 of file array.h.

Constructor & Destructor Documentation

template<class T >
lunchbox::Array< T >::Array ( T *  data_,
const size_t  num_ 
)
inline

Create a new array wrapper for the given data.

Version
1.9.1

Definition at line 34 of file array.h.

Member Function Documentation

template<class T >
size_t lunchbox::Array< T >::getNumBytes ( ) const
inline
Returns
the number of bytes stored in the pointer.
Version
1.9.1

Definition at line 41 of file array.h.

References lunchbox::Array< T >::num.


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