Back to index

salome-smesh  6.5.0
Public Member Functions | Private Attributes
SMESH_Comment Class Reference

Class to generate string from any type. More...

#include <SMESH_Comment.hxx>

Inheritance diagram for SMESH_Comment:
Inheritance graph
[legend]
Collaboration diagram for SMESH_Comment:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SMESH_Comment ()
 SMESH_Comment (const SMESH_Comment &c)
SMESH_Commentoperator= (const SMESH_Comment &c)
template<class T >
 SMESH_Comment (const T &anything)
template<class T >
SMESH_Commentoperator<< (const T &anything)
 operator char * () const

Private Attributes

ostringstream _s

Detailed Description

Class to generate string from any type.

Definition at line 38 of file SMESH_Comment.hxx.


Constructor & Destructor Documentation

Definition at line 44 of file SMESH_Comment.hxx.

:string("") {}

Definition at line 46 of file SMESH_Comment.hxx.

                                       :string() {
    _s << c.c_str() ;
    this->string::operator=( _s.str() );
  }
template<class T >
SMESH_Comment::SMESH_Comment ( const T &  anything) [inline]

Definition at line 58 of file SMESH_Comment.hxx.

                                     {
    _s << anything ;
    this->string::operator=( _s.str() );
  }

Member Function Documentation

SMESH_Comment::operator char * ( ) const [inline]

Definition at line 70 of file SMESH_Comment.hxx.

                         {
    return (char*)c_str();
  }
template<class T >
SMESH_Comment& SMESH_Comment::operator<< ( const T &  anything) [inline]

Definition at line 64 of file SMESH_Comment.hxx.

                                                  {
    _s << anything ;
    this->string::operator=( _s.str() );
    return *this ;
  }
SMESH_Comment& SMESH_Comment::operator= ( const SMESH_Comment c) [inline]

Definition at line 51 of file SMESH_Comment.hxx.

                                                    {
    _s << c.c_str() ;
    this->string::operator=( _s.str() );
    return *this;
  }

Member Data Documentation

ostringstream SMESH_Comment::_s [private]

Definition at line 40 of file SMESH_Comment.hxx.


The documentation for this class was generated from the following file: