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  struct Data {
12  std::map<QString, std::vector<char>> map;
13  };
14  std::shared_ptr<Data> d;
15  GitCommandCache(bool make = false);
16  operator bool() const;
17 
18  std::vector<char> *find(QString const &key);
19  void insert(QString const &key, std::vector<char> const &value);
20 
21  void clear();
22 };
23 
24 
25 #endif // GITCOMMANDCACHE_H
Definition: GitCommandCache.h:9
void insert(QString const &key, std::vector< char > const &value)
Definition: GitCommandCache.cpp:28
void clear()
Definition: GitCommandCache.cpp:34
std::shared_ptr< Data > d
Definition: GitCommandCache.h:14
std::vector< char > * find(QString const &key)
Definition: GitCommandCache.cpp:18
GitCommandCache(bool make=false)
Definition: GitCommandCache.cpp:6
Definition: GitCommandCache.h:11
std::map< QString, std::vector< char > > map
Definition: GitCommandCache.h:12