Changeset 895 in Sophya for trunk/SophyaLib/BaseTools/dvlist.h


Ignore:
Timestamp:
Apr 12, 2000, 7:49:54 PM (25 years ago)
Author:
ansari
Message:

Documentation de fichiers - Reza 12/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/dvlist.h

    r827 r895  
    7070//  Classe liste de variables  Dynamic Variable List 
    7171
     72//! Dynamic Variable List class.
    7273class DVList : public AnyDataObj {
    7374public:
     
    9798
    9899  MuTyV&            Get(string const& key);
     100/*! Returns the value associated with the name \b key */
    99101  inline MuTyV&     operator()  (string const& key)  { return Get(key); }
     102/*! Returns the value associated with the name \b key */
    100103  inline MuTyV&     operator[]  (string const& key)  { return Get(key); }
     104/*! Returns the global comment string associated with the object */
    101105  inline string&    Comment() { return(comment); }
    102106
    103   inline void       Print() const  { Print(cout); } 
     107/*! Prints a brief description of object on \b cout */
     108  inline  void      Show() const { Show(cout); }
     109  virtual void      Show(ostream& os)  const;
     110/*! Prints the list of variables on \b cout */
     111  inline  void      Print() const  { Print(cout); } 
    104112  virtual void      Print(ostream& os)  const;
    105113
     
    111119  struct dvlElement {MuTyV elval; string elcomm; } ;
    112120  typedef map<string, dvlElement, less<string> >  ValList;
     121/*! Returns an iterator pointing on the first variable in the list */
    113122  inline ValList::const_iterator Begin() { return(mvlist.begin()); }
     123/*! Returns the iterator end value */
    114124  inline ValList::const_iterator End() { return(mvlist.end()); }
    115125 
     
    121131};
    122132
     133/*! operator << overloading - Prints the list on the stream \b s */
    123134inline ostream& operator << (ostream& s, DVList const & dvl)
    124135  {  dvl.Print(s);  return(s);  }
    125136
     137/*! Writes the object in the POutPersist stream \b os */
    126138inline POutPersist& operator << (POutPersist& os, DVList & obj)
    127139{ ObjFileIO<DVList> fio(&obj);  fio.Write(os);  return(os); }
     140/*! Reads the object from the PInPersist stream \b is */
    128141inline PInPersist& operator >> (PInPersist& is, DVList & obj)
    129142{ ObjFileIO<DVList> fio(&obj);  fio.Read(is);  return(is); }
Note: See TracChangeset for help on using the changeset viewer.