MeshLib Documentation
Loading...
Searching...
No Matches
MRWriter.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
MR
4
{
5
6
// the purpose of this struct is to invalidate object cache in its destructor
7
template
<
class
T>
8
struct
Writer
9
{
10
T &
obj
;
11
Writer
( T & o ) :
obj
( o ) { }
12
~Writer
() {
obj
.invalidateCaches(); }
13
};
14
15
#define MR_WRITER( obj ) MR::Writer _writer( obj );
16
17
}
//namespace MR
MR
Definition
MRCameraOrientationPlugin.h:8
MR::Writer
Definition
MRWriter.h:9
MR::Writer::obj
T & obj
Definition
MRWriter.h:10
MR::Writer::~Writer
~Writer()
Definition
MRWriter.h:12
MR::Writer::Writer
Writer(T &o)
Definition
MRWriter.h:11
MeshLib
source
MRMesh
MRWriter.h
Generated by
1.11.0