From: Robert M. <mc...@cf...> - 2003-04-14 17:35:09
|
Suppose we have the follow code: namespace A { namespace B { ... Foo<T>::bar(int i, T x) { ... } Here is a list of names that traceString does or could generate for you. $(NS) or $(NAMESPACE) : A::B $(CLASS) : Foo<T> $(FQCLASS) : A::B::Foo<T> * $(BNAME) : bar $(FQNAME) : A::B::Foo<T>::bar(int i, T x) * $(ARGNAME) : bar(int i, T x) * $(NAME) : A::B::Foo<T>::bar $(T) or $(TEMPLATE) : 1 All the name and their definitions are up for discussion. In particular the names BNAME, ARGNAME, and NAME may need better handles. The idea behind TEMPLATE is that it would be 1 in the case of angle brackets found in the class definition (e.g Foo<T> versus Foo). Comments? R. |