Lemma is an Electromagnetics API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

UngroundedElectricDipole.cpp 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 01/29/2014 08:55:18 AM
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email Trevor.Irons@xri-geo.com
  14. * @copyright Copyright (c) 2014, XRI Geophysics, LLC
  15. * @copyright Copyright (c) 2014, Trevor Irons
  16. */
  17. #include "UngroundedElectricDipole.h"
  18. namespace Lemma {
  19. // ==================== FRIEND METHODS =====================
  20. std::ostream &operator<<(std::ostream &stream, const UngroundedElectricDipole &ob) {
  21. stream << *(DipoleSource*)(&ob);
  22. return stream;
  23. }
  24. // ==================== LIFECYCLE =======================
  25. //--------------------------------------------------------------------------------------
  26. // Class: UngroundedElectricDipole
  27. // Method: UngroundedElectricDipole
  28. // Description: constructor (protected)
  29. //--------------------------------------------------------------------------------------
  30. UngroundedElectricDipole::UngroundedElectricDipole (const std::string& name) : DipoleSource(name) {
  31. } // ----- end of method UngroundedElectricDipole::UngroundedElectricDipole (constructor) -----
  32. //--------------------------------------------------------------------------------------
  33. // Class: UngroundedElectricDipole
  34. // Method: New()
  35. // Description: public constructor
  36. //--------------------------------------------------------------------------------------
  37. UngroundedElectricDipole* UngroundedElectricDipole::New() {
  38. UngroundedElectricDipole* Obj = new UngroundedElectricDipole("UngroundedElectricDipole");
  39. Obj->AttachTo(Obj);
  40. return Obj;
  41. }
  42. //--------------------------------------------------------------------------------------
  43. // Class: UngroundedElectricDipole
  44. // Method: ~UngroundedElectricDipole
  45. // Description: destructor (protected)
  46. //--------------------------------------------------------------------------------------
  47. UngroundedElectricDipole::~UngroundedElectricDipole () {
  48. } // ----- end of method UngroundedElectricDipole::~UngroundedElectricDipole (destructor) -----
  49. //--------------------------------------------------------------------------------------
  50. // Class: UngroundedElectricDipole
  51. // Method: Delete
  52. // Description: public destructor
  53. //--------------------------------------------------------------------------------------
  54. void UngroundedElectricDipole::Delete() {
  55. this->DetachFrom(this);
  56. }
  57. //--------------------------------------------------------------------------------------
  58. // Class: UngroundedElectricDipole
  59. // Method: Release
  60. // Description: destructor (protected)
  61. //--------------------------------------------------------------------------------------
  62. void UngroundedElectricDipole::Release() {
  63. delete this;
  64. }
  65. } // ----- end of Lemma name -----