Furrent
Public Member Functions | List of all members
fur::bencode::BencodeList Class Reference

#include <bencode_value.hpp>

Inheritance diagram for fur::bencode::BencodeList:
Inheritance graph
[legend]
Collaboration diagram for fur::bencode::BencodeList:
Collaboration graph
[legend]

Public Member Functions

 BencodeList (std::vector< std::unique_ptr< BencodeValue >> data)
 
std::string to_string () const override
 Returns the string representation of the bencode value. More...
 
BencodeType get_type () const override
 Returns the type of the bencode value as a BencodeType enum. More...
 
std::vector< std::unique_ptr< BencodeValue > > & value ()
 Returns the list of BencodeValue objects that are contained in the list. More...
 
- Public Member Functions inherited from fur::bencode::BencodeValue
virtual ~BencodeValue ()=default
 

Constructor & Destructor Documentation

◆ BencodeList()

BencodeList::BencodeList ( std::vector< std::unique_ptr< BencodeValue >>  data)
explicit

Member Function Documentation

◆ get_type()

BencodeType BencodeList::get_type ( ) const
overridevirtual

Returns the type of the bencode value as a BencodeType enum.

Implements fur::bencode::BencodeValue.

◆ to_string()

std::string BencodeList::to_string ( ) const
overridevirtual

Returns the string representation of the bencode value.

Implements fur::bencode::BencodeValue.

◆ value()

std::vector< std::unique_ptr< BencodeValue > > & BencodeList::value ( )

Returns the list of BencodeValue objects that are contained in the list.


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