PageRenderTime 25ms CodeModel.GetById 21ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/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
10#include "LispQuote.h"
11
12LispQuote::LispQuote(LispObject *item){
13	this->item = item->copy();
14}
15
16LispQuote::LispQuote(const LispQuote &original){
17	this->item = original.item->copy();
18}
19
20LispQuote::~LispQuote(){
21	delete copy();
22}
23
24int LispQuote::getClassIdentifier(){
25	return LISPQUOTE;
26}
27
28LispObject* LispQuote::copy(){
29	return new LispQuote(*this);
30}
31
32LispObject* LispQuote::getItem(){
33	return item->copy();
34}