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

Member Class Reference

#include <member.h>

Inheritance diagram for Member:

Inheritance graph
[legend]
Collaboration diagram for Member:

Collaboration graph
[legend]
List of all members.

Public Methods

 Member ()
 Member (const Member &)
 Member (Class *, Ptree *)
void Set (Class *, Ptree *, int)
void Signature (TypeInfo &t) const
PtreeName ()
PtreeComments ()
int Nth ()
ClassSupplier ()
bool IsConstructor ()
bool IsDestructor ()
bool IsFunction ()
bool IsPublic ()
bool IsProtected ()
bool IsPrivate ()
bool IsStatic ()
bool IsMutable ()
bool IsInline ()
bool IsVirtual ()
bool IsPureVirtual ()
PtreeGetUserMemberModifier ()
PtreeGetUserAccessSpecifier ()
bool GetUserArgumentModifiers (PtreeArray &result)
void Remove ()
void SetName (Ptree *)
void SetQualifiedName (Ptree *)
PtreeNewName ()
PtreeArgumentList ()
void SetArgumentList (Ptree *)
PtreeNewArgumentList ()
PtreeMemberInitializers ()
void SetMemberInitializers (Ptree *)
PtreeNewMemberInitializers ()
PtreeFunctionBody ()
void SetFunctionBody (Ptree *)
PtreeNewFunctionBody ()
PtreeArguments ()

Static Public Methods

void Copy (Member *, void *)

Protected Methods

bool IsInlineFuncImpl ()
void SetName (Ptree *, Ptree *)
PtreeArgumentList (Ptree *decl)
PtreeArguments (Ptree *, int)
PtreeMemberInitializers (Ptree *decl)
bool IsFunctionImplementation ()

Protected Attributes

Ptreeimplementation
Ptreeoriginal_decl

Private Methods

char * Name (int &)
bool Find ()

Private Attributes

bool removed
Ptreenew_name
Ptreenew_args
Ptreenew_init
Ptreenew_body
bool arg_name_filled
Classmetaobject
Ptreedeclarator
int nth

Friends

class ChangedMemberList

Constructor & Destructor Documentation

Member::Member  
 

Definition at line 26 of file member.cc.

References arg_name_filled, declarator, FALSE, implementation, metaobject, new_args, new_body, new_init, new_name, nil, nth, original_decl, and removed.

Member::Member const Member &   
 

Definition at line 42 of file member.cc.

References arg_name_filled, declarator, implementation, metaobject, new_args, new_body, new_init, new_name, nth, original_decl, and removed.

Member::Member Class  ,
Ptree  
 

Definition at line 58 of file member.cc.

References arg_name_filled, declarator, FALSE, implementation, metaobject, new_args, new_body, new_init, new_name, nil, nth, original_decl, and removed.


Member Function Documentation

Ptree * Member::ArgumentList Ptree   decl [protected]
 

Definition at line 392 of file member.cc.

References Walker::GetArgDeclList(), and nil.

Ptree * Member::ArgumentList  
 

Definition at line 384 of file member.cc.

References declarator, IsFunctionImplementation(), and original_decl.

Referenced by Arguments(), Class::TranslateFunctionBody(), and Metaclass::TranslateMemberFunction().

Ptree * Member::Arguments Ptree  ,
int   
[protected]
 

Definition at line 454 of file member.cc.

References arg_name_filled, Walker::argument_name, Arguments(), Ptree::Cadr(), Ptree::Car(), Ptree::Cddr(), Ptree::Cdr(), Ptree::Cons(), Ptree::IsA(), Ptree::IsLeaf(), Ptree::Make(), nil, ntUserdefKeyword, REGISTER, Ptree::Second(), Ptree::Third(), and TRUE.

Ptree * Member::Arguments  
 

Definition at line 449 of file member.cc.

References ArgumentList().

Referenced by Arguments().

Ptree * Member::Comments  
 

Definition at line 127 of file member.cc.

References declarator, Ptree::IsA(), MopErrorMessage(), nil, and ntDeclarator.

void Member::Copy Member *   ,
void *   
[static]
 

Definition at line 489 of file member.cc.

References ChangedMemberList::Copy(), ChangedMemberList::Cmem::declarator, ChangedMemberList::Cmem::def, implementation, IsFunctionImplementation(), original_decl, and Class::Undefined.

Referenced by Class::AppendAfterToplevel(), and Class::InsertBeforeToplevel().

bool Member::Find   [private]
 

Definition at line 328 of file member.cc.

References MemberList::Mem::declarator, declarator, FALSE, Ptree::GetEncodedType(), Class::GetMemberList(), MemberList::Lookup(), metaobject, Name(), nil, nth, MemberList::Ref(), MemberList::Mem::supplying, and TRUE.

Referenced by ChangedMemberList::Copy(), FunctionBody(), GetUserAccessSpecifier(), GetUserArgumentModifiers(), GetUserMemberModifier(), IsInline(), IsMutable(), IsPrivate(), IsProtected(), IsPublic(), IsStatic(), IsVirtual(), Nth(), and Supplier().

Ptree * Member::FunctionBody  
 

Definition at line 430 of file member.cc.

References Find(), Class::GetMemberList(), implementation, Ptree::IsA(), IsFunctionImplementation(), metaobject, nil, ntDeclarator, nth, Ptree::Nth(), MemberList::Ref(), and Ptree::Third().

Ptree * Member::GetUserAccessSpecifier  
 

Definition at line 288 of file member.cc.

References Find(), Class::GetMemberList(), metaobject, nil, nth, and MemberList::Ref().

bool Member::GetUserArgumentModifiers PtreeArray   result
 

Definition at line 296 of file member.cc.

References PtreeArray::Append(), Ptree::Car(), PtreeArray::Clear(), declarator, FALSE, Find(), Walker::GetArgDeclList(), Ptree::IsA(), Ptree::IsLeaf(), Ptree::ListTail(), nil, ntUserdefKeyword, and TRUE.

Ptree * Member::GetUserMemberModifier  
 

Definition at line 320 of file member.cc.

References Find(), Class::GetMemberList(), metaobject, nil, nth, and MemberList::Ref().

bool Member::IsConstructor  
 

Definition at line 156 of file member.cc.

References declarator, Ptree::Eq(), FALSE, Encoding::GetBaseName(), Ptree::GetEncodedName(), Class::GetEnvironment(), metaobject, MopErrorMessage(), Class::Name(), nil, and Supplier().

Referenced by MemberInitializers().

bool Member::IsDestructor  
 

Definition at line 178 of file member.cc.

References declarator, FALSE, Encoding::GetBaseName(), Ptree::GetEncodedName(), Class::GetEnvironment(), metaobject, MopErrorMessage(), and nil.

bool Member::IsFunction  
 

Definition at line 197 of file member.cc.

References TypeInfo::IsFunction(), and Signature().

Referenced by Metaclass::FindFirstNotInlinedVirtualFunction(), and IsPureVirtual().

bool Member::IsFunctionImplementation   [inline, protected]
 

Definition at line 89 of file member.h.

References nil.

Referenced by ArgumentList(), Copy(), FunctionBody(), IsInline(), MemberInitializers(), and SetName().

bool Member::IsInline  
 

Definition at line 247 of file member.cc.

References FALSE, Find(), Class::GetMemberList(), IsFunctionImplementation(), IsInlineFuncImpl(), metaobject, nth, MemberList::Ref(), and TRUE.

Referenced by Metaclass::FindFirstNotInlinedVirtualFunction(), and Metaclass::TranslateMemberFunction().

bool Member::IsInlineFuncImpl   [protected]
 

Definition at line 258 of file member.cc.

References Ptree::Car(), Ptree::Cdr(), FALSE, implementation, INLINE, Ptree::IsA(), nil, and TRUE.

Referenced by IsInline().

bool Member::IsMutable  
 

Definition at line 239 of file member.cc.

References FALSE, Find(), Class::GetMemberList(), metaobject, nth, and MemberList::Ref().

bool Member::IsPrivate  
 

Definition at line 222 of file member.cc.

References FALSE, Find(), Class::GetMemberList(), metaobject, nth, PRIVATE, and MemberList::Ref().

bool Member::IsProtected  
 

Definition at line 213 of file member.cc.

References FALSE, Find(), Class::GetMemberList(), metaobject, nth, PROTECTED, and MemberList::Ref().

bool Member::IsPublic  
 

Definition at line 204 of file member.cc.

References FALSE, Find(), Class::GetMemberList(), metaobject, nth, PUBLIC, and MemberList::Ref().

bool Member::IsPureVirtual  
 

Definition at line 280 of file member.cc.

References Ptree::Car(), declarator, Ptree::Eq(), FALSE, IsFunction(), and Ptree::Last().

bool Member::IsStatic  
 

Definition at line 231 of file member.cc.

References FALSE, Find(), Class::GetMemberList(), metaobject, nth, and MemberList::Ref().

Referenced by Metaclass::GetFinalizer(), and Metaclass::InsertInitialize().

bool Member::IsVirtual  
 

Definition at line 272 of file member.cc.

References FALSE, Find(), Class::GetMemberList(), metaobject, nth, and MemberList::Ref().

Referenced by Metaclass::FindFirstNotInlinedVirtualFunction().

Ptree * Member::MemberInitializers Ptree   decl [protected]
 

Definition at line 414 of file member.cc.

References Ptree::Car(), Ptree::Eq(), IsConstructor(), Ptree::IsLeaf(), Ptree::Last(), and nil.

Ptree * Member::MemberInitializers  
 

Definition at line 406 of file member.cc.

References declarator, IsFunctionImplementation(), and original_decl.

char * Member::Name int &    [private]
 

Definition at line 111 of file member.cc.

References declarator, Encoding::GetBaseName(), Ptree::GetEncodedName(), Class::GetEnvironment(), metaobject, MopErrorMessage(), and nil.

Ptree * Member::Name  
 

Definition at line 104 of file member.cc.

References Encoding::NameToPtree().

Referenced by Find(), Class::NthMemberName(), and Metaclass::TranslateMemberFunction().

Ptree* Member::NewArgumentList   [inline]
 

Definition at line 60 of file member.h.

Ptree* Member::NewFunctionBody   [inline]
 

Definition at line 66 of file member.h.

Ptree* Member::NewMemberInitializers   [inline]
 

Definition at line 63 of file member.h.

Ptree* Member::NewName   [inline]
 

Definition at line 57 of file member.h.

int Member::Nth  
 

Definition at line 140 of file member.cc.

References Find(), and nth.

Referenced by Class::IsMember(), and Metaclass::TranslateMemberFunction().

void Member::Remove   [inline]
 

Definition at line 54 of file member.h.

References TRUE.

Referenced by Class::RemoveMember().

void Member::Set Class  ,
Ptree  ,
int   
 

Definition at line 74 of file member.cc.

References arg_name_filled, declarator, FALSE, implementation, metaobject, new_args, new_body, new_init, new_name, nil, nth, original_decl, and removed.

Referenced by Class::LookupMember(), and Class::NthMember().

void Member::SetArgumentList Ptree  
 

Definition at line 401 of file member.cc.

References new_args.

void Member::SetFunctionBody Ptree  
 

Definition at line 444 of file member.cc.

References new_body.

void Member::SetMemberInitializers Ptree  
 

Definition at line 425 of file member.cc.

References new_init.

void Member::SetName Ptree  ,
Ptree  
[protected]
 

Definition at line 367 of file member.cc.

References Ptree::First(), Ptree::GetEncodedName(), Ptree::Last(), MopErrorMessage(), new_name, nil, and Ptree::ShallowSubst().

void Member::SetName Ptree  
 

Definition at line 359 of file member.cc.

References declarator, IsFunctionImplementation(), and original_decl.

void Member::SetQualifiedName Ptree  
 

Definition at line 354 of file member.cc.

References new_name.

void Member::Signature TypeInfo   t const
 

Definition at line 90 of file member.cc.

References declarator, Ptree::GetEncodedType(), Class::GetEnvironment(), metaobject, MopErrorMessage(), nil, TypeInfo::Set(), and TypeInfo::Unknown().

Referenced by IsFunction().

Class * Member::Supplier  
 

Definition at line 148 of file member.cc.

References Find(), Class::GetMemberList(), metaobject, nil, nth, and MemberList::Ref().

Referenced by Metaclass::CheckObsoleteness(), Metaclass::FindFirstNotInlinedVirtualFunction(), Metaclass::GetFinalizer(), Metaclass::InsertInitialize(), and IsConstructor().


Friends And Related Function Documentation

friend class ChangedMemberList [friend]
 

Definition at line 105 of file member.h.


Member Data Documentation

bool Member::arg_name_filled [private]
 

Definition at line 99 of file member.h.

Referenced by Arguments(), ChangedMemberList::Copy(), Member(), and Set().

Ptree* Member::declarator [private]
 

Definition at line 102 of file member.h.

Referenced by ArgumentList(), Comments(), ChangedMemberList::Copy(), Find(), GetUserArgumentModifiers(), IsConstructor(), IsDestructor(), IsPureVirtual(), Member(), MemberInitializers(), Name(), Set(), SetName(), and Signature().

Ptree* Member::implementation [protected]
 

Definition at line 90 of file member.h.

Referenced by Copy(), FunctionBody(), IsInlineFuncImpl(), Member(), MemberFunction::MemberFunction(), and Set().

Class* Member::metaobject [private]
 

Definition at line 101 of file member.h.

Referenced by ChangedMemberList::Copy(), Find(), FunctionBody(), GetUserAccessSpecifier(), GetUserMemberModifier(), IsConstructor(), IsDestructor(), IsInline(), IsMutable(), IsPrivate(), IsProtected(), IsPublic(), IsStatic(), IsVirtual(), Member(), Name(), Set(), Signature(), and Supplier().

Ptree* Member::new_args [private]
 

Definition at line 96 of file member.h.

Referenced by ChangedMemberList::Copy(), Member(), Set(), and SetArgumentList().

Ptree* Member::new_body [private]
 

Definition at line 98 of file member.h.

Referenced by ChangedMemberList::Copy(), Member(), Set(), and SetFunctionBody().

Ptree* Member::new_init [private]
 

Definition at line 97 of file member.h.

Referenced by ChangedMemberList::Copy(), Member(), Set(), and SetMemberInitializers().

Ptree* Member::new_name [private]
 

Definition at line 95 of file member.h.

Referenced by ChangedMemberList::Copy(), Member(), Set(), SetName(), and SetQualifiedName().

int Member::nth [private]
 

Definition at line 103 of file member.h.

Referenced by ChangedMemberList::Copy(), Find(), FunctionBody(), GetUserAccessSpecifier(), GetUserMemberModifier(), IsInline(), IsMutable(), IsPrivate(), IsProtected(), IsPublic(), IsStatic(), IsVirtual(), Member(), Nth(), Set(), and Supplier().

Ptree* Member::original_decl [protected]
 

Definition at line 91 of file member.h.

Referenced by ArgumentList(), Copy(), Member(), MemberFunction::MemberFunction(), MemberInitializers(), Set(), and SetName().

bool Member::removed [private]
 

Definition at line 94 of file member.h.

Referenced by ChangedMemberList::Copy(), Member(), and Set().


The documentation for this class was generated from the following files:
Generated on Mon Feb 10 17:35:53 2003 for VFiasco Semantics Compiler by doxygen1.2.15