Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SketchRoot.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 
00003 #ifndef INCLUDED_SketchRoot_h
00004 #define INCLUDED_SketchRoot_h
00005 
00006 #include <iosfwd>
00007 
00008 namespace DualCoding {
00009 
00010 class SketchSpace;
00011 class SketchDataRoot;
00012 
00013 //! Parent class for all Sketch<T>
00014 class SketchRoot {
00015  public:
00016 
00017   SketchRoot() {}
00018   virtual ~SketchRoot() {}
00019 
00020   SketchSpace& rootGetSpace() const;
00021   const SketchDataRoot* rootGetData() const;
00022 
00023   int getNewId() { return ++idCounter; }
00024 
00025   static void reset();
00026 
00027 private:
00028   static int idCounter;
00029 
00030   friend class SketchRootReset;
00031   friend std::ostream& operator<<(std::ostream &os, const SketchRoot &r);
00032 };
00033 
00034 std::ostream& operator<<(std::ostream &os, const SketchRoot &r);
00035 
00036 } // namespace
00037 
00038 #endif

DualCoding 5.1CVS
Generated Mon May 9 04:56:28 2016 by Doxygen 1.6.3