|
| | ColConst (const PIVector2D< T >::Col &c) |
| | Copy constructor from modifiable Col to read-only ColConst. More...
|
| |
|
size_t | size () const |
| | Size of the column (number of rows).
|
| |
|
const T & | operator[] (size_t index) const |
| | Const access to the element at the given row index within the column.
|
| |
|
const T * | data (size_t index=0) const |
| | Returns a const pointer to the column data starting at an optional row offset.
|
| |
|
PIVector< T > | toVector () const |
| | Converts the column to a PIVector.
|
| |
| ssize_t | indexOf (const T &e, ssize_t start=0) const |
| | Returns the first index of element e in the row, starting from start. See PIVector::indexOf() for details on negative start handling. More...
|
| |
| ssize_t | lastIndexOf (const T &e, ssize_t start=-1) const |
| | Returns the last index of element e in the row, searching backwards from start. More...
|
| |
| ssize_t | indexWhere (std::function< bool(const T &e)> test, ssize_t start=0) const |
| | Returns the first index where the predicate test returns true, starting from start. More...
|
| |
| ssize_t | lastIndexWhere (std::function< bool(const T &e)> test, ssize_t start=-1) const |
| | Returns the last index where the predicate test returns true, searching backwards from start. More...
|
| |
| void | forEach (std::function< void(const T &)> func) const |
| | Applies a function to each element of the column (read-only). The function can't modify the elements. More...
|
| |
| bool | contains (const T &e, ssize_t start=0) const |
| | Checks if the column contains the element e. More...
|
| |
| int | entries (const T &e, ssize_t start=0) const |
| | Counts occurrences of e in the column. More...
|
| |
| int | entries (std::function< bool(const T &e)> test, ssize_t start=0) const |
| | Counts elements in the column that pass the test. More...
|
| |
| bool | any (std::function< bool(const T &e)> test) const |
| | Tests if any element in the column passes the test. More...
|
| |
| bool | every (std::function< bool(const T &e)> test) const |
| | Tests if all elements in the column pass the test. More...
|
| |
template<typename T>
class PIVector2D< T >::ColConst
Proxy class representing a single read-only column in a PIVector2D. Returned by const col(). Provides const access to column elements.
- See also
- Col, RowConst