From 71c030ac236371985b9ee3efd1ade64147a38d4e Mon Sep 17 00:00:00 2001 From: Joan Sola <jsola@iri.upc.edu> Date: Mon, 13 Jan 2020 15:08:16 +0100 Subject: [PATCH] Move implementation to inline section in .h --- include/core/state_block/has_state_blocks.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/include/core/state_block/has_state_blocks.h b/include/core/state_block/has_state_blocks.h index 6930a3524..5594d05d0 100644 --- a/include/core/state_block/has_state_blocks.h +++ b/include/core/state_block/has_state_blocks.h @@ -27,15 +27,7 @@ class HasStateBlocks void appendToStructure(const std::string& _frame_type){structure_ += _frame_type;} const std::map<std::string, StateBlockPtr>& getStateBlockMap() const; std::map<std::string, StateBlockPtr>& getStateBlockMap(); - std::vector<StateBlockPtr> getStateBlockVec() const - { - std::vector<StateBlockPtr> sbv; - for (auto& key : structure_) - { - sbv.push_back(getStateBlock(key)); - } - return sbv; - } + std::vector<StateBlockPtr> getStateBlockVec() const; public: // Some typical shortcuts -- not all should be coded here, see notes below. @@ -114,6 +106,17 @@ inline std::map<std::string, StateBlockPtr>& HasStateBlocks::getStateBlockMap() return state_block_map_; } +inline std::vector<StateBlockPtr> HasStateBlocks::getStateBlockVec() const +{ + std::vector<StateBlockPtr> sbv; + for (auto& key : structure_) + { + sbv.push_back(getStateBlock(key)); + } + return sbv; +} + + inline const std::map<std::string, StateBlockPtr>& HasStateBlocks::getStateBlockMap() const { return state_block_map_; -- GitLab