* copy and assignment operator for state

copy and assignment operator for transition

remove unused const_casts

address comments

check for null in copy constructor

up

use init and fini functions from rcl

remove unused include

* explicitly zero initialize state and transitions

* add todo comment for follow up
This commit is contained in:
Karsten Knese 2017-12-05 22:51:52 -08:00 committed by GitHub
parent c40f3c25c6
commit 6d13bcb0fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 286 additions and 6 deletions

View file

@ -44,9 +44,15 @@ public:
const rcl_lifecycle_state_t * rcl_lifecycle_state_handle,
rcutils_allocator_t allocator = rcutils_get_default_allocator());
RCLCPP_LIFECYCLE_PUBLIC
State(const State & rhs);
RCLCPP_LIFECYCLE_PUBLIC
virtual ~State();
RCLCPP_LIFECYCLE_PUBLIC
State & operator=(const State & rhs);
RCLCPP_LIFECYCLE_PUBLIC
uint8_t
id() const;

View file

@ -51,9 +51,15 @@ public:
const rcl_lifecycle_transition_t * rcl_lifecycle_transition_handle,
rcutils_allocator_t allocator = rcutils_get_default_allocator());
RCLCPP_LIFECYCLE_PUBLIC
Transition(const Transition & rhs);
RCLCPP_LIFECYCLE_PUBLIC
virtual ~Transition();
RCLCPP_LIFECYCLE_PUBLIC
Transition & operator=(const Transition & rhs);
RCLCPP_LIFECYCLE_PUBLIC
uint8_t
id() const;