FSimpleIndexedLeaf.hpp 951 Bytes
Newer Older
1 2
// See LICENCE file at project root

COULAUD Olivier's avatar
COULAUD Olivier committed
3 4 5 6 7 8 9 10 11 12 13 14
#ifndef FSIMPLELINDEXEAF_HPP
#define FSIMPLELINDEXEAF_HPP


#include "FSimpleLeaf.hpp"

/**
* @author Olivier Coulaud (Olivier.Coulaud@inria.fr)
* @class FSimpleIndexedLeaf
* @brief This class is used as a leaf in simple system (source AND target).
* Here there only one container stores all particles.
*/
15 16
template< class FReal, class ContainerClass >
class FSimpleIndexedLeaf : public FSimpleLeaf<FReal, ContainerClass> {
COULAUD Olivier's avatar
COULAUD Olivier committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

	long int index ; //  Index of the leaf. useful for debug purpose
public:
    /** Default destructor */
    virtual ~FSimpleIndexedLeaf(){
    }

    /**
    * To get all the index of a leaf
    * @return the index of the leaf
    */
    long int getIndex() {
        return this->index;
    }

    /**
    * To set all the index of a leaf
    * @param id the index of the leaf
    */
    void setIndex(const long int &id ) {
        this->index = id;
    }


};


#endif //FSIMPLELEAF_HPP