#include <vtkArraySort.h>
vtkArraySort stores an ordered set of dimensions along which the values stored in a sparse array should be sorted.
Convenience constructors are provided for specifying one, two, and three dimensions. To sort along more than three dimensions, use the default constructor, SetDimensions(), and operator[] to assign each dimension to be sorted.
Definition at line 49 of file vtkArraySort.h.
Public Types | |
typedef vtkArrayCoordinates::DimensionT | DimensionT |
Public Member Functions | |
vtkArraySort () | |
vtkArraySort (DimensionT i) | |
vtkArraySort (DimensionT i, DimensionT j) | |
vtkArraySort (DimensionT i, DimensionT j, DimensionT k) | |
DimensionT | GetDimensions () const |
void | SetDimensions (DimensionT dimensions) |
DimensionT & | operator[] (DimensionT i) |
const DimensionT & | operator[] (DimensionT i) const |
bool | operator== (const vtkArraySort &rhs) const |
bool | operator!= (const vtkArraySort &rhs) const |
Friends | |
VTK_COMMON_EXPORT friend ostream & | operator<< (ostream &stream, const vtkArraySort &rhs) |
Definition at line 52 of file vtkArraySort.h.
vtkArraySort::vtkArraySort | ( | ) |
Create an empty set of dimensions. Use SetDimensions() and operator[] to populate them.
vtkArraySort::vtkArraySort | ( | DimensionT | i | ) | [explicit] |
Sorts an array along one dimension.
vtkArraySort::vtkArraySort | ( | DimensionT | i, | |
DimensionT | j | |||
) |
Sorts an array along two dimensions.
vtkArraySort::vtkArraySort | ( | DimensionT | i, | |
DimensionT | j, | |||
DimensionT | k | |||
) |
Sorts an array along three dimensions.
DimensionT vtkArraySort::GetDimensions | ( | ) | const |
Return the number of dimensions for sorting.
void vtkArraySort::SetDimensions | ( | DimensionT | dimensions | ) |
Set the number of dimensions to be sorted. Note that this method resets every dimension to zero, so you must set every dimension explicitly using operator[] after calling SetDimensions().
DimensionT& vtkArraySort::operator[] | ( | DimensionT | i | ) |
Returns the i-th dimension to be sorted.
const DimensionT& vtkArraySort::operator[] | ( | DimensionT | i | ) | const |
Returns the i-th dimension to be sorted.
bool vtkArraySort::operator== | ( | const vtkArraySort & | rhs | ) | const |
Equality comparison
bool vtkArraySort::operator!= | ( | const vtkArraySort & | rhs | ) | const |
Inequality comparison
VTK_COMMON_EXPORT friend ostream& operator<< | ( | ostream & | stream, | |
const vtkArraySort & | rhs | |||
) | [friend] |
Serialization