C4 Engine
C4 Engine API Documentation

class MapElement

Defined in:  TSMap.h
Objects inherit from the MapElement class so that they can be stored in a map.

template <class type> class MapElement : public MapElementBase

Member Functions
MapElement::GetPreviousMapElement Returns the previous element in a map.
MapElement::GetNextMapElement Returns the next element in a map.
MapElement::GetOwningMap Returns the map to which an object belongs.
MapElement::Detach Removes an object from any map to which it belongs.
Template Parameters
type The type of the class that can be stored in a map. This parameter should be the type of the class that inherits directly from the MapElement class.


The MapElement class should be declared as a base class for objects that need to be stored in a map. The type template parameter should match the class type of such objects, and these objects can be stored in a Map container declared with the same type template parameter.
Base Classes
MapElementBase Used internally to encapsulate common functionality that is independent of the template parameters.
See Also