Changeset 1550 in Sophya for trunk/SophyaLib/TArray/utilarr.h
- Timestamp:
- Jun 27, 2001, 10:13:16 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/utilarr.h
r1517 r1550 88 88 }; 89 89 90 ////////////////////////////////////////////////////////// 91 //! Class for creation and handling of an explicitly defined list of values 92 90 93 class EnumeratedSequence : public Sequence { 91 94 public: … … 93 96 virtual ~EnumeratedSequence(); 94 97 virtual MuTyV & Value(sa_size_t k) const ; 98 99 inline sa_size_t Size() const { return vecv_.size(); } 100 95 101 EnumeratedSequence & operator , (MuTyV const & v); 96 102 EnumeratedSequence & operator = (MuTyV const & v); 103 104 EnumeratedSequence & Merge(EnumeratedSequence const & seq); 105 inline void Clear() { vecv_.clear(); } 106 void Print(ostream& os) const; 107 108 sa_size_t FillFromString(string const & str); 109 sa_size_t FillFromFile(istream& is, sa_size_t& nr, sa_size_t& nc); 110 97 111 private: 98 112 vector<MuTyV> vecv_; 99 113 mutable MuTyV retv_; 100 114 }; 115 116 inline ostream& operator << (ostream& os, const EnumeratedSequence& a) 117 { a.Print(os); return(os); } 101 118 102 119 //inline EnumeratedSequence operator , (MuTyV const & a, MuTyV const & b)
Note:
See TracChangeset
for help on using the changeset viewer.