OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
Rectangle.h
Go to the documentation of this file.
1#ifndef MSLANG_RECTANGLE_H
2#define MSLANG_RECTANGLE_H
3
4#include "Utilities/MSLang.h"
5
6namespace mslang {
7 struct Rectangle: public Base {
8 double width_m;
9 double height_m;
10
12 Base(),
13 width_m(0.0),
14 height_m(0.0)
15 { }
16
17 Rectangle(const Rectangle &right):
18 Base(right),
19 width_m(right.width_m),
20 height_m(right.height_m)
21 { }
22
23 virtual ~Rectangle() { }
24
25 virtual void print(int indentwidth);
26 virtual void computeBoundingBox();
27 virtual bool isInside(const Vector_t<double, 3> &R) const;
28 virtual void writeGnuplot(std::ofstream &out) const;
29 virtual void apply(std::vector<std::shared_ptr<Base> > &bfuncs);
30 virtual std::shared_ptr<Base> clone() const;
31 static bool parse_detail(iterator &it, const iterator &end, Function* fun);
32 };
33}
34
35#endif
ippl::Vector< T, Dim > Vector_t
PartBunch< T, Dim >::ConstIterator end(PartBunch< T, Dim > const &bunch)
std::string::iterator iterator
Definition MSLang.h:15
virtual void computeBoundingBox()
Definition Rectangle.cpp:24
virtual void apply(std::vector< std::shared_ptr< Base > > &bfuncs)
Definition Rectangle.cpp:89
static bool parse_detail(iterator &it, const iterator &end, Function *fun)
virtual void writeGnuplot(std::ofstream &out) const
Definition Rectangle.cpp:66
virtual std::shared_ptr< Base > clone() const
Definition Rectangle.cpp:93
virtual bool isInside(const Vector_t< double, 3 > &R) const
Definition Rectangle.cpp:50
virtual void print(int indentwidth)
Definition Rectangle.cpp:9
virtual ~Rectangle()
Definition Rectangle.h:23
Rectangle(const Rectangle &right)
Definition Rectangle.h:17