MeshLib C++ Docs
Loading...
Searching...
No Matches
MRWriter.h
Go to the documentation of this file.
1#pragma once
2
3namespace MR
4{
7
8
10template<class T>
11struct Writer
12{
13 T & obj;
14 Writer( T & o ) : obj( o ) { }
15 ~Writer() { obj.invalidateCaches(); }
16};
17
18#define MR_WRITER( obj ) MR::Writer _writer( obj );
19
20}
T & obj
Definition MRWriter.h:13
~Writer()
Definition MRWriter.h:15
Writer(T &o)
Definition MRWriter.h:14
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
the purpose of this struct is to invalidate object cache in its destructor
Definition MRWriter.h:12