34#ifndef vtkStatisticsAlgorithmPrivate_h
35#define vtkStatisticsAlgorithmPrivate_h
56 int rval = this->
Buffer.empty() ? 0 : 1;
65 return this->
Buffer.insert(colName).second ? 1 : 0;
69 return this->
Buffer.erase(colName) ? 1 : 0;
81 return result ? 1 : 0;
91 if (col && strlen(col))
93 std::set<vtkStdString> tmp;
95 if (this->
Requests.insert(tmp).second)
110 if (cola && colb && strlen(cola) && strlen(colb))
112 std::set<vtkStdString> tmp;
115 if (this->
Requests.insert(tmp).second)
139 std::set<std::set<vtkStdString>>::iterator it = this->
Requests.begin();
144 return static_cast<vtkIdType>(it->size());
159 std::set<std::set<vtkStdString>>::const_iterator it = this->
Requests.begin();
164 if (c >
static_cast<vtkIdType>(it->size()))
168 std::set<vtkStdString>::const_iterator cit = it->begin();
int AddColumnToRequests(const char *col)
This function does not use the buffer like other column selection methods.
vtkIdType GetNumberOfRequests()
Return the number of currently-defined requests.
void ResetRequests()
Empty current set of requests.
int SetBufferColumnStatus(const char *colName, int status)
Empty current buffer.
int AddBufferToRequests()
Empty current buffer.
bool GetColumnForRequest(vtkIdType r, vtkIdType c, vtkStdString &columnName)
Provide the name of the c-th column of the r-th request in columnName.
int ResetBuffer()
Empty current buffer.
std::set< vtkStdString > Buffer
int AddColumnPairToRequests(const char *cola, const char *colb)
This function does not use the buffer like other column selection methods.
std::set< std::set< vtkStdString > > Requests
vtkIdType GetNumberOfColumnsForRequest(vtkIdType r)
Return the number of columns associated with request r.
Wrapper around std::string to keep symbols short.