TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MapRefManager.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef _MAPREFMANAGER
20 #define _MAPREFMANAGER
21 
22 #include "RefManager.h"
23 
24 class MapReference;
25 
26 class MapRefManager : public RefManager<Map, Player>
27 {
28  public:
31 
36 
37  iterator begin() { return iterator(getFirst()); }
38  iterator end() { return iterator(NULL); }
39  iterator rbegin() { return iterator(getLast()); }
40  iterator rend() { return iterator(NULL); }
41  const_iterator begin() const { return const_iterator(getFirst()); }
42  const_iterator end() const { return const_iterator(NULL); }
43 };
44 #endif
45 
iterator rbegin()
Definition: MapRefManager.h:39
arena_t NULL
Definition: jemalloc_internal.h:624
MapReference * getLast()
Definition: MapRefManager.h:34
Definition: RefManager.h:26
iterator begin()
Definition: MapRefManager.h:37
MapReference const * getLast() const
Definition: MapRefManager.h:35
Reference< TO, FROM > * getLast()
Definition: RefManager.h:35
iterator rend()
Definition: MapRefManager.h:40
MapReference * getFirst()
Definition: MapRefManager.h:32
const_iterator begin() const
Definition: MapRefManager.h:41
LinkedListHead::Iterator< MapReference > iterator
Definition: MapRefManager.h:29
Reference< TO, FROM > * getFirst()
Definition: RefManager.h:33
Definition: MapRefManager.h:26
LinkedListHead::Iterator< MapReference const > const_iterator
Definition: MapRefManager.h:30
const_iterator end() const
Definition: MapRefManager.h:42
MapReference const * getFirst() const
Definition: MapRefManager.h:33
iterator end()
Definition: MapRefManager.h:38
Definition: MapReference.h:25