/LispQuote.cpp
https://bitbucket.org/hardtack/resoup · C++ · 34 lines · 19 code · 7 blank · 8 comment · 0 complexity · 41c6f0215e6c1fd2dfe2e75f9eeefd07 MD5 · raw file
- /*
- * LispQuote.cpp
- * resoup
- *
- * Created by ??? on 10. 8. 29..
- * Copyright 2010 Unplug. All rights reserved.
- *
- */
- #include "LispQuote.h"
- LispQuote::LispQuote(LispObject *item){
- this->item = item->copy();
- }
- LispQuote::LispQuote(const LispQuote &original){
- this->item = original.item->copy();
- }
- LispQuote::~LispQuote(){
- delete copy();
- }
- int LispQuote::getClassIdentifier(){
- return LISPQUOTE;
- }
- LispObject* LispQuote::copy(){
- return new LispQuote(*this);
- }
- LispObject* LispQuote::getItem(){
- return item->copy();
- }