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

#include <bencode_value.hpp>

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

Public Member Functions

 BencodeInt (int64_t 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...
 
int64_t value () const
 Returns the integer value of the bencode value. More...
 
- Public Member Functions inherited from fur::bencode::BencodeValue
virtual ~BencodeValue ()=default
 

Constructor & Destructor Documentation

◆ BencodeInt()

BencodeInt::BencodeInt ( int64_t  data)
explicit

Member Function Documentation

◆ get_type()

BencodeType BencodeInt::get_type ( ) const
overridevirtual

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

Implements fur::bencode::BencodeValue.

◆ to_string()

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

Returns the string representation of the bencode value.

Implements fur::bencode::BencodeValue.

◆ value()

int64_t BencodeInt::value ( ) const

Returns the integer value of the bencode value.


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