All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
carray3d.h
Go to the documentation of this file.
1 /* carray3d.h
2  */
3 #ifndef OSL_MISC_CARRAY3D_H
4 #define OSL_MISC_CARRAY3D_H
5 
6 #include "osl/misc/carray.h"
7 #include "osl/misc/carray2d.h"
8 namespace osl
9 {
10  namespace misc
11  {
12  template <class T, size_t Capacity1, size_t Capacity2, size_t Capacity3>
13  struct CArray3d
14  : public CArray<CArray2d<T,Capacity2,Capacity3>,Capacity1>
15  {
17  void fill(T value=T()){
18  for (size_t i=0; i<Capacity1; i++)
19  base_t::operator[](i).fill(value);
20  }
21  };
22  }
23  using misc::CArray3d;
24 }
25 
26 #endif /* OSL_MISC_CARRAY3D_H */
27 // ;;; Local Variables:
28 // ;;; mode:c++
29 // ;;; c-basic-offset:2
30 // ;;; End: