im com
This commit is contained in:
parent
8168e253a4
commit
a80e9271c8
1 changed files with 36 additions and 0 deletions
36
src/include/high_level_operation.h
Normal file
36
src/include/high_level_operation.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
|
||||
#ifndef __high_level_operation_h__
|
||||
#define __high_level_operation_h__
|
||||
|
||||
#include "base_def.h"
|
||||
#include "dynamic_operation.h"
|
||||
|
||||
namespace MultiArrayTools
|
||||
{
|
||||
|
||||
template <class DOp>
|
||||
class HLOBuilderBase
|
||||
{
|
||||
|
||||
public:
|
||||
virtual DOp mkDOp() const = 0;
|
||||
virtual DynamicExpression mkGetExpr() const = 0;
|
||||
};
|
||||
|
||||
template <class DOp, class Op>
|
||||
class HLOBuilder : public HLOBuilderBase<DOp>
|
||||
{
|
||||
private:
|
||||
Op mOp;
|
||||
public:
|
||||
// ...
|
||||
HLOBuilder(const Op& op) : mOp(op) {}
|
||||
|
||||
auto operator*(const HLOBuilderBase<DOp>& in)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue