summaryrefslogtreecommitdiff
path: root/omegalib/omega/include/basic/Collection.h
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-18 15:16:52 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-09-18 15:16:52 -0600
commit18644419b50b2b14a24456e0fcdb210f231ee317 (patch)
tree3d2a57050ae93ee0ceb71df319b1533480a4001d /omegalib/omega/include/basic/Collection.h
parent2fce43d484e4148ae858f410d51dcd9951d34374 (diff)
downloadchill-18644419b50b2b14a24456e0fcdb210f231ee317.tar.gz
chill-18644419b50b2b14a24456e0fcdb210f231ee317.tar.bz2
chill-18644419b50b2b14a24456e0fcdb210f231ee317.zip
doc updated for code_gen
Diffstat (limited to 'omegalib/omega/include/basic/Collection.h')
-rw-r--r--omegalib/omega/include/basic/Collection.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/omegalib/omega/include/basic/Collection.h b/omegalib/omega/include/basic/Collection.h
index c7e4eef..80ddf48 100644
--- a/omegalib/omega/include/basic/Collection.h
+++ b/omegalib/omega/include/basic/Collection.h
@@ -7,10 +7,7 @@ template<class T> class Iterator;
template<class T> class Any_Iterator;
-/*
- * protocol for any kind of collection
- */
-
+//! protocol for any kind of collection
template<class T> class Collection {
public:
virtual Iterator<T> *new_iterator() = 0;
@@ -20,21 +17,20 @@ public:
};
-/*
+/*!
* protocol for collections whose elements are ordered
* by the way they are entered into the collection, and
* whose elements can be accessed by "index"
*
* note that the implementation need not be a linked list
*/
-
template<class T> class Sequence : public Collection<T> {
public:
virtual const T &operator[](int) const = 0;
virtual T &operator[](int) = 0;
- virtual int index(const T &) const = 0; // Y in X --> X[X.index(Y)] == Y
-};
+ /*! Y in X --> X[X.index(Y)] == Y */
+ virtual int index(const T &) const = 0; };
} // namespace