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

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

ベースを作成中...

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