Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/sg/sf_vec4f is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef tools_sg_sf_vec4f
0005 #define tools_sg_sf_vec4f
0006 
0007 #include "sf_vec"
0008 
0009 #include "../lina/vec4f"
0010 #include "../HEADER"
0011 
0012 namespace tools {
0013 namespace sg {
0014 
0015 class sf_vec4f : public sf_vec<vec4f,float> {
0016   typedef sf_vec<vec4f,float> _parent;
0017   TOOLS_HEADER(sf_vec4f,tools::sg::sf_vec4f,_parent)
0018 public:
0019   sf_vec4f():parent(){}
0020   sf_vec4f(const vec4f& a_v):parent(a_v){}
0021   virtual ~sf_vec4f(){}
0022 public:
0023   sf_vec4f(const sf_vec4f& a_from):parent(a_from){}
0024   sf_vec4f& operator=(const sf_vec4f& a_from){
0025     parent::operator=(a_from);
0026     return *this;
0027   }
0028 public:
0029   sf_vec4f& operator+=(const vec4f& a_value) {parent::operator+=(a_value);return *this;}
0030 public:
0031   void set_value(float a_0,float a_1,float a_2,float a_3) {
0032     value(vec4f(a_0,a_1,a_2,a_3));
0033   }
0034 };
0035 
0036 }}
0037 
0038 #endif