freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[newfield_revision Patch] Support Field Replication


From: Jeffrey Oldham
Subject: [newfield_revision Patch] Support Field Replication
Date: Thu, 16 Aug 2001 11:26:02 -0700
User-agent: Mutt/1.2.5i

Specifying one field's values by copying values in another field is a
frequent operation supported by this patch.  To support it, we
implement the resulting field as an engine based on the input field
rather than performing the computation when replicate() is called.

2001-08-16  Jeffrey D. Oldham  <address@hidden>

        * FieldOffset.h: Remove unnecessary header files.
        (replicate): New function.
        * DiffOps/FieldShiftEngine.h (FieldShiftSimple::make): Revise
        parameters.  Move error checking from View2<Field, FieldOffset,
        Centering>.
        (FieldShiftSimple::make(Expression, vector<FieldOffsetList>,
        Centering>)): New function analogous to above make() but
        supporting a vector of FieldOffsetList's.
        (View2<Field,FieldOffset,Centering>): Fix initial comment.
        (View2<Field,FieldOffset,Centering>::make): Move error checking to
        FieldShiftSimple::make.
        (View2<Field,FieldOffset,Centering>::makeRead): Likewise.
        (View2<Field,vector<FieldOffset>,Centering>): New class supporting
        a vector of FieldOffsetList's.
        * tests/makefile (run_tests): Add Replicate.
        (field_tests): Likewise.
        Add PHONY Replicate rule.
        * tests/Replicate.cpp: New file to test replicate().

Applied to      newfield_revision branch
Approved by     Stephen Smith
Tested on       sequential Linux using gcc 3.0.1 by compiling Pooma library and 
NewField tests

Thanks,
Jeffrey D. Oldham
address@hidden

Attachment: 16Aug.08.8b.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]