Skip to content
Snippets Groups Projects
SelectionPoints.cpp 863 B
Newer Older
/*
 * Distributed under the OSI-approved Apache License, Version 2.0.  See
 * accompanying file Copyright.txt for details.
 *
 * SelectionPoints.cpp
 *
 *  Created on: May 17, 2017
 *      Author: Norbert Podhorszki pnorbert@ornl.gov
 *              William F Godoy godoywf@ornl.gov
 */

#include "SelectionPoints.h"

namespace adios2
{

SelectionPoints::SelectionPoints(size_t dimensionsSize,
                                 std::vector<uint64_t> &points)
: Selection(SelectionType::Points), m_DimensionsSize(dimensionsSize),
  m_PointsVec(&points), m_PointsSize(points.size())
{
}

SelectionPoints::SelectionPoints(size_t dimensionsSize, size_t pointsSize,
                                 uint64_t *points)
: Selection(SelectionType::Points), m_DimensionsSize(dimensionsSize),
William F Godoy's avatar
William F Godoy committed
  m_PointsSize(pointsSize), m_PointsPointer(points)
{
}

} // end namespace adios