estar::array< value_t, index_t > Class Template Reference

#include <util.hpp>

List of all members.


Detailed Description

template<typename value_t, typename index_t = size_t>
class estar::array< value_t, index_t >

Simple 2D-array with "self destroying" underlying data.

Note:
If you want to put this into an STL container, wrap it into a boost::shared_ptr to avoid problems with the non-copyable boost::scoped_array fields.


Public Types

typedef boost::scoped_array<
value_t > 
inner_t
typedef boost::scoped_array<
inner_t
outer_t

Public Member Functions

 array (index_t xsize, index_t ysize)
 array (index_t xsize, index_t ysize, const value_t &init)
inner_toperator[] (index_t ix)
const inner_toperator[] (index_t ix) const

Public Attributes

outer_t data


Member Typedef Documentation

template<typename value_t, typename index_t = size_t>
typedef boost::scoped_array<value_t> estar::array< value_t, index_t >::inner_t

template<typename value_t, typename index_t = size_t>
typedef boost::scoped_array<inner_t> estar::array< value_t, index_t >::outer_t


Constructor & Destructor Documentation

template<typename value_t, typename index_t = size_t>
estar::array< value_t, index_t >::array ( index_t  xsize,
index_t  ysize 
) [inline]

template<typename value_t, typename index_t = size_t>
estar::array< value_t, index_t >::array ( index_t  xsize,
index_t  ysize,
const value_t &  init 
) [inline]


Member Function Documentation

template<typename value_t, typename index_t = size_t>
inner_t& estar::array< value_t, index_t >::operator[] ( index_t  ix  )  [inline]

template<typename value_t, typename index_t = size_t>
const inner_t& estar::array< value_t, index_t >::operator[] ( index_t  ix  )  const [inline]


Member Data Documentation

template<typename value_t, typename index_t = size_t>
outer_t estar::array< value_t, index_t >::data


The documentation for this class was generated from the following file:
doxygen SourceForge.net Logo
E* Interpolated Graph Replanner Wed Dec 12 18:55:50 2007