oneOrTmp.H File Reference
Include dependency graph for oneOrTmp.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  oneOrTmp< Type >
 Variant type that either contains and behaves as tmp object or represents a value of one. Provides multiplication and scaling operations which are optimised away if representing a value of one. More...
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Functions

template<class Type , class Other >
tmp< Other > operator* (const Other &, const oneOrTmp< Type > &)
 Multiply with an object. More...
 
template<class Type , class Other >
tmp< Other > operator* (const tmp< Other > &, const oneOrTmp< Type > &)
 Multiply with a temporary object. More...
 
template<class Type , class Other >
void operator*= (Other &, const oneOrTmp< Type > &)
 Multiply-assign with an object. More...
 

Detailed Description

Original source file oneOrTmp.H

Definition in file oneOrTmp.H.