Lemma is an Electromagnetics API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Filter.h 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* This file is part of Lemma, a geophysical modelling and inversion API */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /**
  6. @file
  7. @author Trevor Irons
  8. @date 07/20/2010
  9. @version $Id: filter.h 193 2014-11-10 23:51:41Z tirons $
  10. **/
  11. #include "LemmaObject.h"
  12. namespace Lemma {
  13. // ===================================================================
  14. // Class: Filter
  15. /**
  16. @class Filter
  17. \ingroup LemmaCore
  18. \brief Abstract class for filtering.
  19. \details Derived classes include fourier domain and time domain filters.
  20. */
  21. // ===================================================================
  22. class Filter : public LemmaObject {
  23. friend std::ostream &operator<<(std::ostream &stream, const Filter& ob);
  24. public:
  25. // ==================== LIFECYCLE =======================
  26. /**
  27. * Uses YAML to serialize this object.
  28. * @return a YAML::Node
  29. */
  30. virtual YAML::Node Serialize() const;
  31. // ==================== OPERATORS =======================
  32. // ==================== OPERATIONS =======================
  33. // ==================== ACCESS =======================
  34. // ==================== INQUIRY =======================
  35. /** Returns the name of the underlying class, similiar to Python's type */
  36. virtual std::string GetName() const;
  37. protected:
  38. // ==================== LIFECYCLE =======================
  39. /// Default protected constructor.
  40. Filter ( const ctor_key& );
  41. /// Default protected constructor.
  42. Filter ( const YAML::Node& node, const ctor_key& );
  43. /// Default protected constructor.
  44. virtual ~Filter ();
  45. // ==================== DATA MEMBERS =========================
  46. private:
  47. /** ASCII string representation of the class name */
  48. static constexpr auto CName = "Filter";
  49. }; // ----- end of class Filter -----
  50. } // ----- end of Lemma name -----
  51. /* vim: set tabstop=4 expandtab: */
  52. /* vim: set filetype=cpp: */