CMR  1.3.0
Public Member Functions | List of all members
tu::is_all_ones Struct Reference

#include <comparators.hpp>

Public Member Functions

 is_all_ones ()
void operator() (int value)
bool operator() ()

Detailed Description

This functor can be used to test a vector to contain only non-zeros. Repeated calls with parameter determine the result which can be obtained by a call without a parameter.

Constructor & Destructor Documentation

tu::is_all_ones::is_all_ones ( )

Constructs the functor.

Member Function Documentation

void tu::is_all_ones::operator() ( int  value)

Each call tests one entry of the vector.

valueA value to be tested
bool tu::is_all_ones::operator() ( )

Resets the result to an empty vector.

The result of the tests from the last call to this.

The documentation for this struct was generated from the following file: