Skip to content
Snippets Groups Projects

Resolve "New data structure for storing stateblocks"

Merged Joan Solà Ortega requested to merge 256-new-data-structure-for-storing-stateblocks into devel
1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
@@ -27,6 +27,15 @@ class HasStateBlocks
@@ -27,6 +27,15 @@ class HasStateBlocks
void appendToStructure(const std::string& _frame_type){structure_ += _frame_type;}
void appendToStructure(const std::string& _frame_type){structure_ += _frame_type;}
const std::map<std::string, StateBlockPtr>& getStateBlockMap() const;
const std::map<std::string, StateBlockPtr>& getStateBlockMap() const;
std::map<std::string, StateBlockPtr>& getStateBlockMap();
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;
 
}
public:
public:
// Some typical shortcuts -- not all should be coded here, see notes below.
// Some typical shortcuts -- not all should be coded here, see notes below.
Loading