smart_ptr.cpp
Go to the documentation of this file.
00001 /* Generated from orogen/lib/orogen/templates/typekit/smart_ptr.cpp */
00002 
00003 <%= into.arg_type %> orogen_typekits::toIntermediate(<%= from.arg_type %> real_type)
00004 {
00005     return *real_type;
00006 }
00007 bool orogen_typekits::fromIntermediate(<%= from.ref_type %> real_type, <%= into.cxx_name %>* intermediate)
00008 {
00009     if (real_type.get() != intermediate)
00010         real_type.reset(intermediate);
00011     return true; // the smart pointer took ownership of the pointer
00012 }


orogen
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Wed Sep 16 2015 10:36:40