queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
DiscreteSubset.C
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008-2017 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #include <queso/VectorSpace.h>
26 #include <queso/DiscreteSubset.h>
27 
28 namespace QUESO {
29 
30 // Default constructor
31 template<class V, class M>
33  const VectorSpace<V,M>& vectorSpace,
34  const std::vector<V*>& elements)
35  : VectorSubset<V,M>(prefix, vectorSpace, 0.),
36  m_elements(elements.size(),NULL)
37 {
38  queso_deprecated();
39 
40  m_volume = 0.;
41  queso_not_implemented();
42 }
43 
44 // Destructor
45 template<class V, class M>
47 {
48  queso_deprecated();
49 }
50 
51 // Mathematical methods
52 template<class V, class M>
53 bool DiscreteSubset<V,M>::contains(const V& vec) const
54 {
55  queso_deprecated();
56  queso_not_implemented();
57 }
58 
59 // I/O methods
60 template <class V, class M>
61 void DiscreteSubset<V,M>::print(std::ostream& os) const
62 {
63  queso_deprecated();
64 
65  os << "In DiscreteSubset<V,M>::print()"
66  << ": nothing to print"
67  << std::endl;
68 
69  return;
70 }
71 
72 } // End namespace QUESO
A class representing a vector space.
Definition: VectorSet.h:49
~DiscreteSubset()
Destructor.
A templated class for handling subsets.
Definition: VectorSubset.h:46
DiscreteSubset(const char *prefix, const VectorSpace< V, M > &vectorSpace, const std::vector< V * > &elements)
Default Constructor.
bool contains(const V &vec) const
Checks whether this discrete subset contains vector vec. TODO: incomplete code.
void print(std::ostream &os) const
Prints nothing.

Generated on Tue Jun 5 2018 19:48:54 for queso-0.57.1 by  doxygen 1.8.5