Changeset 1413 in Sophya for trunk/SophyaLib/HiStats/histos.h


Ignore:
Timestamp:
Feb 20, 2001, 7:29:48 PM (25 years ago)
Author:
ansari
Message:

Methode Show et operateur << pour Histos - Reza 20/2/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/histos.h

    r1201 r1413  
    11// This may look like C code, but it is really -*- C++ -*-
    22//
    3 // $Id: histos.h,v 1.14 2000-09-26 15:53:34 ansari Exp $
     3// $Id: histos.h,v 1.15 2001-02-20 18:29:48 ansari Exp $
    44//
    55
     
    143143
    144144  // Print et Display ASCII
     145  virtual void Show(ostream& os) const;
     146  inline  void Show() const { Show(cout); }
    145147  void Print(int_4 dyn = 100, r_8 hmin = 1., r_8 hmax = -1.,
    146148             int_4 pflag = 0, int_4 il = 1, int_4 ih = -1) const;
    147 
     149 
    148150protected:
    149151  void Delete();
     
    161163};
    162164
     165/*! Prints histogram information on stream \b s (h.Show(s)) */
     166inline ostream& operator << (ostream& s, Histo const & h)
     167  {  h.Show(s);  return(s);  }
    163168
    164169/*! \ingroup HiStats \fn operator<<(POuttPersist&,Histo)
Note: See TracChangeset for help on using the changeset viewer.