Collage  0.6.1
Public Member Functions | Public Attributes
co::Array< T > Class Template Reference

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

#include <array.h>

List of all members.

Public Member Functions

 Array (T *data_, const size_t num_)
 Create a new array wrapper for the given data.
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 26 of file array.h.


Constructor & Destructor Documentation

template<class T >
co::Array< T >::Array ( T *  data_,
const size_t  num_ 
) [inline, explicit]

Create a new array wrapper for the given data.

Version:
1.0

Definition at line 30 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 34 of file array.h.

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


The documentation for this class was generated from the following file:
Generated on Mon Nov 26 2012 14:41:44 for Collage 0.6.1 by  doxygen 1.7.6.1