Debian Codegraph @

src/data/aslDataWrapper.cxx

raw
1 /*
2 * Advanced Simulation Library <http://asl.org.il>
3 *
4 * Copyright 2015 Avtech Scientific <http://avtechscientific.com>
5 *
6 *
7 * This file is part of Advanced Simulation Library (ASL).
8 *
9 * ASL is free software: you can redistribute it and/or modify it
10 * under the terms of the GNU Affero General Public License as
11 * published by the Free Software Foundation, version 3 of the License.
12 *
13 * ASL is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with ASL. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23
24 #include "aslDataWrapper.h"
25 #include "acl/aclUtilities.h"
26 #include "acl/aclGenerators.h"
27 #include "acl/aclMath/aclVectorOfElements.h"
28
29 namespace asl
30 {
31 template <typename V> bool DataWrapper<V>::checkConsistency() const
32 {
33 return compatibleSizes((unsigned int)productOfElements(block.getSize()),
34 container);
35 }
36
37 template bool DataWrapperACL::checkConsistency() const;
38 template bool DataWrapperACLData::checkConsistency() const;
39
40 template <class V> const acl::VectorOfElements DataWrapper<V>::getEContainer()
41 {
42 return acl::VectorOfElements(container);
43 }
44
45 template const acl::VectorOfElements DataWrapperACL::getEContainer();
46 template const acl::VectorOfElements DataWrapperACLData::getEContainer();
47
48 template <> const acl::VectorOfElementsData DataWrapperACL::getDContainer() const
49 {
50 return acl::VectorOfElementsData();
51 }
52
53 template <> const acl::VectorOfElementsData DataWrapperACLData::getDContainer() const
54 {
55 return container;
56 }
57
58 } // namespace asl