/LispQuote.cpp

https://bitbucket.org/hardtack/resoup · C++ · 34 lines · 19 code · 7 blank · 8 comment · 0 complexity · 41c6f0215e6c1fd2dfe2e75f9eeefd07 MD5 · raw file

  1. /*
  2. * LispQuote.cpp
  3. * resoup
  4. *
  5. * Created by ??? on 10. 8. 29..
  6. * Copyright 2010 Unplug. All rights reserved.
  7. *
  8. */
  9. #include "LispQuote.h"
  10. LispQuote::LispQuote(LispObject *item){
  11. this->item = item->copy();
  12. }
  13. LispQuote::LispQuote(const LispQuote &original){
  14. this->item = original.item->copy();
  15. }
  16. LispQuote::~LispQuote(){
  17. delete copy();
  18. }
  19. int LispQuote::getClassIdentifier(){
  20. return LISPQUOTE;
  21. }
  22. LispObject* LispQuote::copy(){
  23. return new LispQuote(*this);
  24. }
  25. LispObject* LispQuote::getItem(){
  26. return item->copy();
  27. }