All Classes Functions Variables Typedefs Friends Pages
IEnumeration.h
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) 2012 Glympse Inc. All rights reserved.
4 //
5 //------------------------------------------------------------------------------
6 
7 #ifndef IENUMERATION_H__GLYMPSE__
8 #define IENUMERATION_H__GLYMPSE__
9 
10 namespace Glympse
11 {
12 
18 template< class T > struct IEnumeration : public ICommon
19 {
20  public: virtual bool hasMoreElements() = 0;
21 
22  public: virtual T nextElement() = 0;
23 };
24 
26 template< class T > class GEnumeration
27 {
28  private: GEnumeration();
29  public: typedef O< IEnumeration< T > > ptr;
30 };
31 
32 }
33 
34 #endif // !IENUMERATION_H__GLYMPSE__