one Class Reference

A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects which are known to be one at compile-time. More...

Inheritance diagram for one:

Public Types

typedef one value_type
 

Public Member Functions

 one ()
 Construct null. More...
 
 operator label () const
 Return 1 for label. More...
 
 operator float () const
 Return 1 for float. More...
 
 operator double () const
 Return 1 for double. More...
 
 operator long double () const
 Return 1 for double. More...
 

Detailed Description

A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects which are known to be one at compile-time.

Source files

Definition at line 50 of file one.H.

Member Typedef Documentation

◆ value_type

typedef one value_type

Definition at line 54 of file one.H.

Constructor & Destructor Documentation

◆ one()

one ( )
inline

Construct null.

Definition at line 59 of file one.H.

Referenced by oneField::operator[]().

Here is the caller graph for this function:

Member Function Documentation

◆ operator label()

operator label ( ) const
inline

Return 1 for label.

Definition at line 66 of file one.H.

◆ operator float()

operator float ( ) const
inline

Return 1 for float.

Definition at line 72 of file one.H.

◆ operator double()

operator double ( ) const
inline

Return 1 for double.

Definition at line 78 of file one.H.

◆ operator long double()

operator long double ( ) const
inline

Return 1 for double.

Definition at line 84 of file one.H.


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