Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* VariablePy.h
*
* Created on: Mar 13, 2017
* Author: wgodoy
*/
#ifndef VARIABLEPY_H_
#define VARIABLEPY_H_
#include "core/Variable.h"
#include "adiosPyFunctions.h"
namespace adios
{
template< class T>
class VariablePy : public Variable<T>
{
public:
VariablePy<T>( const std::string name, const Dims dimensions, const Dims globalDimensions, const Dims globalOffsets,
const bool debugMode ):
Variable<T>( name, dimensions, globalDimensions, globalOffsets, debugMode )
{ }
~VariablePy( )
{ }
void SetLocalDimensions( const boost::python::list list )
{
this->m_Dimensions = ListToVector( list );
}
std::vector<std::size_t> GetLocalDimensions( )
{
return this->m_Dimensions;
}
};
}
#endif /* BINDINGS_PYTHON_INCLUDE_VARIABLEPY_H_ */