PATCH: Add layout() to Engine Specializations

Jeffrey Oldham oldham at codesourcery.com
Wed Sep 26 00:17:26 UTC 2001


2001-09-25  Jeffrey D. Oldham  <oldham at codesourcery.com>

        * ConstantFunctionEngine.h (Engine<... ConstantFunction>::layout):
        Add Engine function missing from this specialization.
        * ExpressionEngine.h (Engine<... ExpressionTag...>::layout):
        Likewise.

Tested on       sequential Linux using gcc 3.1 by compiling Pooma library and Engine regression tests
Approved by     Stephen Smith
Applied to      mainline

Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: ConstantFunctionEngine.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Engine/ConstantFunctionEngine.h,v
retrieving revision 1.18
diff -c -p -r1.18 ConstantFunctionEngine.h
*** ConstantFunctionEngine.h	2001/08/30 01:15:04	1.18
--- ConstantFunctionEngine.h	2001/09/25 22:29:03
*************** public:
*** 237,242 ****
--- 237,246 ----
    const Domain_t &domain() const { return domain_m; }
  
    //---------------------------------------------------------------------------
+   // Return a layout.
+ 
+   inline Layout_t layout() const { return Layout_t(domain_m); }
+ 
    // Return the first value for the specified direction.
    
    inline int first(int i) const
Index: ExpressionEngine.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Engine/ExpressionEngine.h,v
retrieving revision 1.75
diff -c -p -r1.75 ExpressionEngine.h
*** ExpressionEngine.h	2001/08/30 01:15:04	1.75
--- ExpressionEngine.h	2001/09/25 22:29:04
*************** public:
*** 605,610 ****
--- 605,614 ----
        return forEach(expr_m, DomainFunctorTag(), DomainFunctorTag()); 
      }
  
+   //---------------------------------------------------------------------------   // Return a layout.
+ 
+   inline Layout_t layout() const { return Layout_t(domain()); }
+ 
    //---------------------------------------------------------------------------
    // Return the first value for the specified direction (always zero since this
    // engine is zero-based).


More information about the pooma-dev mailing list