Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
source_Local.h
Go to the documentation of this file.
1 
14 #ifndef SOURCE_LOCAL_INCLUDED
15 #define SOURCE_LOCAL_INCLUDED
16 
17 #include "source.h"
18 #include "index_lex.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
23 //- parameters class
24 class Parameters_Source_Local : virtual public Parameters
25 {
26  public:
28 };
29 //- end
30 
32 
41 class Source_Local : public Source {
42  public:
43 
45  : Source() {}
46 
47  void set_parameters(const Parameters& params);
48  void set_parameters(const std::valarray<int>& source_position);
49 
50  void set(Field& v, int j);
51 
52  private:
53  Index_lex m_index; // lexical only.
54  std::valarray<int> m_source_position;
55  bool m_in_node;
56 };
57 #endif /* SOURCE_LOCAL_INCLUDED */