Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::AttributeBool Class Reference

#include <semantics.hh>

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

Public Member Functions

bool operator() (Attribute attrib) const
 

Protected Member Functions

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

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: