Commit 5678ed1c authored by Francois Bertel's avatar Francois Bertel
Browse files

STYLE:Fixed the doc about the size of VTK_BIT type. BUG:Made the static...

STYLE:Fixed the doc about the size of VTK_BIT type. BUG:Made the static version and the member version of GetDataTypeSize() have the same return type
parent 5ff75857
......@@ -41,7 +41,7 @@
# include "vtkUnsigned__Int64Array.h"
# endif
#endif
vtkCxxRevisionMacro(vtkAbstractArray, "1.7");
vtkCxxRevisionMacro(vtkAbstractArray, "1.8");
//----------------------------------------------------------------------------
// Construct object with sane defaults.
vtkAbstractArray::vtkAbstractArray(vtkIdType vtkNotUsed(numComp))
......@@ -97,12 +97,12 @@ void vtkAbstractArray::GetTuples(vtkIdType p1, vtkIdType p2,
//----------------------------------------------------------------------------
template <class T>
unsigned long vtkAbstractArrayGetDataTypeSize(T*)
int vtkAbstractArrayGetDataTypeSize(T*)
{
return sizeof(T);
}
unsigned long vtkAbstractArray::GetDataTypeSize(int type)
int vtkAbstractArray::GetDataTypeSize(int type)
{
switch (type)
{
......
......@@ -69,11 +69,11 @@ public:
virtual int GetDataType() =0;
// Description:
// Return the size of the underlying data type. For a bit, 1 is
// Return the size of the underlying data type. For a bit, 0 is
// returned. For string 0 is returned. Arrays with variable length
// components return 0.
virtual int GetDataTypeSize() = 0;
static unsigned long GetDataTypeSize(int type);
static int GetDataTypeSize(int type);
// Description:
// Return the size, in bytes, of the lowest-level element of an
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment