IContainerInfo.h
Go to the documentation of this file.
1 #ifndef istd_IContainerInfo_included
2 #define istd_IContainerInfo_included
3 
4 
5 // ACF includes
6 #include <istd/IChangeable.h>
7 
8 
9 namespace istd
10 {
11 
12 
16 class IContainerInfo: virtual public IChangeable
17 {
18 public:
22  virtual int GetItemsCount() const = 0;
23 
27  virtual bool IsEmpty() const = 0;
28 
29  /*
30  Returns \c true if the index \c index is valid, otherwise a \c false.
31  */
32  virtual bool IsIndexValid(int index) const = 0;
33 };
34 
35 
36 } // namespace istd
37 
38 
39 #endif // istd_IContainerInfo_included
40 
virtual int GetItemsCount() const =0
Returns number of elements in the container.
virtual bool IsIndexValid(int index) const =0
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
Common interface for all container implementations.
virtual bool IsEmpty() const =0
Returns a true if container is empty, otherwise a false.

© 2007-2017 Witold Gantzke and Kirill Lepskiy