vtk-m/vtkm/cont/internal/VirtualObjectTransferShareWithControl.h
2017-05-25 07:51:37 -04:00

49 lines
1.5 KiB
C++

//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//
// Copyright 2017 Sandia Corporation.
// Copyright 2017 UT-Battelle, LLC.
// Copyright 2017 Los Alamos National Security.
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this software.
//
// Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
// Laboratory (LANL), the U.S. Government retains certain rights in
// this software.
//============================================================================
#ifndef vtk_m_cont_internal_VirtualObjectTransferShareWithControl_h
#define vtk_m_cont_internal_VirtualObjectTransferShareWithControl_h
namespace vtkm
{
namespace cont
{
namespace internal
{
template <typename VirtualObject, typename TargetClass>
struct VirtualObjectTransferShareWithControl
{
static void* Create(VirtualObject& object, const void* target)
{
static int dummyState = 0;
object.Bind(static_cast<const TargetClass*>(target));
return &dummyState;
}
static void Update(void*, const void*) {}
static void Cleanup(void*) {}
};
}
}
} // vtkm::cont::internal
#endif // vtk_m_cont_internal_VirtualObjectTransferShareWithControl_h