g4tools  5.4.0
sf_vec2f
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_sg_sf_vec2f
5 #define tools_sg_sf_vec2f
6 
7 #include "sf_vec"
8 
9 #include "../lina/vec2f"
10 #include "../HEADER"
11 
12 namespace tools {
13 namespace sg {
14 
15 class sf_vec2f : public sf_vec<vec2f,float> {
18 public:
20  sf_vec2f(const vec2f& a_v):parent(a_v){}
21  virtual ~sf_vec2f(){}
22 public:
23  sf_vec2f(const sf_vec2f& a_from):parent(a_from){}
24  sf_vec2f& operator=(const sf_vec2f& a_from){
25  parent::operator=(a_from);
26  return *this;
27  }
28 public:
29  sf_vec2f& operator+=(const vec2f& a_value) {parent::operator+=(a_value);return *this;}
30 public: //for iv2sg
31  void setValue(const vec2f& a_v) {value(a_v);}
32  void setValue(float a_0,float a_1) {value(vec2f(a_0,a_1));}
33 };
34 
35 }}
36 
37 #endif
tools::sg::sf_vec2f::operator=
sf_vec2f & operator=(const sf_vec2f &a_from)
Definition: sf_vec2f:24
tools::vec2f
Definition: vec2f:13
tools::sg::sf_vec2f::sf_vec2f
sf_vec2f()
Definition: sf_vec2f:19
tools::sg::field
Definition: field:25
tools::sg::sf_vec
Definition: sf_vec:15
tools::sg::sf_vec2f::setValue
void setValue(float a_0, float a_1)
Definition: sf_vec2f:32
tools::sg::field::operator=
field & operator=(const field &)
Definition: field:57
TOOLS_HEADER
#define TOOLS_HEADER(a__class, a__sclass, a__parent)
Definition: HEADER:10
sf_vec
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::sg::sf_vec2f
Definition: sf_vec2f:15
tools::sg::bsf< vec2f >::value
vec2f & value()
Definition: bsf:98
tools::sg::sf_vec2f::setValue
void setValue(const vec2f &a_v)
Definition: sf_vec2f:31
tools::sg::sf_vec2f::sf_vec2f
sf_vec2f(const sf_vec2f &a_from)
Definition: sf_vec2f:23
tools::sg::sf_vec2f::operator+=
sf_vec2f & operator+=(const vec2f &a_value)
Definition: sf_vec2f:29
tools::sg::sf_vec2f::sf_vec2f
sf_vec2f(const vec2f &a_v)
Definition: sf_vec2f:20
tools::sg::sf_vec2f::~sf_vec2f
virtual ~sf_vec2f()
Definition: sf_vec2f:21