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

Annotation of /trunk/escript/src/DataEmpty.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1312 - (hide annotations)
Mon Sep 24 06:18:44 2007 UTC (11 years, 11 months ago) by ksteube
File size: 1622 byte(s)
The MPI branch is hereby closed. All future work should be in trunk.

Previously in revision 1295 I merged the latest changes to trunk into trunk-mpi-branch.
In this revision I copied all files from trunk-mpi-branch over the corresponding
trunk files. I did not use 'svn merge', it was a copy.

1 jgs 121
2 ksteube 1312 /* $Id$ */
3 jgs 82
4 ksteube 1312 /*******************************************************
5     *
6     * Copyright 2003-2007 by ACceSS MNRF
7     * Copyright 2007 by University of Queensland
8     *
9     * http://esscc.uq.edu.au
10     * Primary Business: Queensland, Australia
11     * Licensed under the Open Software License version 3.0
12     * http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16 jgs 474 #include "DataEmpty.h"
17     #include "DataException.h"
18 jgs 82
19     namespace escript {
20    
21     DataEmpty::DataEmpty() :
22 jgs 102 DataAbstract(FunctionSpace())
23 jgs 82 {
24 jgs 119 resetPointDataView();
25 jgs 82 }
26    
27 jgs 102 DataEmpty::~DataEmpty()
28     {
29 jgs 82 }
30    
31 jgs 102 std::string
32     DataEmpty::toString() const
33     {
34 jgs 121 return "(Empty Data)";
35 jgs 82 }
36    
37 jgs 102 DataArrayView::ValueType::size_type
38     DataEmpty::getPointOffset(int sampleNo,
39     int dataPointNo) const
40 jgs 82 {
41     throwStandardException("getPointOffset");
42     return 0;
43     }
44    
45 jgs 102 DataArrayView
46     DataEmpty::getDataPoint(int sampleNo,
47     int dataPointNo)
48 jgs 82 {
49     throwStandardException("getDataPoint");
50     return getPointDataView();
51     }
52    
53 jgs 102 DataArrayView::ValueType::size_type
54     DataEmpty::getLength() const
55 jgs 82 {
56     return 0;
57     }
58    
59 jgs 102 DataAbstract*
60     DataEmpty::getSlice(const DataArrayView::RegionType& region) const
61 jgs 82 {
62     throwStandardException("getSlice");
63     return 0;
64     }
65    
66 jgs 102 void
67     DataEmpty::setSlice(const DataAbstract* value,
68     const DataArrayView::RegionType& region)
69 jgs 82 {
70     throwStandardException("setSlice");
71     }
72    
73 jgs 102 void
74 jgs 121 DataEmpty::throwStandardException(const std::string& functionName) const
75     {
76     throw DataException("Error - "+functionName+" function call invalid for DataEmpty.");
77     }
78    
79 jgs 82 } // end of namespace

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26