Classes | Public Types | Public Member Functions | List of all members
one Class Reference

A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to be one at compile-time. It is also used for tagged dispatch. More...

Inheritance diagram for one:
Inheritance graph
[legend]

Classes

class  minus
 
class  null
 

Public Types

typedef one value_type
 

Public Member Functions

constexpr one () noexcept
 
constexpr one (Istream &) noexcept
 
constexpr operator label () const noexcept
 
constexpr operator float () const noexcept
 
constexpr operator double () const noexcept
 

Detailed Description

A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to be one at compile-time. It is also used for tagged dispatch.

Source files
See also
Foam::zero

Definition at line 57 of file one.H.

Member Typedef Documentation

◆ value_type

typedef one value_type

Definition at line 61 of file one.H.

Constructor & Destructor Documentation

◆ one() [1/2]

constexpr one ( )
inlineconstexprnoexcept

Definition at line 68 of file one.H.

◆ one() [2/2]

constexpr one ( Istream )
inlineexplicitconstexprnoexcept

Definition at line 71 of file one.H.

Member Function Documentation

◆ operator label()

constexpr operator label ( ) const
inlineconstexprnoexcept

Definition at line 75 of file one.H.

◆ operator float()

constexpr operator float ( ) const
inlineconstexprnoexcept

Definition at line 81 of file one.H.

◆ operator double()

constexpr operator double ( ) const
inlineconstexprnoexcept

Definition at line 87 of file one.H.


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