Discrete Element Methods (Alpha)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DEMParticle.h 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /* This file is part of Lemma, a geophysical modelling and inversion API.
  2. * More information is available at http://lemmasoftware.org
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. /**
  9. * @file
  10. * @date 05/31/2016 01:31:28 PM
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email tirons@egi.utah.edu
  14. * @copyright Copyright (c) 2016, University of Utah
  15. * @copyright Copyright (c) 2016, Lemma Software, LLC
  16. */
  17. #ifndef DEMPARTICLE_INC
  18. #define DEMPARTICLE_INC
  19. #include "LemmaObject.h"
  20. namespace Lemma {
  21. /**
  22. \brief
  23. \details
  24. */
  25. class DEMParticle : public LemmaObject {
  26. friend std::ostream &operator<<(std::ostream &stream,
  27. const DEMParticle &ob);
  28. public:
  29. // ==================== LIFECYCLE =======================
  30. /**
  31. * @copybrief LemmaObject::New()
  32. * @copydetails LemmaObject::New()
  33. */
  34. static DEMParticle* New();
  35. /**
  36. * @copybrief LemmaObject::Delete()
  37. * @copydetails LemmaObject::Delete()
  38. */
  39. void Delete();
  40. // ==================== OPERATORS =======================
  41. // ==================== OPERATIONS =======================
  42. // ==================== ACCESS =======================
  43. // ==================== INQUIRY =======================
  44. #ifdef HAVE_YAMLCPP
  45. /**
  46. * Uses YAML to serialize this object.
  47. * @return a YAML::Node
  48. */
  49. YAML::Node Serialize() const;
  50. /**
  51. * Constructs an object from a YAML::Node.
  52. */
  53. static DEMParticle* DeSerialize(const YAML::Node& node);
  54. #endif
  55. protected:
  56. // ==================== LIFECYCLE =======================
  57. /** Default protected constructor, use New */
  58. DEMParticle (const std::string& name);
  59. #ifdef HAVE_YAMLCPP
  60. /** Protected DeDerializing constructor, use factory DeSerialize method*/
  61. DEMParticle (const YAML::Node& node);
  62. #endif
  63. /** Default protected destructor, use Delete */
  64. ~DEMParticle ();
  65. /**
  66. * @copybrief LemmaObject::Release()
  67. * @copydetails LemmaObject::Release()
  68. */
  69. void Release();
  70. private:
  71. // ==================== DATA MEMBERS =========================
  72. }; // ----- end of class DEMParticle -----
  73. } // ----- end of Lemma name -----
  74. #endif // ----- #ifndef DEMPARTICLE_INC -----