Online Maps  v3
OnlineMapsInteractiveElementManager< T, U > Class Template Reference

Base class for interactive element managers More...

Inheritance diagram for OnlineMapsInteractiveElementManager< T, U >:
OnlineMapsMarkerManagerBase< T, U >

Public Member Functions

Add (U item)
 Adds an item to the list More...
 
void AddRange (IEnumerable< U > collection)
 Adds items to the list More...
 
bool Remove (U item, bool dispose=true)
 Remove an item More...
 
void RemoveAll (bool dispose=true)
 Remove all items More...
 
void RemoveAll (Predicate< U > match, bool dispose=true)
 Removes all items which matches the predicate More...
 
RemoveAt (int index, bool dispose=true)
 Remove an item by index More...
 

Static Public Member Functions

static U AddItem (U item)
 Adds an item to the list More...
 
static void AddItems (IEnumerable< U > collection)
 Adds items to the list More...
 
static void Init ()
 Initializes the manager More...
 
static void RemoveAllItems ()
 Remove all items More...
 
static void RemoveAllItems (Predicate< U > match)
 Removes all items which matches the predicate More...
 
static bool RemoveItem (U item, bool dispose=true)
 Remove an item More...
 
static U RemoveItemAt (int index)
 Remove an item by index More...
 
static void SetItems (IEnumerable< U > collection)
 Sets the collection of items More...
 

Static Public Attributes

static Action< U > OnAddItem
 The event that occurs when an item is added. More...
 
static Action< U > OnRemoveItem
 The event that occurs when an item is removed. More...
 

Properties

static T instance [get]
 Instance of the manager More...
 
List< U > items [get, set]
 Gets / sets the list of items More...
 
static int CountItems [get]
 Count items More...
 
int Count [get]
 Count items More...
 
this[int index] [get, set]
 Gets / sets item by index More...
 

Detailed Description

Base class for interactive element managers

Template Parameters
TType of manager
UType of interactive element
Type Constraints
T :OnlineMapsInteractiveElementManager 
T :T 
T :U 
U :IOnlineMapsInteractiveElement 

Member Function Documentation

◆ Add()

U OnlineMapsInteractiveElementManager< T, U >.Add ( item)

Adds an item to the list

Parameters
itemItem
Returns
Item

◆ AddItem()

static U OnlineMapsInteractiveElementManager< T, U >.AddItem ( item)
static

Adds an item to the list

Parameters
itemItem
Returns
Item

◆ AddItems()

static void OnlineMapsInteractiveElementManager< T, U >.AddItems ( IEnumerable< U >  collection)
static

Adds items to the list

Parameters
collectionCollection of items

◆ AddRange()

void OnlineMapsInteractiveElementManager< T, U >.AddRange ( IEnumerable< U >  collection)

Adds items to the list

Parameters
collectionCollection of items

◆ Init()

static void OnlineMapsInteractiveElementManager< T, U >.Init ( )
static

Initializes the manager

◆ Remove()

bool OnlineMapsInteractiveElementManager< T, U >.Remove ( item,
bool  dispose = true 
)

Remove an item

Parameters
itemItem
disposeDispose the item
Returns
True - success, false - otherwise

◆ RemoveAll() [1/2]

void OnlineMapsInteractiveElementManager< T, U >.RemoveAll ( bool  dispose = true)

Remove all items

Parameters
disposeDispose the item

◆ RemoveAll() [2/2]

void OnlineMapsInteractiveElementManager< T, U >.RemoveAll ( Predicate< U >  match,
bool  dispose = true 
)

Removes all items which matches the predicate

Parameters
matchPredicate
disposeDispose the item

◆ RemoveAllItems() [1/2]

static void OnlineMapsInteractiveElementManager< T, U >.RemoveAllItems ( )
static

Remove all items

◆ RemoveAllItems() [2/2]

static void OnlineMapsInteractiveElementManager< T, U >.RemoveAllItems ( Predicate< U >  match)
static

Removes all items which matches the predicate

Parameters
matchPredicate

◆ RemoveAt()

U OnlineMapsInteractiveElementManager< T, U >.RemoveAt ( int  index,
bool  dispose = true 
)

Remove an item by index

Parameters
indexIndex of item
disposeDispose the item
Returns
Item that was removed

◆ RemoveItem()

static bool OnlineMapsInteractiveElementManager< T, U >.RemoveItem ( item,
bool  dispose = true 
)
static

Remove an item

Parameters
itemItem
disposeDispose the item
Returns
True - success, false - otherwise

◆ RemoveItemAt()

static U OnlineMapsInteractiveElementManager< T, U >.RemoveItemAt ( int  index)
static

Remove an item by index

Parameters
indexIndex of item
Returns
Item that was removed

◆ SetItems()

static void OnlineMapsInteractiveElementManager< T, U >.SetItems ( IEnumerable< U >  collection)
static

Sets the collection of items

Parameters
collectionCollection of items

Member Data Documentation

◆ OnAddItem

Action<U> OnlineMapsInteractiveElementManager< T, U >.OnAddItem
static

The event that occurs when an item is added.

◆ OnRemoveItem

Action<U> OnlineMapsInteractiveElementManager< T, U >.OnRemoveItem
static

The event that occurs when an item is removed.

Property Documentation

◆ Count

int OnlineMapsInteractiveElementManager< T, U >.Count
get

Count items

◆ CountItems

int OnlineMapsInteractiveElementManager< T, U >.CountItems
staticget

Count items

◆ instance

T OnlineMapsInteractiveElementManager< T, U >.instance
staticget

Instance of the manager

◆ items

List<U> OnlineMapsInteractiveElementManager< T, U >.items
getset

Gets / sets the list of items

◆ this[int index]

U OnlineMapsInteractiveElementManager< T, U >.this[int index]
getset

Gets / sets item by index

Parameters
indexIndex of the item
Returns
Item