SYNOPSIS
C++:
- TAU_TYPE_STRING(stringĀ &variable, stringĀ &type_string);
DESCRIPTION
EXAMPLE
C++ :
template<class PLayout> ostream& operator<<(ostream& out, const ParticleBase<PLayout>& P) { TAU_TYPE_STRING(taustr, "ostream (ostream, " + CT(P) + " )"); TAU_PROFILE("operator<<()"taustr, TAU_PARTICLE | TAU_IO); ... }
When PLayout is instantiated with " UniformCartesian<3U, double> ",this generates the unique template name:
operator<<() ostream const ParticleBase<UniformCartesian<3U, double> > )
The following example illustrates the usage of the CT macro to extract the name of the class associated with the given object using CT(*this);
template<class PLayout> unsigned ParticleBase<PLayout7>::GetMessage(Message& msg, int node) { TAU_TYPE_STRING(taustr, CT(*this) + "unsigned (Message, int)"); TAU_PROFILE("ParticleBase::GetMessage()", taustr, TAU_PARTICLE); ... }
When PLayout is instantiated with " UniformCartesian<3U, double> ",this generates the unique template name:
ParticleBase::GetMessage() ParticleBase<UniformCartesian<3U, double> > unsigned (Message, int)