concepts::AttributeBool Class Reference

A function class to query attributes. More...

#include <semantics.hh>

Inheritance diagram for concepts::AttributeBool:
concepts::Semantics< bool > concepts::OutputOperator

Public Member Functions

bool operator() (Attribute attrib) const
 Application operator. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Detailed Description

A function class to query attributes.

Its application operator returns true if the attribute is nonzero.

Definition at line 36 of file semantics.hh.

Member Function Documentation

◆ info()

virtual std::ostream& concepts::AttributeBool::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::Semantics< bool >.

◆ operator()()

bool concepts::AttributeBool::operator() ( Attribute  attrib) const
virtual

Application operator.

Returns
True, if attrib is non-zero and false if attrib is zero.

Implements concepts::Semantics< bool >.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich