MeshLib C++ Docs
Loading...
Searching...
No Matches
MRWriter.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
MR
4
{
7
8
10
template
<
class
T>
11
struct
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
}
MR::Writer::obj
T & obj
Definition
MRWriter.h:13
MR::Writer::~Writer
~Writer()
Definition
MRWriter.h:15
MR::Writer::Writer
Writer(T &o)
Definition
MRWriter.h:14
MR
only for bindings generation
Definition
MRCameraOrientationPlugin.h:8
MR::Writer
the purpose of this struct is to invalidate object cache in its destructor
Definition
MRWriter.h:12
MeshLib
source
MRMesh
MRWriter.h
Generated by
1.11.0