yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05183
Re: Meaning of isFresh()?
> > void Interaction::reset(){
> > interactionGeometry=shared_ptr<InteractionGeometry>();
> > interactionPhysics=shared_ptr<InteractionPhysics>();
> > init();
> > }
> >
> >
> After this, the interaction is still Real, it has Ip and Ig.
It it a void (shared) pointer!!! Read
http://www.boost.org/doc/libs/1_43_0/libs/smart_ptr/shared_ptr.htm#constructors and casting to bool at the same place.
FYI:
bool isReal() const {return (bool)interactionGeometry && (bool)interactionPhysics;}
Follow ups
References