Guitar
GitCommandCache.h
Go to the documentation of this file.
1 #ifndef GITCOMMANDCACHE_H
2 #define GITCOMMANDCACHE_H
3 
4 #include <QString>
5 #include <map>
6 #include <memory>
7 #include <vector>
8 
10 public:
11 private:
12  struct Data {
13  std::map<QString, std::vector<char>> map;
14  };
15  std::shared_ptr<Data> d;
16 public:
18 
19  std::vector<char> *find(QString const &key);
20  void insert(QString const &key, std::vector<char> const &value);
21 
22  void clear();
23 };
24 
25 
26 #endif // GITCOMMANDCACHE_H
Definition: GitCommandCache.h:9
void insert(QString const &key, std::vector< char > const &value)
Definition: GitCommandCache.cpp:18
void clear()
Definition: GitCommandCache.cpp:24
std::shared_ptr< Data > d
Definition: GitCommandCache.h:15
GitCommandCache()
Definition: GitCommandCache.cpp:3
std::vector< char > * find(QString const &key)
Definition: GitCommandCache.cpp:8
Definition: GitCommandCache.h:12
std::map< QString, std::vector< char > > map
Definition: GitCommandCache.h:13