Line | |
---|
1 | #include "mask.hpp" |
---|
2 | |
---|
3 | namespace 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.