13 #ifndef ML_RASTER_FUNCTION_LIST_H
14 #define ML_RASTER_FUNCTION_LIST_H
48 {
return objects.size(); }
52 { objects[idx]=elem; }
56 { objects.push_back(elem); }
60 {
return objects[idx]; }
67 #if ML_DEPRECATED_SINCE(3,5,0)
68 [[nodiscard]][[deprecated]]
char*
getPersistentState()
const override {
return nullptr; }
99 std::vector<RasterFunction> objects;
Class representing general ML objects that support import/export via strings (setPersistentState() an...
virtual void setPersistentState(const std::string &state)
Restores the object's internal state from a string that had been previously generated using persisten...
virtual void clearPersistentState(char *) const
Disposes a string previously allocated by getPersistentState().
virtual char * getPersistentState() const
Returns a C string describing the object's internal state.
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.
void removeValue(MLssize_t index=-1)
Remove RasterFunction from list. If index is -1 the last element is removed.
virtual const RasterFunction & getListElement(size_t idx)
Permits access to the list of raster functions.
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
#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 ...