Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

IdentifierExpr.cpp

Go to the documentation of this file.
00001 #include "IdentifierExpr.h"
00002 
00003 CIdentifierExpr::CIdentifierExpr(const CCString& identifier,CValue* id_context)
00004 :m_identifier(identifier)

00005 {
00006         if (id_context)
00007                 m_idContext = id_context->AddRef();
00008         else
00009                 m_idContext=NULL;
00010 }
00011 
00012 
00013 CIdentifierExpr::~CIdentifierExpr()

00014 {
00015         if (m_idContext)
00016                 m_idContext->Release();
00017 }
00018 
00019 CValue* CIdentifierExpr::Calculate()

00020 {
00021         CValue* result = NULL;
00022         if (m_idContext)
00023                 result = m_idContext->FindIdentifier(m_identifier);
00024 
00025         return result;
00026 }

Generated at Thu Feb 1 13:03:03 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000