|
cpp-bencoding
|
Base class for all items (integers, strings, etc.). More...
#include <BItem.h>
Public Member Functions | |
| virtual | ~BItem ()=0 |
| Destructs the item. More... | |
| template<typename T > | |
| std::shared_ptr< T > | as () |
| Casts the item to the given subclass of BItem. More... | |
BItemVisitor Support | |
| virtual void | accept (BItemVisitor *visitor)=0 |
| Accepts the item by the given visitor. More... | |
Protected Member Functions | |
| BItem () | |
| Constructs the item. More... | |
Private Member Functions | |
| BItem (const BItem &)=delete | |
| BItem & | operator= (const BItem &)=delete |
Base class for all items (integers, strings, etc.).
|
pure virtualdefault |
Destructs the item.
|
protecteddefault |
Constructs the item.
|
privatedelete |
|
pure virtual |
Accepts the item by the given visitor.
Subclasses should implement this function in this way:
Implemented in bencoding::BDictionary, bencoding::BList, bencoding::BString, and bencoding::BInteger.
|
inline |
1.8.14