QDP++
QDP::OScalar< T > Class Template Reference

Outer grid Scalar class *‍/. More...

#include <qdp_outer.h>

Inheritance diagram for QDP::OScalar< T >:
QDP::QDPType< T, OScalar< T > >

Public Member Functions

 OScalar ()
 ~OScalar ()
 OScalar (T *F_, float f)
 OScalar (const typename WordType< T >::Type_t &rhs)
 construct dest = const
 OScalar (const Zero &rhs)
 construct dest = 0
template<class T1>
 OScalar (const OScalar< T1 > &rhs)
 conversion by constructor OScalar<T> = OScalar<T1>
template<class RHS, class T1>
 OScalar (const QDPExpr< RHS, OScalar< T1 > > &rhs)
 conversion by constructor OScalar = Expr
OScalaroperator= (const typename WordType< T >::Type_t &rhs)
OScalaroperator= (const Zero &rhs)
template<class T1, class C1>
OScalaroperator= (const QDPType< T1, C1 > &rhs)
template<class T1, class C1>
OScalaroperator= (const QDPExpr< T1, C1 > &rhs)
OScalaroperator= (const OScalar &rhs)
 Use this for default operator=.
OSubScalar< T > operator[] (const Subset &s)
 OScalar (const OScalar &a)
 Deep copy constructor.
T * getF ()
T & elem ()
const T & elem () const
T & elem (int i)
const T & elem (int i) const
Public Member Functions inherited from QDP::QDPType< T, OScalar< T > >
 QDPType ()
 Main constructor.
 ~QDPType ()
 Destructor.
OScalar< T > & assign (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator= (const QDPType &rhs)
 Use this for default operator=.
OScalar< T > & operator+= (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator-= (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator*= (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator/= (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator%= (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator|= (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator&= (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator^= (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator<<= (const typename WordType< OScalar< T > >::Type_t &rhs)
OScalar< T > & operator>>= (const typename WordType< OScalar< T > >::Type_t &rhs)
T & elem (int i)

Additional Inherited Members

Public Types inherited from QDP::QDPType< T, OScalar< T > >
typedef T Subtype_t
 Type of the first argument.
typedef OScalar< T > Container_t
 Type of the container class.

Detailed Description

template<class T>
class QDP::OScalar< T >

Outer grid Scalar class *‍/.

All outer lattices are of OScalar or OLattice type

Definition at line 36 of file qdp_outer.h.

Constructor & Destructor Documentation

◆ OScalar() [1/7]

template<class T>
QDP::OScalar< T >::OScalar ( )
inline

Definition at line 39 of file qdp_outer.h.

◆ ~OScalar()

template<class T>
QDP::OScalar< T >::~OScalar ( )
inline

Definition at line 40 of file qdp_outer.h.

◆ OScalar() [2/7]

template<class T>
QDP::OScalar< T >::OScalar ( T * F_,
float f )
inline

Definition at line 42 of file qdp_outer.h.

◆ OScalar() [3/7]

template<class T>
QDP::OScalar< T >::OScalar ( const typename WordType< T >::Type_t & rhs)
inline

construct dest = const

Definition at line 46 of file qdp_outer.h.

◆ OScalar() [4/7]

template<class T>
QDP::OScalar< T >::OScalar ( const Zero & rhs)
inline

construct dest = 0

Definition at line 54 of file qdp_outer.h.

◆ OScalar() [5/7]

template<class T>
template<class T1>
QDP::OScalar< T >::OScalar ( const OScalar< T1 > & rhs)
inline

conversion by constructor OScalar<T> = OScalar<T1>

Definition at line 62 of file qdp_outer.h.

◆ OScalar() [6/7]

template<class T>
template<class RHS, class T1>
QDP::OScalar< T >::OScalar ( const QDPExpr< RHS, OScalar< T1 > > & rhs)
inline

conversion by constructor OScalar = Expr

Definition at line 70 of file qdp_outer.h.

◆ OScalar() [7/7]

template<class T>
QDP::OScalar< T >::OScalar ( const OScalar< T > & a)
inline

Deep copy constructor.

Definition at line 123 of file qdp_outer.h.

Member Function Documentation

◆ elem() [1/4]

template<class T>
T & QDP::OScalar< T >::elem ( )
inline

Definition at line 128 of file qdp_outer.h.

Referenced by QDP::LeafFunctor< OScalar< T >, ElemLeaf >::apply(), QDP::LeafFunctor< OScalar< T >, EvalLeaf1 >::apply(), QDP::cast_rep(), QDP::copymask(), QDP::copymask(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::evaluate(), QDP::gaussian(), QDP::gaussian(), QDP::getSite(), QDP::innerProduct(), QDP::innerProductReal(), QDP::Layout::latticeCoordinate(), QDP::norm2(), QDP::operator<<(), QDP::operator<<(), QDP::operator<<(), QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), QDP::OScalar< typename SinglePrecType< T >::Type_t >::OScalar(), QDP::QDPType< typename UnaryReturn< T1, Op >::Type_t, typename UnaryReturn< C1, Op >::Type_t >::peekSite(), QDP::QDPType< typename UnaryReturn< T1, Op >::Type_t, typename UnaryReturn< C1, Op >::Type_t >::pokeSite(), QDP::QDPType< typename UnaryReturn< T1, Op >::Type_t, typename UnaryReturn< C1, Op >::Type_t >::pokeSite(), QDP::random(), QDP::random(), QDP::HDF5::read(), QDP::QDPFileReader::read(), QDP::read(), QDP::readArchiv(), QDP::recast_rep(), QDP::toBool(), QDP::toInt(), QDP::toWordType(), QDP::unordered_vaxpy3_g5_evaluate_function(), QDP::unordered_vaxpy3_y_evaluate_function(), QDP::unordered_vcaxmy3_evaluate_function(), QDP::HDF5Writer::write(), QDP::QDPFileWriter::write(), QDP::write(), QDP::zero_rep(), and QDP::zero_rep().

◆ elem() [2/4]

template<class T>
const T & QDP::OScalar< T >::elem ( ) const
inline

Definition at line 129 of file qdp_outer.h.

◆ elem() [3/4]

template<class T>
T & QDP::OScalar< T >::elem ( int i)
inline

Definition at line 131 of file qdp_outer.h.

◆ elem() [4/4]

template<class T>
const T & QDP::OScalar< T >::elem ( int i) const
inline

Definition at line 132 of file qdp_outer.h.

◆ getF()

template<class T>
T * QDP::OScalar< T >::getF ( )
inline

Definition at line 125 of file qdp_outer.h.

◆ operator=() [1/5]

template<class T>
OScalar & QDP::OScalar< T >::operator= ( const OScalar< T > & rhs)
inline

Use this for default operator=.

Definition at line 110 of file qdp_outer.h.

◆ operator=() [2/5]

template<class T>
template<class T1, class C1>
OScalar & QDP::OScalar< T >::operator= ( const QDPExpr< T1, C1 > & rhs)
inline

Definition at line 102 of file qdp_outer.h.

◆ operator=() [3/5]

template<class T>
template<class T1, class C1>
OScalar & QDP::OScalar< T >::operator= ( const QDPType< T1, C1 > & rhs)
inline

Definition at line 95 of file qdp_outer.h.

◆ operator=() [4/5]

template<class T>
OScalar & QDP::OScalar< T >::operator= ( const typename WordType< T >::Type_t & rhs)
inline

Definition at line 82 of file qdp_outer.h.

◆ operator=() [5/5]

template<class T>
OScalar & QDP::OScalar< T >::operator= ( const Zero & rhs)
inline

Definition at line 88 of file qdp_outer.h.

◆ operator[]()

template<class T>
OSubScalar< T > QDP::OScalar< T >::operator[] ( const Subset & s)
inline

Definition at line 118 of file qdp_outer.h.


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