Drake
cache.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace drake {
4 namespace systems {
5 
6 // This is a placeholder.
7 // TODO(david-german-tri): Add actual functionality.
8 template <typename T>
9 class Cache {
10  public:
11  Cache() {}
12  virtual ~Cache() {}
13 
14  // Cache objects are copyable with the default copy constructor.
15  Cache(const Cache& other) = default;
16  Cache& operator=(const Cache& other) = default;
17 
18  private:
19  // Cache objects are not moveable.
20  Cache(Cache&& other) = delete;
21  Cache& operator=(Cache&& other) = delete;
22 };
23 
24 } // namespace systems
25 } // namesapce drake
Definition: constants.h:3
Cache & operator=(const Cache &other)=default
Definition: cache.h:9
virtual ~Cache()
Definition: cache.h:12
Cache()
Definition: cache.h:11