Lunchbox  1.11.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 29 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 33 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 36 of file array.h.

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


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