MUQ  0.4.3
IdentityPiece.h
Go to the documentation of this file.
1 #ifndef IDENTITYPIECE_H_
2 #define IDENTITYPIECE_H_
3 
5 
6 namespace muq {
7  namespace Modeling {
9  class IdentityPiece : public WorkPiece {
10  public:
11 
13  IdentityPiece();
14 
16 
19  IdentityPiece(int const num);
20 
22 
25  IdentityPiece(std::vector<std::string> const& types);
26 
28 
31  IdentityPiece(std::map<unsigned int, std::string> const& types);
32 
34 
38  IdentityPiece(std::map<unsigned int, std::string> const& types, unsigned int const num);
39 
40  private:
41 
45  virtual void EvaluateImpl(muq::Modeling::ref_vector<boost::any> const& inputs) override;
46 
47  };
48  } // namespace Modeling
49 } // namespace muq
50 
51 #endif
A muq::Modeling::WorkPiece that returns its inputs (identity operator)
Definition: IdentityPiece.h:9
virtual void EvaluateImpl(muq::Modeling::ref_vector< boost::any > const &inputs) override
IdentityPiece()
Create a muq::Modeling::IdentityPiece with no fixed number of inputs and outputs and variable input/o...
Base class for MUQ's modelling envronment.
Definition: WorkPiece.h:40
std::vector< std::reference_wrapper< const T > > ref_vector
A vector of references to something ...
Definition: WorkPiece.h:37