Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tau_type_string(3) [debian man page]

TAU_TYPE_STRING(3)					      TAU Instrumentation API						TAU_TYPE_STRING(3)

NAME
TAU_TYPE_STRING - Creates a type string SYNOPSIS
C++: TAU_TYPE_STRING(string &variable, string &type_string); DESCRIPTION
This macro assigns the string constructed in type_string to the variable. The + operator and the CT macro can be used to construct the type string of an object. This is useful in identifying templates uniquely, as shown below. 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) SEE ALSO
CT(3), TAU_PROFILE, TAU_PROFILE_TIMER(3) 08/31/2005 TAU_TYPE_STRING(3)

Check Out this Related Man Page

std::ostream_iterator< _Tp, _CharT, _Traits >(3cxx)					       std::ostream_iterator< _Tp, _CharT, _Traits >(3cxx)

NAME
std::ostream_iterator< _Tp, _CharT, _Traits > - SYNOPSIS
Inherits std::iterator< output_iterator_tag, void, void, void, void >. Public Types typedef void difference_type typedef output_iterator_tag iterator_category typedef void pointer typedef void reference typedef void value_type typedef _CharT char_type typedef _Traits traits_type typedef basic_ostream< _CharT, _Traits > ostream_type" Public Member Functions ostream_iterator (ostream_type &__s) ostream_iterator (ostream_type &__s, const _CharT *__c) ostream_iterator (const ostream_iterator &__obj) ostream_iterator & operator* () ostream_iterator & operator++ () ostream_iterator & operator++ (int) ostream_iterator & operator= (const _Tp &__value) Detailed Description template<typename _Tp, typename _CharT = char, typename _Traits = char_traits<_CharT>>class std::ostream_iterator< _Tp, _CharT, _Traits > Provides output iterator semantics for streams. This class provides an iterator to write to an ostream. The type Tp is the only type written by this iterator and there must be an operator<<(Tp) defined. Parameters: Tp The type to write to the ostream. CharT The ostream char_type. Traits The ostream char_traits. Definition at line 154 of file stream_iterator.h. Member Typedef Documentation template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> typedef _CharT std::ostream_iterator< _Tp, _CharT, _Traits >::char_type Public typedef. Definition at line 160 of file stream_iterator.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::difference_type [inherited] Distance between iterators is represented as this type. Definition at line 126 of file stl_iterator_base_types.h. typedef output_iterator_tag std::iterator< output_iterator_tag , void , void , void , void >::iterator_category [inherited] One of the tag types. Definition at line 122 of file stl_iterator_base_types.h. template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> typedef basic_ostream<_CharT, _Traits> std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_type Public typedef. Definition at line 162 of file stream_iterator.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::pointer [inherited] This type represents a pointer-to-value_type. Definition at line 128 of file stl_iterator_base_types.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::reference [inherited] This type represents a reference-to-value_type. Definition at line 130 of file stl_iterator_base_types.h. template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> typedef _Traits std::ostream_iterator< _Tp, _CharT, _Traits >::traits_type Public typedef. Definition at line 161 of file stream_iterator.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::value_type [inherited] The type 'pointed to' by the iterator. Definition at line 124 of file stl_iterator_base_types.h. Constructor &; Destructor Documentation template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator (ostream_type &__s) [inline] Construct from an ostream. Definition at line 171 of file stream_iterator.h. template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator (ostream_type &__s, const _CharT *__c) [inline] Construct from an ostream. The delimiter string c is written to the stream after every Tp written to the stream. The delimiter is not copied, and thus must not be destroyed while this iterator is in use. Parameters: s Underlying ostream to write to. c CharT delimiter string to insert. Definition at line 183 of file stream_iterator.h. template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator (const ostream_iterator< _Tp, _CharT, _Traits > &__obj) [inline] Copy constructor. Definition at line 187 of file stream_iterator.h. Member Function Documentation template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> ostream_iterator& std::ostream_iterator< _Tp, _CharT, _Traits >::operator= (const _Tp &__value) [inline] Writes value to underlying ostream using operator<<. If constructed with delimiter string, writes delimiter to ostream. Definition at line 193 of file stream_iterator.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::ostream_iterator< _Tp, _CharT, _Traits >(3cxx)
Man Page