MCPcopy Create free account
hub / github.com/Norbyte/ositools / NodeVMTWrapper

Method NodeVMTWrapper

OsiInterface/NodeHooks.cpp:31–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 };
30
31 NodeVMTWrapper::NodeVMTWrapper(NodeVMT * vmt, NodeWrapOptions & options)
32 : vmt_(vmt), options_(options)
33 {
34 originalVmt_ = *vmt_;
35
36 ROWriteAnchor<NodeVMT> _(vmt_);
37 if (options_.WrapIsValid) {
38 vmt_->IsValid = &s_WrappedIsValid;
39 }
40
41 if (options_.WrapPushDownTuple) {
42 vmt_->PushDownTuple = &s_WrappedPushDownTuple;
43 }
44
45 if (options_.WrapPushDownTupleDelete) {
46 vmt_->PushDownTupleDelete = &s_WrappedPushDownTupleDelete;
47 }
48
49 if (options_.WrapInsertTuple) {
50 vmt_->InsertTuple = &s_WrappedInsertTuple;
51 }
52
53 if (options_.WrapDeleteTuple) {
54 vmt_->DeleteTuple = &s_WrappedDeleteTuple;
55 }
56
57 if (options_.WrapCallQuery) {
58 vmt_->CallQuery = &s_WrappedCallQuery;
59 }
60 }
61
62 NodeVMTWrapper::~NodeVMTWrapper()
63 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected