Drive Engine  1.0.0
Plateforme de reconstruction 3D
IList.h
1 // Copyright (c) 2015. All rights reserved to DriveEngine Team.
2 
3 #pragma once
4 
5 #include "ICollection.h"
6 #include "Typedefs.h"
7 
8 namespace DriveEngine
9 {
17  class IList : public ICollection
18  {
19  public:
20 
34  virtual IExportable* GetElement(Index index) const = 0;
35 
49  virtual const IExportable* GetConstElement(Index index) const = 0;
50 
60  virtual void Add(IExportable &element) = 0;
61 
77  virtual void Remove(IExportable &element) = 0;
78 
88  virtual void AddList(const IList &list) = 0;
89 
105  virtual void RemoveList(const IList &list) = 0;
106  };
107 }
virtual void AddList(const IList &list)=0
Adds every element of a list.
virtual const IExportable * GetConstElement(Index index) const =0
Gets a constant element.
Definition: DefaultCalibrationInfoList.h:12
The list interface.
Definition: IList.h:17
virtual void Remove(IExportable &element)=0
Removes an element.
The collection interface.
Definition: ICollection.h:26
The main interface
Definition: IExportable.h:12
virtual void Add(IExportable &element)=0
Adds an element.
virtual IExportable * GetElement(Index index) const =0
Gets an element.
virtual void RemoveList(const IList &list)=0
Remove every element of a list.