M
Martin Drautzburg
Hello all
Being farily new to C++ I have some questions concerning the structuring
of class implementations:
(1) Categories
Having some smalltalk background, I would like to group the methods of a
Class into categories like "Initializing", "Accessing" and the like.
This is basically an IDE question. I am using eclipse and the "Outline"
shows all my methods, but I cannot seem to get them structured, I can
only sort them.
(2) Class::Method
Is there a way to avoid repeating the Class name in front of a method
implmentation? I would much rather put something at the beginning of
all method implementations for one class. I tried "using"
and "namespace" but I could not figure it out.
Ideally I would want my implementation look something like this
ImplementationOf(Class1) {
MethodsFor(Initializing) {
method1(){...} // not Class1::method1
method2(){...}
}
MethodsFor(Accessing) {
method3(){...}
method4(){...}
}
}
Being farily new to C++ I have some questions concerning the structuring
of class implementations:
(1) Categories
Having some smalltalk background, I would like to group the methods of a
Class into categories like "Initializing", "Accessing" and the like.
This is basically an IDE question. I am using eclipse and the "Outline"
shows all my methods, but I cannot seem to get them structured, I can
only sort them.
(2) Class::Method
Is there a way to avoid repeating the Class name in front of a method
implmentation? I would much rather put something at the beginning of
all method implementations for one class. I tried "using"
and "namespace" but I could not figure it out.
Ideally I would want my implementation look something like this
ImplementationOf(Class1) {
MethodsFor(Initializing) {
method1(){...} // not Class1::method1
method2(){...}
}
MethodsFor(Accessing) {
method3(){...}
method4(){...}
}
}