DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CBackInsertable.h
1 
17 #pragma once
18 
31 #if defined(CBackInsertable_RECURSES)
32 #error Recursive header files inclusion detected in CBackInsertable.h
33 #else // defined(CBackInsertable_RECURSES)
34 
35 #define CBackInsertable_RECURSES
36 
37 #if !defined CBackInsertable_h
38 
39 #define CBackInsertable_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
46 
47 namespace DGtal
48 {
49 
51 // class CBackInsertable
91 template <typename T>
93 {
94  // ----------------------- Concept checks ------------------------------
95 public:
96  typedef typename T::value_type value_type;
98  {
99  myX.push_back( myV );
101  }
103  {
104  }
105  // ------------------------- Private Datas --------------------------------
106 private:
107  T myX; // do not require T to be default constructible.
109 
110  // ------------------------- Internals ------------------------------------
111 private:
112 
113 }; // end of concept CBackInsertable
114 
115 } // namespace DGtal
116 
117 // //
119 
120 #endif // !defined CBackInsertable_h
121 
122 #undef CBackInsertable_RECURSES
123 #endif // else defined(CBackInsertable_RECURSES)