FBasicParticle.hpp 1.39 KB
Newer Older
1
// ===================================================================================
2 3 4 5 6 7 8 9
// Logiciel initial: ScalFmm Version 0.5
// Co-auteurs : Olivier Coulaud, Bérenger Bramas.
// Propriétaires : INRIA.
// Copyright © 2011-2012, diffusé sous les termes et conditions d’une licence propriétaire.
// Initial software: ScalFmm Version 0.5
// Co-authors: Olivier Coulaud, Bérenger Bramas.
// Owners: INRIA.
// Copyright © 2011-2012, spread under the terms and conditions of a proprietary license.
10
// ===================================================================================
11 12
#ifndef FBASICPARTICLE_HPP
#define FBASICPARTICLE_HPP
13

14

15
#include "../Extensions/FExtendPosition.hpp"
16 17 18 19 20 21 22 23 24 25 26 27 28 29

/**
* @author Berenger Bramas (berenger.bramas@inria.fr)
* @class FBasicParticle
* Please read the license
*
* This class defines a basic particle used for examples. It extends
* the mininum, only what is needed by FOctree and FFmmAlgorithm
* to make the things working.
* By using this extension it will implement the FAbstractParticle without
* inheriting from it.
*/
class FBasicParticle : public FExtendPosition{
public:
30
    /** Save the current cell in a buffer */
31 32 33
    void save(FBufferWriter& buffer) const{
        FExtendPosition::save(buffer);
    }
34
    /** Restore the current cell from a buffer */
35 36
    void restore(FBufferReader& buffer){
        FExtendPosition::restore(buffer);
37 38 39 40 41 42
    }
};


#endif //FBASICPARTICLE_HPP

43