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


Ignore:
Timestamp:
Aug 29, 2000, 6:11:42 PM (25 years ago)
Author:
ansari
Message:

Declaration sa_size_t ds machdefs.h - Amelioration/correction DVList et MuTyV - Reza 29/8/2000

File:
1 edited

Legend:

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

    r1080 r1157  
    3434  DVList&           Merge(const DVList&);
    3535
    36   int_8             GetI(string const& key, int_8 def=-1);
    37   r_8               GetD(string const& key, r_8 def=-9.e19);
    38   complex<r_8>      GetZ(string const& key, complex<r_8> def=-9.e19);
    39   string            GetS(string const& key, char* def="");
    40   string            GetComment(string const& key);
     36  int_8             GetI(string const& key, int_8 def=-1) const;
     37  r_8               GetD(string const& key, r_8 def=-9.e19) const;
     38  complex<r_8>      GetZ(string const& key, complex<r_8> def=-9.e19) const;
     39  string            GetS(string const& key, char* def="") const;
     40  string            GetComment(string const& key) const;
     41
     42  bool              DeleteKey(string const& key);
     43  bool              HasKey(string const& key) const;
    4144
    4245  void              SetI(string const& key, int_8 val);
     
    4750  void              SetComment(string const& key, string const& comm);
    4851
     52  MuTyV             Get(string const& key) const ;
    4953  MuTyV&            Get(string const& key);
     54/*! Returns the value associated with the name \b key */
     55  inline MuTyV      operator()  (string const& key) const { return Get(key); }
     56/*! Returns the value associated with the name \b key */
     57  inline MuTyV      operator[]  (string const& key) const { return Get(key); }
     58/*! Returns the global comment string associated with the object */
     59  inline string     Comment() const { return(comment); }
    5060/*! Returns the value associated with the name \b key */
    5161  inline MuTyV&     operator()  (string const& key)  { return Get(key); }
Note: See TracChangeset for help on using the changeset viewer.