/[escript]/trunk/escript/src/DataTagged.h
ViewVC logotype

Diff of /trunk/escript/src/DataTagged.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 118 by jgs, Wed Dec 15 07:08:39 2004 UTC revision 119 by jgs, Tue Apr 12 04:45:05 2005 UTC
# Line 44  class DataTagged : public DataAbstract { Line 44  class DataTagged : public DataAbstract {
44    
45   public:   public:
46    
47      //
48      // Types for the lists of tags and values
49    typedef std::vector<int> TagListType;    typedef std::vector<int> TagListType;
50    typedef std::vector<DataArrayView> ValueListType;    typedef std::vector<DataArrayView> ValueListType;
51    
52    //    //
53    // Map type, maps the key to an array offset.    // Map from the tag to an offset the the data array.
54    typedef std::map<int, int> DataMapType;    typedef std::map<int, int> DataMapType;
55    
56    /**    /**
# Line 85  class DataTagged : public DataAbstract { Line 87  class DataTagged : public DataAbstract {
87    
88    /**    /**
89       \brief       \brief
90         Alternative constructor for DataTagged objects.
91    
92         Description:
93         Alternative Constructor for DataTagged objects.
94         \param what - Input - A description of what this data object represents.
95         \param shape - Input - the shape of each data-point.
96         \param tags - Input - array of tags, one for each sample number
97         \param data - the data values for each data-point.
98      */
99      DataTagged(const FunctionSpace& what,
100                 const DataArrayView::ShapeType &shape,
101                 const int tags[],
102                 const DataArrayView::ValueType &data);
103    
104      /**
105         \brief
106       Slice constructor for DataTagged.       Slice constructor for DataTagged.
107    
108       Description:       Description:
# Line 280  class DataTagged : public DataAbstract { Line 298  class DataTagged : public DataAbstract {
298    DataArrayView&    DataArrayView&
299    getDefaultValue();    getDefaultValue();
300    
   /**  
      \brief  
      getDefaultValue  
   
      Description:  
      Return the default value, const version.  
   */  
301    const DataArrayView&    const DataArrayView&
302    getDefaultValue() const;    getDefaultValue() const;
303    
# Line 349  class DataTagged : public DataAbstract { Line 360  class DataTagged : public DataAbstract {
360    DataMapType m_offsetLookup;    DataMapType m_offsetLookup;
361    
362    //    //
   // The actual data  
   DataArrayView::ValueType m_data;  
   
   //  
363    // the default value offset    // the default value offset
364    static const int m_defaultValueOffset = 0;    static const int m_defaultValueOffset = 0;
365    
366      //
367      // The actual data
368      DataArrayView::ValueType m_data;
369    
370  };  };
371    
372  inline  inline

Legend:
Removed from v.118  
changed lines
  Added in v.119

  ViewVC Help
Powered by ViewVC 1.1.26