|
queso-0.56.1
|
A templated class for handling subsets. More...
#include <VectorSubset.h>


Public Member Functions | |
Constructor/Destructor methods. | |
| VectorSubset () | |
| Default Constructor. More... | |
| VectorSubset (const char *prefix, const VectorSpace< V, M > &vectorSpace, double volume) | |
| Shaped constructor (with volume). More... | |
| virtual | ~VectorSubset () |
| Destructor. More... | |
Mathematical methods. | |
| const VectorSpace< V, M > & | vectorSpace () const |
Vector space to which this set belongs to. See template specialization. More... | |
| virtual bool | contains (const V &vec) const =0 |
Returns whether this contains vector vec. See template specialization. More... | |
I/O methods. | |
| virtual void | print (std::ostream &os) const |
| Prints nothing. 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... | |
| virtual void | centroid (V &vec) const =0 |
Returns the set centroid in the vector vec. See template specialization. More... | |
| virtual void | moments (M &mat) const =0 |
Returns the set moments of inertia in the matrix mat. See template specialization. More... | |
Protected Attributes | |
| 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 for handling subsets.
This class specifies a subset. The most common example of a subset is a subset of a vector space, present, for instance, in the definition of a scalar function:
.
is a subset of the set
, which is also a vector space.
Definition at line 46 of file VectorSubset.h.
| QUESO::VectorSubset< V, M >::VectorSubset | ( | ) |
Default Constructor.
It should not be used by the user.
| QUESO::VectorSubset< V, M >::VectorSubset | ( | const char * | prefix, |
| const VectorSpace< V, M > & | vectorSpace, | ||
| double | volume | ||
| ) |
Shaped constructor (with volume).
Definition at line 34 of file VectorSubset.C.
References QUESO::BaseEnvironment::displayVerbosity(), QUESO::VectorSet< V, M >::m_env, and QUESO::BaseEnvironment::subDisplayFile().
|
virtual |
Destructor.
Definition at line 53 of file VectorSubset.C.
|
pure virtual |
Returns whether this contains vector vec. See template specialization.
Implements QUESO::VectorSet< V, M >.
Implemented in QUESO::ConcatenationSubset< V, M >, QUESO::BoxSubset< V, M >, QUESO::IntersectionSubset< V, M >, and QUESO::DiscreteSubset< V, M >.
|
virtual |
Prints nothing.
Reimplemented from QUESO::VectorSet< V, M >.
Reimplemented in QUESO::BoxSubset< V, M >, QUESO::BoxSubset< S_V, S_M >, QUESO::BoxSubset< P_V, P_M >, QUESO::BoxSubset< Q_V, Q_M >, QUESO::ConcatenationSubset< V, M >, QUESO::ConcatenationSubset< P_V, P_M >, QUESO::IntersectionSubset< V, M >, and QUESO::DiscreteSubset< V, M >.
Definition at line 75 of file VectorSubset.C.
|
virtual |
Vector space to which this set belongs to. See template specialization.
Implements QUESO::VectorSet< V, M >.
Definition at line 68 of file VectorSubset.C.
Referenced by QUESO::InstantiateIntersection().
|
protected |
Definition at line 81 of file VectorSubset.h.
Referenced by QUESO::BoxSubset< V, M >::BoxSubset().