![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
A container for a set of TSLDataLayers. The data layer list owns all data layers within it.
Public Member Functions | |
TSLDataLayerList () | |
void | add (TSLDataLayer *layer) |
void | destroy () |
bool | empty () const |
TSLDataLayer * | operator[] (unsigned int index) |
TSLDataLayer * | remove (unsigned int index) |
void | reserve (unsigned int amount) |
unsigned int | size () const |
void * | operator new (size_t size) TSL_NO_THROW |
void * | operator new (size_t size, char *filename, int line) |
TSLDataLayerList::TSLDataLayerList | ( | ) |
void TSLDataLayerList::add | ( | TSLDataLayer * | layer | ) |
Adds the given data layer to the end of the list. The list takes ownership of the layer.
void TSLDataLayerList::destroy | ( | ) |
Destroy method for the layer list. This should be called rather than deleting the list as the calls are redirected internally to MapLink.
bool TSLDataLayerList::empty | ( | ) | const |
Returns true if there are no layers present in the list.
void * TSLDataLayerList::operator new | ( | size_t | size | ) |
Allocation override for API redirection.
void * TSLDataLayerList::operator new | ( | size_t | size, |
char * | filename, | ||
int | line ) |
When included in an MFC application in debug mode, the debug new expects this to be here. Override it and return the same as the normal one. The library must include it when compiled in release mode, since the user's application may be in debug mode.
TSLDataLayer * TSLDataLayerList::operator[] | ( | unsigned int | index | ) |
Returns the layer at the given index in the list, or NULL if the given index is invalid.
TSLDataLayer * TSLDataLayerList::remove | ( | unsigned int | index | ) |
Removes the layer from the list at the given index and returns it to the caller. The caller assumes ownership of the layer.
void TSLDataLayerList::reserve | ( | unsigned int | amount | ) |
Pre-allocates storage space for the given number of data layers.
unsigned int TSLDataLayerList::size | ( | ) | const |
Returns the number of layers in the list.