xc
ConjVariables.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // xc utils library; general purpose classes and functions.
4 //
5 // Copyright (C) Luis C. PĂ©rez Tato
6 //
7 // XC utils is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // This software is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program.
19 // If not, see <http://www.gnu.org/licenses/>.
20 //----------------------------------------------------------------------------
21 //ConjVariables.h
22 
23 #ifndef CONJVARIABLES_H
24 #define CONJVARIABLES_H
25 
26 #include "TablaVariables.h"
27 #include <set>
28 #include <vector>
29 
30 class ConjVariables : public std::set<const Variable *>
31  {
32  public:
33  typedef std::set<const Variable *> pset_CV;
34 
35  bool In(const Variable *var) const;
36  bool In(const Variable &var) const;
37  std::vector<std::string> getNames(void) const;
38  };
39 
40 std::ostream &operator << (std::ostream &stream,const ConjVariables &cv);
41 
42 
43 #endif
Definition: Variable.h:31
bool In(const Variable *var) const
Devuelve verdadero si la variable pertenece al conjunto.
Definition: ConjVariables.cc:26
Definition: ConjVariables.h:30
std::vector< std::string > getNames(void) const
Return the names of the variables.
Definition: ConjVariables.cc:37