FreePOOMA  2.4.1
Public Types | Public Member Functions
Loc< 1 > Class Template Reference

Loc<1> is a 1D specialization of Loc<N>; for the 1D case, there are only a restricted set of constructors available. More...

#include <Loc.h>

Inheritance diagram for Loc< 1 >:
Inheritance graph
[legend]
Collaboration diagram for Loc< 1 >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { domain = DT_t::domain }
enum  { dimensions = DT_t::dimensions, sliceDimensions = DT_t::sliceDimensions }
enum  { loopAware = DT_t::loopAware }
enum  { singleValued = DT_t::singleValued }
enum  { unitStride = DT_t::unitStride }
enum  { wildcard = DT_t::wildcard }
typedef DT_t::Element_t Element_t
typedef DT_t::Domain_t Domain_t
typedef DT_t::OneDomain_t OneDomain_t
typedef DT_t::BlockDomain_t BlockDomain_t
typedef DT_t::AskDomain_t AskDomain_t
typedef DT_t::AddResult_t AddResult_t
typedef DT_t::MultResult_t MultResult_t
typedef DT_t::Storage_t Storage_t

Public Member Functions

 Loc ()
 Loc (const Loc< 1 > &a)
 Loc (const Pooma::NoInit &a)
template<class T1 >
 Loc (const T1 &a)
template<class T1 , class T2 >
 Loc (const T1 &a, const T2 &b)
template<class T1 , class T2 , class T3 >
 Loc (const T1 &a, const T2 &b, const T3 &c)
template<class T >
Loc< 1 > & operator= (const T &newdom)
Loc< 1 > & operator= (const Loc< 1 > &newdom)
const OneDomain_toperator[] (int d) const
 return the Nth element of this domain, using []
OneDomain_toperator[] (int d)
 return the Nth element of this domain, using []
template<class Out >
void print (Out &o) const
 print a domain to a stream, in the format "[" first:last:stride, first:last:stride, ...

Detailed Description

template<>
class Loc< 1 >

Loc<1> is a 1D specialization of Loc<N>; for the 1D case, there are only a restricted set of constructors available.

For the special case of Loc<1>, the following constructors are defined:


Member Typedef Documentation

typedef DT_t::Element_t Loc< 1 >::Element_t
typedef DT_t::Domain_t Loc< 1 >::Domain_t
typedef DT_t::Storage_t Loc< 1 >::Storage_t

Member Enumeration Documentation

anonymous enum
Enumerator:
domain 
anonymous enum
Enumerator:
dimensions 
sliceDimensions 
anonymous enum
Enumerator:
loopAware 
anonymous enum
Enumerator:
singleValued 
anonymous enum
Enumerator:
unitStride 
anonymous enum
Enumerator:
wildcard 

Constructor & Destructor Documentation

Loc< 1 >::Loc ( ) [inline]
Loc< 1 >::Loc ( const Loc< 1 > &  a) [inline]

References setDomain().

Loc< 1 >::Loc ( const Pooma::NoInit a) [inline]
template<class T1 >
Loc< 1 >::Loc ( const T1 &  a) [inline, explicit]

References setDomain().

template<class T1 , class T2 >
Loc< 1 >::Loc ( const T1 &  a,
const T2 &  b 
) [inline]

References CTAssert, PAssert, and setDomain().

template<class T1 , class T2 , class T3 >
Loc< 1 >::Loc ( const T1 &  a,
const T2 &  b,
const T3 &  c 
) [inline]

References CTAssert, PAssert, and setDomain().


Member Function Documentation

template<class T >
Loc<1>& Loc< 1 >::operator= ( const T &  newdom) [inline]

References setDomain().

Loc<1>& Loc< 1 >::operator= ( const Loc< 1 > &  newdom) [inline]

References setDomain().

const OneDomain_t& Loc< 1 >::operator[] ( int  d) const [inline]

return the Nth element of this domain, using []

Reimplemented from Domain< 1, DomainTraits< Loc< 1 > > >.

OneDomain_t& Loc< 1 >::operator[] ( int  d) [inline]

return the Nth element of this domain, using []

Reimplemented from Domain< 1, DomainTraits< Loc< 1 > > >.

template<class Out >
void Loc< 1 >::print ( Out &  o) const

print a domain to a stream, in the format "[" first:last:stride, first:last:stride, ...

first:last:stride "]"

Reimplemented from DomainBase< DomainTraits< Loc< 1 > > >.

References DomainBase< DomainTraits< Loc< Dim > > >::unwrap().

Referenced by operator<<().


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