Collage  1.0.1
Object-Oriented C++ Network Library
Public Member Functions | Public Attributes | List of all members
co::Array< T > Class Template Reference

A wrapper to (de)serialize arrays. More...

#include <array.h>

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 *const data
 The data.
 
const size_t num
 The number of elements in the data.
 

Detailed Description

template<class T>
class co::Array< T >

A wrapper to (de)serialize arrays.

Definition at line 28 of file array.h.

Constructor & Destructor Documentation

template<class T>
co::Array< T >::Array ( T *  data_,
const size_t  num_ 
)
inlineexplicit

Create a new array wrapper for the given data.

Version
1.0

Definition at line 32 of file array.h.

Member Function Documentation

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

Definition at line 36 of file array.h.

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


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