git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2019 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
39bfc0d05d
commit
2eb04d2eff
4 changed files with 36 additions and 31 deletions
|
|
@ -48,10 +48,17 @@ public:
|
|||
*/
|
||||
|
||||
moIndexSwapNeighbor() :
|
||||
moIndexNeighbor<EOT> (), Kswap(0) {
|
||||
moIndexNeighbor<EOT> () {
|
||||
Kswap = 0;
|
||||
indices = new unsigned int[Kswap + 1];
|
||||
}
|
||||
|
||||
/* moIndexSwapNeighbor(unsigned int _Kswap) :
|
||||
moIndexNeighbor<EOT> () {
|
||||
Kswap = _Kswap;
|
||||
indices = new unsigned int[Kswap + 1];
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
*/
|
||||
|
|
@ -78,8 +85,9 @@ public:
|
|||
moIndexSwapNeighbor(const moIndexSwapNeighbor& _n) :
|
||||
moIndexNeighbor<EOT> (_n) {
|
||||
this->Kswap = _n.Kswap;
|
||||
this->indices=new unsigned int[_n.Kswap + 1];;
|
||||
for (unsigned int i = 0; i <= _n.Kswap; i++)
|
||||
this->indices = new unsigned int[Kswap + 1];
|
||||
;
|
||||
for (unsigned int i = 0; i <= Kswap; i++)
|
||||
this->indices[i] = _n.indices[i];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue