33 #ifndef __vtkStatisticsAlgorithmPrivate_h
34 #define __vtkStatisticsAlgorithmPrivate_h
36 #include "vtkStdString.h"
38 #include <vtksys/stl/set>
62 int rval = this->
Buffer.empty() ? 0 : 1;
71 return this->
Buffer.insert( colName ).second ? 1 : 0;
75 return this->
Buffer.erase( colName ) ? 1 : 0;
83 if ( ! this->
Buffer.empty() )
87 return result ? 1 : 0;
96 if ( col && strlen( col ) )
98 vtksys_stl::set<vtkStdString> tmp;
100 if ( this->
Requests.insert( tmp ).second )
114 if ( cola && colb && strlen( cola ) && strlen( colb ) )
116 vtksys_stl::set<vtkStdString> tmp;
119 if ( this->
Requests.insert( tmp ).second )
132 return static_cast<vtkIdType
>( this->
Requests.size() );
140 if ( r < 0 || r > static_cast<vtkIdType>( this->
Requests.size() ) )
144 vtksys_stl::set<vtksys_stl::set<vtkStdString> >::iterator it = this->
Requests.begin();
145 for ( vtkIdType i = 0; i < r; ++ i )
159 if ( r < 0 || r > static_cast<vtkIdType>( this->
Requests.size() ) || c < 0 )
163 vtksys_stl::set<vtksys_stl::set<vtkStdString> >::const_iterator it = this->
Requests.begin();
164 for ( vtkIdType i = 0; i < r; ++ i )
168 if ( c > static_cast<vtkIdType>( it->size() ) )
172 vtksys_stl::set<vtkStdString>::const_iterator cit = it->begin();
173 for ( vtkIdType j = 0; j < c; ++ j )
182 vtksys_stl::set<vtksys_stl::set<vtkStdString> >
Requests;
186 #endif // __vtkStatisticsAlgorithmPrivate_h
int SetBufferColumnStatus(const char *colName, int status)
vtksys_stl::set< vtkStdString > Buffer
int AddColumnToRequests(const char *col)
~vtkStatisticsAlgorithmPrivate()
vtksys_stl::set< vtksys_stl::set< vtkStdString > > Requests
vtkIdType GetNumberOfColumnsForRequest(vtkIdType r)
int AddColumnPairToRequests(const char *cola, const char *colb)
int AddBufferToRequests()
vtkStatisticsAlgorithmPrivate()
vtkIdType GetNumberOfRequests()
bool GetColumnForRequest(vtkIdType r, vtkIdType c, vtkStdString &columnName)