Commit 40b472cc authored by flforget's avatar flforget
Browse files

Optimization, use of reference instead of value

parent 72941d36
......@@ -22,12 +22,12 @@ private:
protected:
// accessors //
public:
virtual stateVec_t getlx()=0;
virtual stateMat_t getlxx()=0;
virtual commandVec_t getlu()=0;
virtual commandMat_t getluu()=0;
virtual commandR_stateC_t getlux()=0;
virtual stateR_commandC_t getlxu()=0;
virtual stateVec_t& getlx()=0;
virtual stateMat_t& getlxx()=0;
virtual commandVec_t& getlu()=0;
virtual commandMat_t& getluu()=0;
virtual commandR_stateC_t& getlux()=0;
virtual stateR_commandC_t& getlxu()=0;
};
#endif // COSTFUNCTION_H
......@@ -37,12 +37,12 @@ private:
protected:
// accessors //
public:
stateVec_t getlx();
stateMat_t getlxx();
commandVec_t getlu();
commandMat_t getluu();
commandR_stateC_t getlux();
stateR_commandC_t getlxu();
stateVec_t& getlx();
stateMat_t& getlxx();
commandVec_t& getlu();
commandMat_t& getluu();
commandR_stateC_t& getlux();
stateR_commandC_t& getlxu();
};
#endif // COSTFUNCTIONROMEOACTUATOR_H
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment