33 #ifndef vtkStatisticsAlgorithmPrivate_h
34 #define vtkStatisticsAlgorithmPrivate_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 )
140 if ( r < 0 || r > static_cast<vtkIdType>( this->
Requests.size() ) )
144 vtksys_stl::set<vtksys_stl::set<vtkStdString> >::iterator it = this->
Requests.begin();
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();
168 if ( c > static_cast<vtkIdType>( it->size() ) )
172 vtksys_stl::set<vtkStdString>::const_iterator cit = it->begin();
182 vtksys_stl::set<vtksys_stl::set<vtkStdString> >
Requests;
186 #endif // vtkStatisticsAlgorithmPrivate_h
int SetBufferColumnStatus(const char *colName, int status)
Wrapper around std::string to keep symbols short.
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)