| 
    queso-0.55.0
    
   | 
 
A templated class representing the concatenation of two vector subsets. More...
#include <ConcatenationSubset.h>


Public Member Functions | |
Constructor/Destructor methods.  | |
| ConcatenationSubset (const char *prefix, const VectorSpace< V, M > &vectorSpace, const VectorSet< V, M > &set1, const VectorSet< V, M > &set2) | |
| Constructor - two sets only.  More... | |
| ConcatenationSubset (const char *prefix, const VectorSpace< V, M > &vectorSpace, double volume, const std::vector< const VectorSet< V, M > * > &sets) | |
| Constructor - collection of sets.  More... | |
| ~ConcatenationSubset () | |
| Destructor.  More... | |
Mathematical methods.  | |
| bool | contains (const V &vec) const | 
Determines whether each one of the subsets m_sets (class' private attributes) contains vector vec.  More... | |
I/O methods.  | |
| void | print (std::ostream &os) const | 
| Prints the subsets (via protected attribute m_sets).  More... | |
  Public Member Functions inherited from QUESO::VectorSubset< V, M > | |
| VectorSubset () | |
| Default Constructor.  More... | |
| VectorSubset (const char *prefix, const VectorSpace< V, M > &vectorSpace, double volume) | |
| Shaped constructor (with volume).  More... | |
| virtual | ~VectorSubset () | 
| Destructor.  More... | |
| const VectorSpace< V, M > & | vectorSpace () const | 
Vector space to which this set belongs to. See template specialization.  More... | |
  Public Member Functions inherited from QUESO::VectorSet< V, M > | |
| VectorSet (const BaseEnvironment &env, const char *prefix, double volume) | |
| Shaped constructor.  More... | |
| virtual | ~VectorSet () | 
| Virtual destructor.  More... | |
| const BaseEnvironment & | env () const | 
| Environment. Access to private attribute m_env.  More... | |
| const std::string & | prefix () const | 
| Access to private attribute m_prefix.  More... | |
| double | volume () const | 
| Set volume; access to private attribute m_volume.  More... | |
Protected Attributes | |
| std::vector< const VectorSet < V, M > * >  | m_sets | 
  Protected Attributes inherited from QUESO::VectorSubset< V, M > | |
| const VectorSpace< V, M > * | m_vectorSpace | 
  Protected Attributes inherited from QUESO::VectorSet< V, M > | |
| const BaseEnvironment & | m_env | 
| std::string | m_prefix | 
| double | m_volume | 
A templated class representing the concatenation of two vector subsets.
This class is used to represent the concatenation of two subsets. It allows concatenation of both two subsets as well as a collection of subsets into one.
Definition at line 43 of file ConcatenationSubset.h.
| QUESO::ConcatenationSubset< V, M >::ConcatenationSubset | ( | const char * | prefix, | 
| const VectorSpace< V, M > & | vectorSpace, | ||
| const VectorSet< V, M > & | set1, | ||
| const VectorSet< V, M > & | set2 | ||
| ) | 
Constructor - two sets only.
It concatenates set1 and set2 into a new set, m_set, of volume given by set1.volume()*set2.volume().
Definition at line 35 of file ConcatenationSubset.C.
References QUESO::ConcatenationSubset< V, M >::m_sets.
| QUESO::ConcatenationSubset< V, M >::ConcatenationSubset | ( | const char * | prefix, | 
| const VectorSpace< V, M > & | vectorSpace, | ||
| double | volume, | ||
| const std::vector< const VectorSet< V, M > * > & | sets | ||
| ) | 
Constructor - collection of sets.
It concatenates a collection of n subsets (using the std::vector to represent such collection) into a new set, m_set, of volume given by sets[0].volume()*sets[1].volume()*...*sets[n-1].volume().
Definition at line 48 of file ConcatenationSubset.C.
References QUESO::ConcatenationSubset< V, M >::m_sets.
| QUESO::ConcatenationSubset< V, M >::~ConcatenationSubset | ( | ) | 
      
  | 
  virtual | 
Determines whether each one of the subsets m_sets (class' private attributes) contains vector vec. 
Implements QUESO::VectorSubset< V, M >.
Definition at line 68 of file ConcatenationSubset.C.
References queso_require_equal_to_msg.
      
  | 
  virtual | 
Prints the subsets (via protected attribute m_sets).
Reimplemented from QUESO::VectorSubset< V, M >.
Definition at line 97 of file ConcatenationSubset.C.
      
  | 
  protected | 
Definition at line 83 of file ConcatenationSubset.h.
Referenced by QUESO::ConcatenationSubset< V, M >::ConcatenationSubset().