18 #ifndef vtkStatisticsAlgorithmPrivate_h
19 #define vtkStatisticsAlgorithmPrivate_h
25 VTK_ABI_NAMESPACE_BEGIN
41 int rval = this->
Buffer.empty() ? 0 : 1;
50 return this->
Buffer.insert(colName).second ? 1 : 0;
54 return this->
Buffer.erase(colName) ? 1 : 0;
66 return result ? 1 : 0;
78 std::set<vtkStdString> tmp;
80 if (this->
Requests.insert(tmp).second)
95 if (cola && colb && *cola && *colb)
97 std::set<vtkStdString> tmp;
100 if (this->
Requests.insert(tmp).second)
120 if (r < 0 || r > static_cast<vtkIdType>(this->
Requests.size()))
124 std::set<std::set<vtkStdString>>::iterator it = this->
Requests.begin();
129 return static_cast<vtkIdType>(it->size());
140 if (r < 0 || r > static_cast<vtkIdType>(this->
Requests.size()) || c < 0)
144 std::set<std::set<vtkStdString>>::const_iterator it = this->
Requests.begin();
149 if (c > static_cast<vtkIdType>(it->size()))
153 std::set<vtkStdString>::const_iterator cit = it->begin();
167 VTK_ABI_NAMESPACE_END
168 #endif // vtkStatisticsAlgorithmPrivate_h
int SetBufferColumnStatus(const char *colName, int status)
Empty current buffer.
Wrapper around std::string to keep symbols short.
int AddColumnToRequests(const char *col)
This function does not use the buffer like other column selection methods.
int ResetBuffer()
Empty current buffer.
vtkIdType GetNumberOfColumnsForRequest(vtkIdType r)
Return the number of columns associated with request r.
int AddColumnPairToRequests(const char *cola, const char *colb)
This function does not use the buffer like other column selection methods.
int AddBufferToRequests()
Empty current buffer.
vtkIdType GetNumberOfRequests()
Return the number of currently-defined requests.
bool GetColumnForRequest(vtkIdType r, vtkIdType c, vtkStdString &columnName)
Provide the name of the c-th column of the r-th request in columnName.
std::set< std::set< vtkStdString > > Requests
void ResetRequests()
Empty current set of requests.
std::set< vtkStdString > Buffer