Skip to content
Snippets Groups Projects
Select Git revision
  • f15b6a32f63b92f5617954da04b460e572cbda05
  • master default protected
  • fix-words-ann
  • wccl-rules-migration
  • develop
5 results

libcclfunctionaloperator.i

Blame
  • user avatar
    Paweł Kędzia authored
    0c536115
    History
    libcclfunctionaloperator.i 976 B
    #ifndef SWIG_LIBWCCL_FUNCTIONALOPERATOR_I
    #define SWIG_LIBWCCL_FUNCTIONALOPERATOR_I
    
    %module libcclfunctionaloperator
    %{
      #include <libwccl/ops/operator.h>
    %}
    
    %include "libcclvalue.i"
    %include "libcclvariables.i"
    %include "libcclsentencecontext.i"
    %include "libcclparsedexpression.i"
    
    %include "std_string.i"
    %include "boost_shared_ptr.i"
    
    namespace Wccl {
      class FunctionalOperator : public ParsedExpression {
      public:
        // virtual boost::shared_ptr<const Value> base_apply(const SentenceContext& sc) = 0;
        boost::shared_ptr<FunctionalOperator> clone_ptr() const;
        boost::shared_ptr<FunctionalOperator> clone_clean_ptr() const;
    
      protected:
        explicit FunctionalOperator(const Variables& variables);
        FunctionalOperator* clone_internal() const = 0;
      };
    }
    
    %template (FunctionalOperatorSharedPtr) boost::shared_ptr<Wccl::FunctionalOperator>;
    
    using namespace boost;
    using namespace std;
    using namespace Wccl;
    
    #endif /* SWIG_LIBWCCL_FUNCTIONALOPERATOR_I */