mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[Sync] Some project sync
This commit is contained in:
parent
b25fa433fe
commit
bbf0020c1a
98 changed files with 5866 additions and 2121 deletions
|
|
@ -30,25 +30,63 @@
|
|||
template<class OBJECT> class GridReference;
|
||||
|
||||
template<class OBJECT>
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
*/
|
||||
class GridRefManager : public RefManager<GridRefManager<OBJECT>, OBJECT>
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
*/
|
||||
typedef LinkedListHead::Iterator< GridReference<OBJECT> > iterator;
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @return GridReference<OBJECT>
|
||||
*/
|
||||
GridReference<OBJECT>* getFirst()
|
||||
{
|
||||
return (GridReference<OBJECT>*)RefManager<GridRefManager<OBJECT>, OBJECT>::getFirst();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @return GridReference<OBJECT>
|
||||
*/
|
||||
GridReference<OBJECT>* getLast()
|
||||
{
|
||||
return (GridReference<OBJECT>*)RefManager<GridRefManager<OBJECT>, OBJECT>::getLast();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @return iterator
|
||||
*/
|
||||
iterator begin() { return iterator(getFirst()); }
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @return iterator
|
||||
*/
|
||||
iterator end() { return iterator(NULL); }
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @return iterator
|
||||
*/
|
||||
iterator rbegin() { return iterator(getLast()); }
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @return iterator
|
||||
*/
|
||||
iterator rend() { return iterator(NULL); }
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue