vtkmTags.h 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
//=============================================================================
//
//  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 2012 Sandia Corporation.
//  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
//  the U.S. Government retains certain rights in this software.
//
//=============================================================================

#ifndef vtkmTags_h
#define vtkmTags_h

#include "vtkCellArray.h"
#include "vtkPoints.h"
#include "vtkAOSDataArrayTemplate.h"
#include "vtkSOADataArrayTemplate.h"

#include "vtkmConfig.h" //required for general vtkm setup

namespace tovtkm {

struct VTKM_ALWAYS_EXPORT vtkAOSArrayContainerTag
{
};

struct VTKM_ALWAYS_EXPORT vtkSOAArrayContainerTag
{
};

//this tag is used to construct points coordinates
struct VTKM_ALWAYS_EXPORT vtkCellArrayContainerTag
{
};

template<typename T> struct VTKM_ALWAYS_EXPORT ArrayContainerTagType;

template<typename T>
struct VTKM_ALWAYS_EXPORT ArrayContainerTagType< vtkAOSDataArrayTemplate< T > >
{
  typedef vtkAOSArrayContainerTag TagType;
};

template<typename T>
struct VTKM_ALWAYS_EXPORT ArrayContainerTagType< vtkSOADataArrayTemplate< T > >
{
  typedef vtkSOAArrayContainerTag TagType;
};


}

#endif
// VTK-HeaderTest-Exclude: vtkmTags.h