Skip to content

add article about generated C++ interfaces#33

Merged
dirk-thomas merged 1 commit intogh-pagesfrom
generated_cpp_interfaces
Jun 17, 2015
Merged

add article about generated C++ interfaces#33
dirk-thomas merged 1 commit intogh-pagesfrom
generated_cpp_interfaces

Conversation

@dirk-thomas
Copy link
Copy Markdown
Member

No description provided.

@dirk-thomas dirk-thomas added the in progress Actively being worked on (Kanban column) label Jun 16, 2015
@dirk-thomas dirk-thomas self-assigned this Jun 16, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a set__ suffix seems like that most readable and non-colliding name to me.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that already in 4d4b712 but I am not sure I like it.

@dirk-thomas dirk-thomas force-pushed the generated_cpp_interfaces branch from 327b9e9 to ec9a06a Compare June 16, 2015 23:27
@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Jun 16, 2015
@dirk-thomas
Copy link
Copy Markdown
Member Author

I have update the article based on the discussion in the meeting and removed all references to copy / move constructors / assignment operators. Please notice the change of the pointer types.

@ros2/owners Please review.

@esteve
Copy link
Copy Markdown
Member

esteve commented Jun 16, 2015

+1

1 similar comment
@tfoote
Copy link
Copy Markdown
Contributor

tfoote commented Jun 17, 2015

+1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also add auto_ptr here? Or should we remove any of the above?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say no; auto_ptr is deprecated in C++11. The others look fine. People might find it weird that Ptr is now a "raw" pointer rather than a shared pointer, as it is in ROS 1. Not sure what else we could do though. Maybe RawPtr and ConstRawPtr, but I don't really like that either.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 for RawPtr. The definitions in the document for Ptr types looks fine to me.

@wjwwood
Copy link
Copy Markdown
Member

wjwwood commented Jun 17, 2015

+1

@dirk-thomas dirk-thomas force-pushed the generated_cpp_interfaces branch from ec9a06a to 0ed7369 Compare June 17, 2015 16:18
dirk-thomas added a commit that referenced this pull request Jun 17, 2015
add article about generated C++ interfaces
@dirk-thomas dirk-thomas merged commit ba9fe29 into gh-pages Jun 17, 2015
@dirk-thomas dirk-thomas deleted the generated_cpp_interfaces branch June 17, 2015 16:59
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Jun 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants