MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLDataLayerList Class Reference

Detailed Description

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
 
TSLDataLayeroperator[] (unsigned int index)
 
TSLDataLayerremove (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)
 

Constructor & Destructor Documentation

◆ TSLDataLayerList()

TSLDataLayerList::TSLDataLayerList ( )

Member Function Documentation

◆ add()

void TSLDataLayerList::add ( TSLDataLayer * layer)

Adds the given data layer to the end of the list. The list takes ownership of the layer.

◆ destroy()

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.

◆ empty()

bool TSLDataLayerList::empty ( ) const

Returns true if there are no layers present in the list.

◆ operator new() [1/2]

void * TSLDataLayerList::operator new ( size_t size)

Allocation override for API redirection.

◆ operator new() [2/2]

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.

◆ operator[]()

TSLDataLayer * TSLDataLayerList::operator[] ( unsigned int index)

Returns the layer at the given index in the list, or NULL if the given index is invalid.

◆ remove()

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.

◆ reserve()

void TSLDataLayerList::reserve ( unsigned int amount)

Pre-allocates storage space for the given number of data layers.

◆ size()

unsigned int TSLDataLayerList::size ( ) const

Returns the number of layers in the list.