Takes ownership of the given pointer. Subclasses can use this method if they don't want to implement their own ownership semantics.
| 63 | // Takes ownership of the given pointer. Subclasses can use this method if |
| 64 | // they don't want to implement their own ownership semantics. |
| 65 | Message* Store(Message* n) { |
| 66 | children_.emplace_back(n); |
| 67 | return n; |
| 68 | } |
| 69 | |
| 70 | // Returns a list of all owned submessages. |
| 71 | const std::vector<std::unique_ptr<Message>>& Children() const { |