Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1.  
  2. struct BaseLink
  3. {
  4.  
  5.     auto export()
  6.     {
  7.         //does not use mPrimaryFrame
  8.     }
  9.  
  10.     auto getPrimaryFrame() const
  11.         -> Frame
  12.     {
  13.         return mPrimaryFrame;        
  14.     }
  15.  
  16.     Frame mPrimaryFrame;
  17. };
  18.  
  19. struct Manipulator
  20. {
  21.     auto getBaseLink() const
  22.         -> BaseLink;
  23.  
  24.     auto export() const
  25.         -> EcIndividualManipulator
  26. };
  27.  
  28.  
  29. auto createStatedSystem(EcIndividualManipulator)
  30.     -> EcStatedSystem;
  31.  
  32. auto export(const Manipulator& m)
  33. {
  34.     auto individualManipulator = m->export();
  35.     auto primaryFrame = m->getBaseLink().getPrimaryFrame();
  36.  
  37.     return createStatedSystem(individualManipulator, primaryFrame);
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement