};
/**
- * Returns pointer to the correct
+ * Returns pointer to the correct
* derived class based on description.
*/
PatternBase * pattern_factory (const std::string& description);
-
+
/**
* Test for the string being an
* integer. If bounds are given
* function.
*/
virtual PatternBase * clone () const;
-
+
/**
* Creates new object if the start
* of description matches description_init.
- * Ownership of that object is
+ * Ownership of that object is
* transferred to the caller of this
* function.
- */
+ */
static Integer* create (const std::string& description);
private:
* function.
*/
virtual PatternBase * clone () const;
-
+
/**
* Creates new object if the start
* of description matches description_init.
- * Ownership of that object is
+ * Ownership of that object is
* transferred to the caller of this
* function.
- */
+ */
static Double* create (const std::string& description);
private:
* bytes) of this object.
*/
unsigned int memory_consumption () const;
-
+
/**
* Creates new object if the start
* of description matches description_init.
- * Ownership of that object is
+ * Ownership of that object is
* transferred to the caller of this
* function.
- */
+ */
static Selection* create (const std::string& description);
private:
* function.
*/
virtual PatternBase * clone () const;
-
+
/**
* Creates new object if the start
* of description matches description_init.
- * Ownership of that object is
+ * Ownership of that object is
* transferred to the caller of this
* function.
- */
+ */
static List* create (const std::string& description);
/**
* function.
*/
virtual PatternBase * clone () const;
-
+
/**
* Creates new object if the start
* of description matches description_init.
- * Ownership of that object is
+ * Ownership of that object is
* transferred to the caller of this
* function.
- */
+ */
static MultipleSelection* create (const std::string& description);
/**
* match.
*/
virtual std::string description () const;
-
+
/**
* Return a copy of the
* present object, which is
* function.
*/
virtual PatternBase * clone () const;
-
+
/**
* Creates new object if the start
* of description matches description_init.
- * Ownership of that object is
+ * Ownership of that object is
* transferred to the caller of this
* function.
- */
- static Bool* create (const std::string& description);
-
+ */
+ static Bool* create (const std::string& description);
+
private:
/**
* Initial part of description
* function.
*/
virtual PatternBase * clone () const;
-
+
/**
* Creates new object if the start
* of description matches description_init.
- * Ownership of that object is
+ * Ownership of that object is
* transferred to the caller of this
* function.
- */
+ */
static Anything* create (const std::string& description);
-
+
private:
/**
* Initial part of description
* file type flag
*/
FileType file_type;
-
+
/**
* Creates new object if the start
* of description matches description_init.
- * Ownership of that object is
+ * Ownership of that object is
* transferred to the caller of this
* function.
- */
- static FileName* create (const std::string& description);
+ */
+ static FileName* create (const std::string& description);
private:
/**
* function.
*/
virtual PatternBase * clone () const;
-
+
/**
* Creates new object if the start
* of description matches description_init.
- * Ownership of that object is
+ * Ownership of that object is
* transferred to the caller of this
* function.
- */
- static DirectoryName* create (const std::string& description);
+ */
+ static DirectoryName* create (const std::string& description);
private:
/**
unsigned int memory_consumption () const;
/**
- * Write the data of this object to
+ * Write the data of this object to
* a stream for the purpose of serialization.
- */
+ */
template <class Archive>
void save (Archive & ar, const unsigned int version) const;
/**
* Read the data of this object
* from a stream for the purpose of serialization.
- */
+ */
template <class Archive>
void load (Archive & ar, const unsigned int version);
* Test for equality.
*/
bool operator == (const ParameterHandler & prm2) const;
-
+
/** @addtogroup Exceptions
* @{ */
template <class Archive>
inline
-void
+void
ParameterHandler::save (Archive & ar, const unsigned int) const
{
// Forward to serialization
ar & descriptions;
}
-
+
template <class Archive>
inline
-void
+void
ParameterHandler::load (Archive & ar, const unsigned int)
{
// Forward to serialization
patterns.push_back (std_cxx1x::shared_ptr<Patterns::PatternBase>(Patterns::pattern_factory(descriptions[j])));
}
-inline
-bool
-ParameterHandler::operator == (const ParameterHandler & prm2) const
-{
- if(patterns.size() != prm2.patterns.size())
- return false;
-
- for(unsigned int j=0; j<patterns.size(); ++j)
- if (patterns[j]->description() != prm2.patterns[j]->description())
- return false;
-
- // return !(*entries != *(prm2.entries));
- return true;
- // TODO: Fix
-}
DEAL_II_NAMESPACE_CLOSE