//
//  rFunctionLinearExtension.hpp
//  POSet
//
//  Created by Alessandro Avellone on 28/02/25.
//  Copyright © 2025 Alessandro Avellone. All rights reserved.
//

#ifndef rFunctionLinearExtension_hpp
#define rFunctionLinearExtension_hpp

#include "functionLinearExtension.h"
#ifndef R_NO_REMAP
#define R_NO_REMAP
#endif
#include <Rinternals.h>
#include <R.h>

//************************************
//************************************
//************************************

class FLERinterface : public FunctionLinearExtension {
private:
    SEXP __r_function;
public:
    FLERinterface(std::shared_ptr<POSet> poset, SEXP r_function);
    void operator()(std::shared_ptr<LinearExtension> x);
};

#endif /* rFunctionLinearExtension_hpp */
