Memosa-FVM  0.2
OneToOneIndexMap.h
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #ifndef _ONETOONEINDEXMAP_H_
6 #define _ONETOONEINDEXMAP_H_
7 
8 #include "Array.h"
9 
11 {
12 public:
13  OneToOneIndexMap(shared_ptr<Array<int> > fromIndices,
14  shared_ptr<Array<int> > toIndices);
15 
16 
17  virtual ~OneToOneIndexMap();
18 
19  DEFINE_TYPENAME("OneToOneIndexMap");
20 
21  const Array<int>& getFromIndices() const {return *_fromIndices;}
22  const Array<int>& getToIndices() const {return *_toIndices;}
23 
24  shared_ptr<Array<int> > _fromIndices;
25  shared_ptr<Array<int> > _toIndices;
26 };
27 
28 #endif
shared_ptr< Array< int > > _fromIndices
const Array< int > & getToIndices() const
virtual ~OneToOneIndexMap()
DEFINE_TYPENAME("OneToOneIndexMap")
const Array< int > & getFromIndices() const
shared_ptr< Array< int > > _toIndices
OneToOneIndexMap(shared_ptr< Array< int > > fromIndices, shared_ptr< Array< int > > toIndices)