Drive Engine
1.0.0
Plateforme de reconstruction 3D
|
Default implementation of the parameters list. More...
#include <DefaultParameterList.h>
Public Member Functions | |
CONSTRUCTOR_H (IParameterList, DefaultParameterList) | |
DESTRUCTOR_H (DefaultParameterList) | |
virtual Size | GetSize () const |
Gets the size, that is the number of elements contained in the collection. More... | |
virtual bool | IsEmpty () const |
Verify if the collection is empty. More... | |
virtual IEnumerator * | GetEnumerator () const |
Gets an enumerator. More... | |
virtual IConstEnumerator * | GetConstEnumerator () const |
Gets a constant enumerator. More... | |
virtual void | Clear () |
Remove every element contained in the collection. More... | |
virtual IExportable * | GetElement (Index index) const |
Gets an element. More... | |
virtual const IExportable * | GetConstElement (Index index) const |
Gets a constant element. More... | |
virtual void | Add (IExportable &item) |
Adds an element. More... | |
virtual void | Remove (IExportable &item) |
Removes an element. More... | |
virtual void | AddList (const IList &list) |
Adds every element of a list. More... | |
virtual void | RemoveList (const IList &list) |
Remove every element of a list. More... | |
virtual IParameter * | GetParameter (const char *name) const |
Gets a parameter. More... | |
virtual void | Add (IParameter ¶meter) |
Adds a parameter. More... | |
virtual void | Remove (IParameter ¶meter) |
Removes a parameter. More... | |
Public Member Functions inherited from IExportable | |
virtual void | Delete () const =0 |
Deletes the current object. Needed for memory management. More... | |
Default implementation of the parameters list.
|
virtual |
Adds an element.
Exception safety : Strong exception safety. This member function throws exceptions.
element | The element to add. The element must not be null. |
Implements DriveEngine::IList.
|
virtual |
Adds a parameter.
Do nothing if the parameter is null. If the parameter already exist, replace it.
parameter | The parameter to add. It must not be null. |
Implements DriveEngine::IParameterList.
|
virtual |
Adds every element of a list.
Exception safety : Strong exception safety. This member function throws exceptions.
list | The list of elements to add. The list must not be null. |
Implements DriveEngine::IList.
|
virtual |
Remove every element contained in the collection.
Exception safety : No-throw guarantee. This member function never throws exceptions.
Implements DriveEngine::ICollection.
|
virtual |
Gets a constant element.
Exception safety : Strong exception safety. This member function throws exceptions.
index | The index of the element. The index must be positive an should not exceed the size of the list. Otherwise, a precondition exception is thrown. |
Implements DriveEngine::IList.
|
virtual |
Gets a constant enumerator.
Exception safety : No-throw guarantee. This member function never throws exceptions. Is the responsability of developper to free the memory occupied by enumerator after it use. Otherwise a memory leak is created.
Implements DriveEngine::ICollection.
|
virtual |
Gets an element.
Exception safety : Strong exception safety. This member function throws exceptions.
index | The index of the element. The index must be positive an should not exceed the size of the list. Otherwise, a precondition exception is thrown. |
Implements DriveEngine::IList.
|
virtual |
Gets an enumerator.
Exception safety : No-throw guarantee. This member function never throws exceptions. Is the responsability of developper to free the memory occupied by enumerator after it use. Otherwise a memory leak is created.
Implements DriveEngine::ICollection.
|
virtual |
Gets a parameter.
name | The parameter name. |
Implements DriveEngine::IParameterList.
|
virtual |
Gets the size, that is the number of elements contained in the collection.
Exception safety : No-throw guarantee. This member function never throws exceptions.
Implements DriveEngine::ICollection.
|
virtual |
Verify if the collection is empty.
Exception safety : No-throw guarantee. This member function never throws exceptions.
Implements DriveEngine::ICollection.
|
virtual |
Removes an element.
If the element is not found, do nothing.
Exception safety : Strong exception safety. This member function throws exceptions.
element | The element to remove. The element must not be null. |
Implements DriveEngine::IList.
|
virtual |
Removes a parameter.
Do nothing if the parameter is null. Ignore it if it is not contained in the list.
parameter | The parameter to remove. It must not be null. |
Implements DriveEngine::IParameterList.
|
virtual |
Remove every element of a list.
Ignore element that are not contained in the list.
Exception safety : Strong exception safety. This member function throws exceptions.
list | The list of elements to remove. The list must not be null. |
Implements DriveEngine::IList.