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

#include <comparators.hpp>

Public Member Functions

 is_non_zero ()
void operator() (int value)
bool operator() ()

Detailed Description

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

Constructor & Destructor Documentation

tu::is_non_zero::is_non_zero ( )

Constructs the functor.

Member Function Documentation

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

Each call tests one entry of the vector.

valueA value to be tested
bool tu::is_non_zero::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: