![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class represents a collection of island objects. It does not, however, assume ownership of the islands.
Public Member Functions | |
TSLIslandSet () | |
TSLIslandSet (const TSLIslandSet &other) | |
TSLIslandSet & | operator= (const TSLIslandSet &rhs) |
void | add (TSLIsland *island) |
void | clear () |
void | destroy (bool destroyIslands=false) |
bool | empty () const |
TSLIsland * | operator[] (int N) |
const TSLIsland * | operator[] (int N) const |
TSLIsland * | remove (int N) |
Int | size () const |
void * | operator new (size_t) |
void | operator delete (void *) |
void * | operator new (size_t, char *, int) |
TSLIslandSet::TSLIslandSet | ( | ) |
Default constructor.
TSLIslandSet::TSLIslandSet | ( | const TSLIslandSet & | other | ) |
Copy constructor.
void TSLIslandSet::add | ( | TSLIsland * | island | ) |
Inserts an island into the collection. The island is added at the end of the collection.
island | A pointer to an island. |
void TSLIslandSet::clear | ( | ) |
Empties the collection. No islands are deleted as the collection does not own the islands.
void TSLIslandSet::destroy | ( | bool | destroyIslands = false | ) |
Used to delete the object.
destroyIslands | If true, then all the island objects will be deleted. |
Default | false. |
bool TSLIslandSet::empty | ( | ) | const |
Returns True if the collection is empty, False otherwise.
void TSLIslandSet::operator delete | ( | void * | ) |
void * TSLIslandSet::operator new | ( | size_t | ) |
Allocation override for API redirection.
void * TSLIslandSet::operator new | ( | size_t | , |
char * | , | ||
int | ) |
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.
TSLIslandSet & TSLIslandSet::operator= | ( | const TSLIslandSet & | rhs | ) |
Assignment operator.
TSLIsland * TSLIslandSet::operator[] | ( | int | N | ) |
Query method. Returns the Nth island in the collection.
N | The index in the collection of the requested island. |
const TSLIsland * TSLIslandSet::operator[] | ( | int | N | ) | const |
Query method (const). Returns the Nth island in the collection.
N | The index in the collection of the requested island. |
TSLIsland * TSLIslandSet::remove | ( | int | N | ) |
Removes the Nth island from the collection. The island is returned to the caller.
N | The index in the collection of the island to remove. |
Int TSLIslandSet::size | ( | ) | const |
Returns the number of islands in the collection.