<commit_before>#pragma once

#include <map>
#include <memory>
#include <string>

#include "table.hpp"

namespace opossum {

class StorageManager {
 public:
  static StorageManager &get();

  void add_table(const std::string &name, std::shared_ptr<Table> tp);
  void drop_table(const std::string &name);
  std::shared_ptr<Table> get_table(const std::string &name) const;
  void print(std::ostream &out = std::cout) const;

 protected:
  StorageManager() {}
  StorageManager(StorageManager const &) = delete;
  StorageManager(StorageManager &&) = delete;

  std::map<std::string, std::shared_ptr<Table>> _tables;
};
}  // namespace opossum<commit_msg>Add TODO to storage_manager about ctor consistency<commit_after>#pragma once

#include <map>
#include <memory>
#include <string>

#include "table.hpp"

namespace opossum {

class StorageManager {
 public:
  static StorageManager &get();

  void add_table(const std::string &name, std::shared_ptr<Table> tp);
  void drop_table(const std::string &name);
  std::shared_ptr<Table> get_table(const std::string &name) const;
  void print(std::ostream &out = std::cout) const;

 protected:
  StorageManager() {}
  StorageManager(StorageManager const &) = delete;
  StorageManager(StorageManager &&) = delete;
  // TODO(anyone): deleted/default ctors/dtors should be under consistent visibility rules everywhere

  std::map<std::string, std::shared_ptr<Table>> _tables;
};
}  // namespace opossum
{'fraction_non_alphanumeric': 0.13430758524704245, 'fraction_numerical': 0.0, 'mean_word_length': 5.980582524271845, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5432198', 'n_tokens_mistral': 452, 'n_tokens_neox': 446, 'n_words': 115}