source: dev/trunk/ab5.0/abdev/ab_common/src/Lexical/Template.cpp@ 797

Last change on this file since 797 was 640, checked in by dai_9181, 16 years ago

静的リンクリンカの依存関係解決モジュールを製作中

File size: 682 bytes
Line 
1#include "stdafx.h"
2
3ExpandedTemplateClass::~ExpandedTemplateClass()
4{
5 if( pClass )
6 {
7 delete pClass;
8 }
9}
10
11bool ExpandedTemplateClass::Resolve( const ObjectModule &resolver, ResolveErrors &resolveErrors )
12{
13 if( pClass->IsNeedResolve() )
14 {
15 CClass *pTempClass = const_cast<CClass *>(resolver.meta.GetClasses().FindLike( pClass ));
16 if( pTempClass )
17 {
18 this->pClass = pTempClass;
19 }
20 else
21 {
22 resolveErrors.Add( ResolveError( this->pClass->GetRelationalObjectModuleIndex(), this->pClass->GetFullName() ) );
23 }
24 }
25
26 BOOST_FOREACH( Type &actualType, actualTypes )
27 {
28 actualType.Resolve( resolver, resolveErrors );
29 }
30
31 return true;
32}
Note: See TracBrowser for help on using the repository browser.