| 63 | // Small utility function to easily create a DataHolder with type deduction |
| 64 | template <typename T> |
| 65 | static std::unique_ptr<DataHolder<T>> MakeHolder(T&& value) |
| 66 | { |
| 67 | return std::unique_ptr<DataHolder<T>>{ new DataHolder<T>{ std::forward<T>(value) } }; |
| 68 | } |
| 69 | |
| 70 | public: |
| 71 | vtkTypeMacro(vtkMemoryResourceStream, vtkResourceStream); |