• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /*
3  * Copyright 2010 Google Inc.
4  *
5  * Use of this source code is governed by a BSD-style license that can be
6  * found in the LICENSE file.
7  */
8 
9 
10 
11 #ifndef GrNoncopyable_DEFINED
12 #define GrNoncopyable_DEFINED
13 
14 #include "GrTypes.h"
15 
16 /**
17  *  Base for classes that want to disallow copying themselves. It makes its
18  *  copy-constructor and assignment operators private (and unimplemented).
19  */
20 class GR_API GrNoncopyable {
21 public:
GrNoncopyable()22     GrNoncopyable() {}
23 
24 private:
25     // illegal
26     GrNoncopyable(const GrNoncopyable&);
27     GrNoncopyable& operator=(const GrNoncopyable&);
28 };
29 
30 #endif
31 
32