cpp-bencoding
Public Member Functions | Protected Member Functions | List of all members
bencoding::BItemVisitor Class Referenceabstract

Base class for all visitors of the BItem subclasses. More...

#include <BItemVisitor.h>

Inheritance diagram for bencoding::BItemVisitor:
bencoding::Encoder bencoding::PrettyPrinter

Public Member Functions

virtual ~BItemVisitor ()
 Destructs the visitor. More...
 
virtual void visit (BDictionary *bDictionary)=0
 
virtual void visit (BInteger *bInteger)=0
 
virtual void visit (BList *blist)=0
 
virtual void visit (BString *bString)=0
 

Protected Member Functions

 BItemVisitor ()
 Constructs the visitor. More...
 

Detailed Description

Base class for all visitors of the BItem subclasses.

Implements the Visitor design pattern.

Constructor & Destructor Documentation

◆ ~BItemVisitor()

bencoding::BItemVisitor::~BItemVisitor ( )
virtualdefault

Destructs the visitor.

◆ BItemVisitor()

bencoding::BItemVisitor::BItemVisitor ( )
protecteddefault

Constructs the visitor.

Member Function Documentation

◆ visit() [1/4]

virtual void bencoding::BItemVisitor::visit ( BDictionary bDictionary)
pure virtual

◆ visit() [2/4]

virtual void bencoding::BItemVisitor::visit ( BInteger bInteger)
pure virtual

◆ visit() [3/4]

virtual void bencoding::BItemVisitor::visit ( BList blist)
pure virtual

◆ visit() [4/4]

virtual void bencoding::BItemVisitor::visit ( BString bString)
pure virtual

The documentation for this class was generated from the following files: