LinkedItem.h
Go to the documentation of this file.
1 /****
2  * LinkedItem.h
3  *
4  * Copyright 2019 mikee47 <mike@sillyhouse.net>
5  *
6  * This file is part of the Sming UPnP Library
7  *
8  * This library is free software: you can redistribute it and/or modify it under the terms of the
9  * GNU General Public License as published by the Free Software Foundation, version 3 or later.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
12  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  * See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along with this library.
16  * If not, see <https://www.gnu.org/licenses/>.
17  *
18  ****/
19 
20 #pragma once
21 
22 #include "Item.h"
23 
24 namespace UPnP
25 {
26 class LinkedItemList;
27 
31 class LinkedItem : public Item
32 {
33 public:
34  Item* next() const override
35  {
36  return next_;
37  }
38 
40  {
41  return next_;
42  }
43 
44 private:
45  friend class LinkedItemList;
46  LinkedItem* next_{nullptr};
47 };
48 
49 } // namespace UPnP
Definition: Item.h:39
Singly-linked list of items.
Definition: LinkedItemList.h:31
Base class template for items in a list.
Definition: LinkedItem.h:32
LinkedItem * getNext() const
Definition: LinkedItem.h:39
Item * next() const override
Definition: LinkedItem.h:34
Definition: ActionRequest.h:25