Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove ::ThisType in all identifier types #594

Merged

Conversation

psychocoderHPC
Copy link
Member

follow up of #593

  • remove bad ::ThisType in all Identifier
  • use new trait Resolve<T> to get the type which is represented by an alias

please do not merge before #593

this trait gives the real type of an alias
- change `alias` remove inherit
- use new trait `Resolve<T>` to handle incomplete types
- change documentation of `alias`
- remove block of boost 1.56.0+ versions in CMakeLists
remove `ThisType` (know available with the trait `Resolve<T>`)
use new trait `Resolve<T>` to get the type out of an alias
@psychocoderHPC psychocoderHPC added component: PMacc in PMacc component: core in PIConGPU (core application) need-info/blocked labels Dec 4, 2014
@psychocoderHPC psychocoderHPC added this to the Open Beta milestone Dec 4, 2014
@psychocoderHPC
Copy link
Member Author

@n01r This pull is important for your next rebase session.

/** Get resolved type
*
* Explicitly resolve the type of a synonym type, e.g., resolve the type of an PMacc alias.
* A synonym type is wrapper type (class) around an other type.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typos: A synonym type is a wrapper type (class) around another type.

@n01r
Copy link
Member

n01r commented Dec 4, 2014

Maybe it is the wrong place to ask this but wouldn't it be cool if this trait could also be used for debugging? I'm thinking of an optional variable one can set active for each instance of Resolve<T> so that it does not only resolve the type but also prints it with some kind of compile time static assert magic message during the compile process?

@n01r n01r mentioned this pull request Dec 4, 2014
10 tasks
@ax3l
Copy link
Member

ax3l commented Dec 8, 2014

@psychocoderHPC If you adress the two last open questions I can merge it.

@psychocoderHPC
Copy link
Member Author

I am sick :-( I fix all as fast as possible.

@ax3l
Copy link
Member

ax3l commented Dec 8, 2014

ohoh, get well soon 🎮 😴

@n01r
Copy link
Member

n01r commented Dec 9, 2014

Drink much ginger tea 😉

@ax3l
Copy link
Member

ax3l commented Dec 10, 2014

@psychocoderHPC I think that pull is rdy to be merged.

can you pls just answer the questions of @n01r ? (probably out of this pull anyway).

@psychocoderHPC
Copy link
Member Author

@n01r it is only possible to exit with an error to write out compile time information. If you need that than you can define the trait for your own user type and use cassert_msg_type to write out some informations.

@n01r
Copy link
Member

n01r commented Dec 10, 2014

Hmm but do you think it would be possible to do that generically?
Seems to me like a nice tool to find your way through the often dark PIConGPU forest. 😝
I could try myself out on that while I wait for #594 and #596 to be merged.

@psychocoderHPC
Copy link
Member Author

The only generic way is that you specialize the trait and add all stuff you need.

@n01r
Copy link
Member

n01r commented Dec 10, 2014

Hmm, alright - maybe I will try that. But it will not have priority - if I come up with anything cool you will get to know.
So I guess this can be merged now.

ax3l added a commit that referenced this pull request Dec 10, 2014
remove `::ThisType` in all identifier types
@ax3l ax3l merged commit 7d44c98 into ComputationalRadiationPhysics:dev Dec 10, 2014
@psychocoderHPC psychocoderHPC deleted the topic-cleanAlias branch December 10, 2014 17:30
n01r pushed a commit to n01r/picongpu that referenced this pull request Dec 18, 2014
After having rebased on mainline/dev I checked whether all changes made in the
pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 are active. I also cleaned the code from
small errors that occurred due to automatic merging.
n01r pushed a commit to n01r/picongpu that referenced this pull request Dec 18, 2014
…omputationalRadiationPhysics#596,ComputationalRadiationPhysics#607

After the merge of the pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 functionality of the
ionization feature has been re-established. The example `LWFA_with_Ionization`
was reduced to its minimum divergence from the default parameter set.
n01r pushed a commit to n01r/picongpu that referenced this pull request Dec 18, 2014
After having rebased on mainline/dev I checked whether all changes made in the
pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 are active. I also cleaned the code from
small errors that occurred due to automatic merging.
n01r pushed a commit to n01r/picongpu that referenced this pull request Dec 18, 2014
…omputationalRadiationPhysics#596,ComputationalRadiationPhysics#607

After the merge of the pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 functionality of the
ionization feature has been re-established. The example `LWFA_with_Ionization`
was reduced to its minimum divergence from the default parameter set.
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 7, 2015
After having rebased on mainline/dev I checked whether all changes made in the
pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 are active. I also cleaned the code from
small errors that occurred due to automatic merging.
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 7, 2015
…omputationalRadiationPhysics#596,ComputationalRadiationPhysics#607

After the merge of the pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 functionality of the
ionization feature has been re-established. The example `LWFA_with_Ionization`
was reduced to its minimum divergence from the default parameter set.
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 7, 2015
In this commit the Resolve<> trait from ComputationalRadiationPhysics#594 is used to connect the ionization
algorithm to the used model.

Furthermore new attribute lists for the different species have been introduced.
Functionality still has to be achieved. This has to be checked with ComputationalRadiationPhysics#615.

Prettying up comments
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 7, 2015
After having rebased on mainline/dev I checked whether all changes made in the
pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 are active. I also cleaned the code from
small errors that occurred due to automatic merging.
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 7, 2015
…omputationalRadiationPhysics#596,ComputationalRadiationPhysics#607

After the merge of the pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 functionality of the
ionization feature has been re-established. The example `LWFA_with_Ionization`
was reduced to its minimum divergence from the default parameter set.
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 7, 2015
In this commit the Resolve<> trait from ComputationalRadiationPhysics#594 is used to connect the ionization
algorithm to the used model.

Furthermore new attribute lists for the different species have been introduced.
Functionality still has to be achieved. This has to be checked with ComputationalRadiationPhysics#615.

Prettying up comments
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 15, 2015
After having rebased on mainline/dev I checked whether all changes made in the
pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 are active. I also cleaned the code from
small errors that occurred due to automatic merging.
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 15, 2015
…omputationalRadiationPhysics#596,ComputationalRadiationPhysics#607

After the merge of the pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 functionality of the
ionization feature has been re-established. The example `LWFA_with_Ionization`
was reduced to its minimum divergence from the default parameter set.
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 15, 2015
In this commit the Resolve<> trait from ComputationalRadiationPhysics#594 is used to connect the ionization
algorithm to the used model.

Furthermore new attribute lists for the different species have been introduced.
Functionality still has to be achieved. This has to be checked with ComputationalRadiationPhysics#615.

Prettying up comments
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 21, 2015
After having rebased on mainline/dev I checked whether all changes made in the
pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 are active. I also cleaned the code from
small errors that occurred due to automatic merging.
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 21, 2015
…omputationalRadiationPhysics#596,ComputationalRadiationPhysics#607

After the merge of the pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 functionality of the
ionization feature has been re-established. The example `LWFA_with_Ionization`
was reduced to its minimum divergence from the default parameter set.
n01r pushed a commit to n01r/picongpu that referenced this pull request Jan 21, 2015
In this commit the Resolve<> trait from ComputationalRadiationPhysics#594 is used to connect the ionization
algorithm to the used model.

Furthermore new attribute lists for the different species have been introduced.
Functionality still has to be achieved. This has to be checked with ComputationalRadiationPhysics#615.

Prettying up comments
n01r pushed a commit to n01r/picongpu that referenced this pull request Feb 4, 2015
After having rebased on mainline/dev I checked whether all changes made in the
pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 are active. I also cleaned the code from
small errors that occurred due to automatic merging.
n01r pushed a commit to n01r/picongpu that referenced this pull request Feb 4, 2015
…omputationalRadiationPhysics#596,ComputationalRadiationPhysics#607

After the merge of the pull requests ComputationalRadiationPhysics#594, ComputationalRadiationPhysics#596 and ComputationalRadiationPhysics#607 functionality of the
ionization feature has been re-established. The example `LWFA_with_Ionization`
was reduced to its minimum divergence from the default parameter set.
n01r pushed a commit to n01r/picongpu that referenced this pull request Feb 4, 2015
In this commit the Resolve<> trait from ComputationalRadiationPhysics#594 is used to connect the ionization
algorithm to the used model.

Furthermore new attribute lists for the different species have been introduced.
Functionality still has to be achieved. This has to be checked with ComputationalRadiationPhysics#615.

Prettying up comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: core in PIConGPU (core application) component: PMacc in PMacc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants