source: XMLIO_V2/dev/dev_rv/src/mask.cpp @ 148

Last change on this file since 148 was 141, checked in by hozdoba, 13 years ago

Mise à jour depuis un autre dépôt

File size: 729 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   { return (SuperClass::data()); }
26
27   //---------------------------------------------------------------
28
29} // namespace xmlioserver
Note: See TracBrowser for help on using the repository browser.