13#ifndef ML_RASTER_FUNCTION_LIST_H
14#define ML_RASTER_FUNCTION_LIST_H
48 {
return objects.size(); }
56 { objects.push_back(
elem); }
60 {
return objects[
idx]; }
90 std::vector<RasterFunction> objects;
Class representing general ML objects that support import/export via strings (setPersistentState() an...
Base object class to handle a list of raster functions.
void clear()
Clears the inner list.
std::string persistentState() const override
Persistence support. Still unimplemented, only for later usage.
virtual void appendToList(const RasterFunction &elem)
Permits access to the list of raster functions.
void setPersistentState(const std::string &) override
Restores the object's internal state from a string that had been previously generated using persisten...
RasterFunction * getPtr(MLssize_t index=-1)
Returns pointer to the RasterFunction at given index index.
RasterFunctionList()
Constructor. It does nothing, i.e. an empty list is created.
void setValue(MLssize_t index, const RasterFunction &obj)
Sets new raster function obj at index index, index -1 sets the last element.
virtual const RasterFunction & getListElement(size_t idx)
Permits access to the list of raster functions.
void removeValue(MLssize_t index=-1)
Remove RasterFunction from list. If index is -1 the last element is removed.
virtual void setListElement(size_t idx, const RasterFunction &elem)
Permits access to the list of raster functions.
~RasterFunctionList() override
Destructor. It removes all handled raster functions and the list.
virtual size_t getListSize()
Permits access to the list of raster functions.
Base object to handle implicit or explicit functions to draw into subimages.
#define MLBASEEXPORT
defined Header file mlBaseInit.h
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.
SSIZE_T MLssize_t
The signed ML size type which is a signed 32 bit size_t on 32 bit platforms and 64 bit one on 64 bit ...