Drive Engine  1.0.0
Plateforme de reconstruction 3D
ICollection.h
1 // Copyright (c) 2015. All rights reserved to DriveEngine Team.
2 
3 #pragma once
4 
5 #include "IEnumerator.h"
6 #include "IExportable.h"
7 #include "IConstEnumerator.h"
8 #include "Typedefs.h"
9 
10 namespace DriveEngine
11 {
26  class ICollection : public IExportable
27  {
28  public:
29 
41  virtual Size GetSize() const = 0;
42 
51  virtual bool IsEmpty() const = 0;
52 
63  virtual IEnumerator* GetEnumerator() const = 0;
64 
75  virtual IConstEnumerator* GetConstEnumerator() const = 0;
76 
85  virtual void Clear() = 0;
86  };
87 }
virtual void Clear()=0
Remove every element contained in the collection.
virtual bool IsEmpty() const =0
Verify if the collection is empty.
virtual IConstEnumerator * GetConstEnumerator() const =0
Gets a constant enumerator.
Definition: DefaultCalibrationInfoList.h:12
The collection interface.
Definition: ICollection.h:26
virtual IEnumerator * GetEnumerator() const =0
Gets an enumerator.
virtual Size GetSize() const =0
Gets the size, that is the number of elements contained in the collection.
The main interface
Definition: IExportable.h:12
The constant enumerator interface.
Definition: IConstEnumerator.h:36
The enumerator interface.
Definition: IEnumerator.h:35