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

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

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

trunk/escript/src/Data/DataEmpty.h revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC trunk/escript/src/DataEmpty.h revision 854 by gross, Thu Sep 21 05:29:42 2006 UTC
# Line 1  Line 1 
1  //$Id$  //$Id$
2  /*  /*
3   ******************************************************************************   ************************************************************
4   *                                                                            *   *          Copyright 2006 by ACcESS MNRF                   *
5   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *   *                                                          *
6   *                                                                            *   *              http://www.access.edu.au                    *
7   * This software is the property of ACcESS. No part of this code              *   *       Primary Business: Queensland, Australia            *
8   * may be copied in any form or by any means without the expressed written    *   *  Licensed under the Open Software License version 3.0    *
9   * consent of ACcESS.  Copying, use or modification of this software          *   *     http://www.opensource.org/licenses/osl-3.0.php       *
10   * by any unauthorised person is illegal unless that person has a software    *   *                                                          *
11   * license agreement with ACcESS.                                             *   ************************************************************
  *                                                                            *  
  ******************************************************************************  
12  */  */
13    
14  #if !defined escript_DataEmpty_20040726_H  #if !defined escript_DataEmpty_20040726_H
15  #define escript_DataEmpty_20040726_H  #define escript_DataEmpty_20040726_H
16    #include "system_dep.h"
17    
18  #include "DataAbstract.h"  #include "DataAbstract.h"
19    
# Line 40  class DataEmpty : public DataAbstract { Line 39  class DataEmpty : public DataAbstract {
39       Default constructor for DataEmpty.       Default constructor for DataEmpty.
40    
41    */    */
42      ESCRIPT_DLL_API
43    DataEmpty();    DataEmpty();
44    
45    /**    /**
46       \brief       \brief
47       Destructor for DataEmpty.       Destructor for DataEmpty.
48    */    */
49      ESCRIPT_DLL_API
50    virtual    virtual
51    ~DataEmpty();    ~DataEmpty();
52    
# Line 53  class DataEmpty : public DataAbstract { Line 54  class DataEmpty : public DataAbstract {
54       \brief       \brief
55       Return a textual representation of the Data object.       Return a textual representation of the Data object.
56    */    */
57      ESCRIPT_DLL_API
58    virtual    virtual
59    std::string    std::string
60    toString() const;    toString() const;
# Line 65  class DataEmpty : public DataAbstract { Line 67  class DataEmpty : public DataAbstract {
67       \param sampleNo - Input - Sample number.       \param sampleNo - Input - Sample number.
68       \param dataPointNo - Input - data-point number.       \param dataPointNo - Input - data-point number.
69     */     */
70      ESCRIPT_DLL_API
71    virtual    virtual
72    DataArrayView::ValueType::size_type    DataArrayView::ValueType::size_type
73    getPointOffset(int sampleNo,    getPointOffset(int sampleNo,
# Line 78  class DataEmpty : public DataAbstract { Line 81  class DataEmpty : public DataAbstract {
81       \param sampleNo - Input - Sample number.       \param sampleNo - Input - Sample number.
82       \param dataPointNo - Input - data-point number.       \param dataPointNo - Input - data-point number.
83    */    */
84      ESCRIPT_DLL_API
85    virtual    virtual
86    DataArrayView    DataArrayView
87    getDataPoint(int sampleNo,    getDataPoint(int sampleNo,
# Line 88  class DataEmpty : public DataAbstract { Line 92  class DataEmpty : public DataAbstract {
92       Return the number of doubles stored for the Data object.       Return the number of doubles stored for the Data object.
93       As this is an empty Data object, this method will always return 0.       As this is an empty Data object, this method will always return 0.
94    */    */
95      ESCRIPT_DLL_API
96    virtual    virtual
97    ValueType::size_type    ValueType::size_type
98    getLength() const;    getLength() const;
# Line 99  class DataEmpty : public DataAbstract { Line 104  class DataEmpty : public DataAbstract {
104       NB: This will throw an exception as obviously an empty Data object contains no       NB: This will throw an exception as obviously an empty Data object contains no
105       data to slice from. An implementation is required by parent DataAbstract class.       data to slice from. An implementation is required by parent DataAbstract class.
106    */    */
107      ESCRIPT_DLL_API
108    virtual    virtual
109    DataAbstract*    DataAbstract*
110    getSlice(const DataArrayView::RegionType& region) const;    getSlice(const DataArrayView::RegionType& region) const;
# Line 112  class DataEmpty : public DataAbstract { Line 118  class DataEmpty : public DataAbstract {
118       \param value Input - Data to copy from       \param value Input - Data to copy from
119       \param region Input - Region to copy.       \param region Input - Region to copy.
120    */    */
121      ESCRIPT_DLL_API
122    virtual    virtual
123    void    void
124    setSlice(const DataAbstract* value,    setSlice(const DataAbstract* value,
125             const DataArrayView::RegionType& region);             const DataArrayView::RegionType& region);
126    
   /**  
      \brief  
      Reshape the data point if the data point is currently rank 0.  
      NB: This will throw an exception as obviously an empty Data object contains no  
      data to reshape. An implementation is required by parent DataAbstract class.  
   */  
   virtual  
   void  
   reshapeDataPoint(const DataArrayView::ShapeType& shape);  
   
127   protected:   protected:
128    
129   private:   private:

Legend:
Removed from v.155  
changed lines
  Added in v.854

  ViewVC Help
Powered by ViewVC 1.1.26