Documentation of CSL
property.h
Go to the documentation of this file.
1 // This file is part of MARTY.
2 //
3 // MARTY is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7 //
8 // MARTY is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with MARTY. If not, see <https://www.gnu.org/licenses/>.
15 
23 #ifndef PROPERTY_H_INCLUDED
24 #define PROPERTY_H_INCLUDED
25 
26 #include "equation.h"
27 
28 namespace csl {
29 
31 
32  protected:
33 
34  std::vector<Equation*> props;
35 
36  public:
37 
38  PropertyList();
39  PropertyList(const PropertyList&) = delete;
40  PropertyList(const PropertyList&&) = delete;
41  PropertyList& operator=(const PropertyList&) = delete;
42  PropertyList& operator=(const PropertyList&&) = delete;
43  ~PropertyList();
44 
45  void addProperty(const Expr& leftHandSide);
46  void addProperty(const Expr& leftHandSide, const Expr& rightHandSide);
47  void removeProperty(Equation* prop);
48  void removeProperty(const Expr& leftHandSide);
49  void removeProperty(const Expr& leftHandSide, const Expr& rightHandSide);
50 
51  csl::vector_expr apply(const Expr& expr) const;
52 
53  friend std::ostream& operator<<(std::ostream& fout, const PropertyList& prop);
54 };
55 
56 static PropertyList PROPERTIES;
57 } // End of namespace csl
58 
59 #endif
Namespace for csl library.
Definition: abreviation.h:34
Definition: property.h:30
Definition: equation.h:43
Expression type/.
Definition: abstract.h:1573