source: XMLIO_V2/dev/dev_rv/src/xmlio/mask.cpp @ 157

Last change on this file since 157 was 157, checked in by hozdoba, 13 years ago
File size: 739 bytes
Line 
1#include "mask.hpp"
2
3namespace xmlioserver
4{
5   /// ////////////////////// Définitions ////////////////////// ///
6
7   CMask::CMask(void)
8      : CArray<int, 2>(boost::extents[10][10])
9   { /* Ne rien faire de plus */ }
10
11   CMask::~CMask(void)
12   { /* Ne rien faire de plus */ }
13
14   //---------------------------------------------------------------
15
16   void CMask::resize(int ni, int nj)
17   {
18      SuperClass::resize(boost::extents[ni][nj]);
19      for (int i = 0; i < ni; i++)
20         for (int j = 0; j < nj; j++)
21            (*this)[i][j] = 1;
22   }
23
24   const int * CMask::getData(void) const
25   { 
26      return (SuperClass::data());
27   }
28
29   //---------------------------------------------------------------
30
31} // namespace xmlioserver
Note: See TracBrowser for help on using the repository browser.