QNANO
Dipole_Elements.h
1 #ifndef QNANO_NEW_DIPOLE_ELEMENTS_DEFINED_H
2 #define QNANO_NEW_DIPOLE_ELEMENTS_DEFINED_H
3 
4 #include "tools/Tensor3.h"
5 #include "tools/Reader.h"
6 
10 class Dipole_Elements: public Tensor3{
11 public:
12  void read(const std::string &filename);
13 
14  //Constructors and copy operators
15  Dipole_Elements &operator=(const Dipole_Elements &other){
16  copy(other);
17  return *this;
18  }
19  Dipole_Elements(const Dipole_Elements &other){
20  copy(other);
21  }
22  ~Dipole_Elements(){
23 // std::cout<<"destructor: TEST!"<<std::endl;
24 // deallocate();
25  }
26 
27  Dipole_Elements(int nr_e, int nr_h): Tensor3(nr_e, nr_h, 3) {}
28  Dipole_Elements(const std::string &filename, int nr_e, int nr_h)
29  : Tensor3(nr_e, nr_h, 3){
30  read(filename);
31  }
32 };
33 
34 
35 
36 #endif
Definition: Dipole_Elements.h:10
Class to store a rank-3 (complex) tensor, i.e., a matrix:
Definition: Tensor3.h:9