source: dev/trunk/jenga/src/smoothie/Prototype.cpp@ 171

Last change on this file since 171 was 171, checked in by dai_9181, 17 years ago

コンパイルできるようにした

File size: 788 bytes
Line 
1#include <jenga/include/smoothie/BasicFixed.h>
2#include <jenga/include/smoothie/Class.h>
3
4bool Prototype::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const
5{
6 if( GetName() != name ){
7 return false;
8 }
9
10 return NamespaceScopes::IsSameArea( GetNamespaceScopes(), namespaceScopes );
11}
12bool Prototype::IsEqualSymbol( const Prototype &prototype ) const
13{
14 return IsEqualSymbol( prototype.GetNamespaceScopes(), prototype.GetName() );
15}
16bool Prototype::IsEqualSymbol( const string &fullName ) const
17{
18 char AreaName[VN_SIZE] = ""; //オブジェクト変数
19 char NestName[VN_SIZE] = ""; //入れ子メンバ
20 bool isNest = CClass::SplitName( fullName.c_str(), AreaName, NestName );
21
22 return IsEqualSymbol( NamespaceScopes( AreaName ), NestName );
23}
Note: See TracBrowser for help on using the repository browser.