QDP++
QDP::Real32 Class Reference

Real32 word class - builtin machine word type over flow. More...

#include <qdp_word.h>

Inheritance diagram for QDP::Real32:
QDP::Word< float >

Public Member Functions

 Real32 ()
 ~Real32 ()
 Real32 (const float &rhs)
 dest = float
Real32operator= (int rhs)
 dest = int
Public Member Functions inherited from QDP::Word< float >
 Word ()
 ~Word ()
float & elem ()

Detailed Description

Real32 word class - builtin machine word type over flow.

A template class wrapper for the actual machine primitive. NOTE: with inlining code optimization looks good even with a wrapper

Definition at line 49 of file qdp_word.h.

Constructor & Destructor Documentation

◆ Real32() [1/2]

QDP::Real32::Real32 ( )
inline

Definition at line 52 of file qdp_word.h.

Referenced by operator=().

◆ ~Real32()

QDP::Real32::~Real32 ( )
inline

Definition at line 53 of file qdp_word.h.

◆ Real32() [2/2]

QDP::Real32::Real32 ( const float & rhs)
inlineexplicit

dest = float

Definition at line 56 of file qdp_word.h.

References QDP::Word< float >::elem().

Member Function Documentation

◆ operator=()

Real32 & QDP::Real32::operator= ( int rhs)
inline

dest = int

Fill with an integer constant. Will be promoted to underlying word type

Definition at line 65 of file qdp_word.h.

References QDP::Word< float >::elem(), and Real32().


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