// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// SPDX-License-Identifier: BSD-3-Clause
// .NAME vtkType@VTK_TYPE_NAME@Array - dynamic, self-adjusting array of vtkType@VTK_TYPE_NAME@
// .SECTION Description
// vtkType@VTK_TYPE_NAME@Array is an array of values of type vtkType@VTK_TYPE_NAME@.  It
// provides methods for insertion and retrieval of values and will
// automatically resize itself to hold new data.
//
// This array should be preferred for data of type @VTK_TYPE_NAME@ as this
// array will use the correct underlying datatype based on the desired number of bits
// and the current platform.  The superclass of this type will change depending on the
// machine and compiler in use so that the data contained always uses the proper type.

#ifndef vtkType@VTK_TYPE_NAME@Array_h
#define vtkType@VTK_TYPE_NAME@Array_h

#include "vtkCommonCoreModule.h" // For export macro
#include "vtkType.h" // For native type selections.
@VTK_TYPE_NATIVE@

VTK_ABI_NAMESPACE_BEGIN

class VTKCOMMONCORE_EXPORT vtkType@VTK_TYPE_NAME@Array : public vtkTypeArrayBase
{
public:
  static vtkType@VTK_TYPE_NAME@Array* New();
  vtkTypeMacro(vtkType@VTK_TYPE_NAME@Array,vtkTypeArrayBase);
  void PrintSelf(ostream& os, vtkIndent indent) override;

  // Description:
  // A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
  static vtkType@VTK_TYPE_NAME@Array* FastDownCast(vtkAbstractArray *source)
  {
    return static_cast<vtkType@VTK_TYPE_NAME@Array*>(Superclass::FastDownCast(source));
  }

protected:
  vtkType@VTK_TYPE_NAME@Array();
  ~vtkType@VTK_TYPE_NAME@Array() override;

private:
  vtkType@VTK_TYPE_NAME@Array(const vtkType@VTK_TYPE_NAME@Array&) = delete;
  void operator=(const vtkType@VTK_TYPE_NAME@Array&) = delete;
};

// Define vtkArrayDownCast implementation:
vtkArrayDownCast_FastCastMacro(vtkType@VTK_TYPE_NAME@Array);

VTK_ABI_NAMESPACE_END

#undef vtkTypeArrayBase

#endif
/* VTK-HeaderTest-Exclude: INCLUDES */
