neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::i_basic_packet< CharType > Class Template Referenceabstract

#include <i_packet.hpp>

Inheritance diagram for neolib::i_basic_packet< CharType >:
neolib::basic_data_packet< char > neolib::basic_binary_packet< CharType > neolib::basic_data_packet< CharType > neolib::basic_string_packet< CharType > neolib::basic_binary_data_packet< char, DefaultPacketTraits > neolib::basic_binary_data_packet< CharType, PacketTraits > neolib::http_packet neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >

Classes

struct  packet_empty
 
struct  packet_too_big
 

Public Types

typedef CharType character_type
 
typedef const character_typeconst_pointer
 
typedef character_typepointer
 
typedef std::size_t size_type
 
typedef const_pointer const_iterator
 
typedef pointer iterator
 
typedef std::unique_ptr< i_basic_packetclone_pointer
 

Public Member Functions

virtual ~i_basic_packet ()=default
 
virtual const_pointer data () const =0
 
virtual pointer data ()=0
 
virtual size_type length () const =0
 
virtual bool has_max_length () const =0
 
virtual size_type max_length () const =0
 
bool empty () const
 
virtual void clear ()=0
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin ()
 
iterator end ()
 
virtual bool take_some (const_pointer &aFirst, const_pointer aLast)=0
 
virtual clone_pointer clone () const =0
 
virtual void copy_from (const i_basic_packet< CharType > &aSource)=0
 

Detailed Description

template<typename CharType>
class neolib::i_basic_packet< CharType >

Definition at line 45 of file i_packet.hpp.

Member Typedef Documentation

◆ character_type

Definition at line 49 of file i_packet.hpp.

◆ clone_pointer

template<typename CharType >
typedef std::unique_ptr<i_basic_packet> neolib::i_basic_packet< CharType >::clone_pointer

Definition at line 55 of file i_packet.hpp.

◆ const_iterator

Definition at line 53 of file i_packet.hpp.

◆ const_pointer

Definition at line 50 of file i_packet.hpp.

◆ iterator

Definition at line 54 of file i_packet.hpp.

◆ pointer

Definition at line 51 of file i_packet.hpp.

◆ size_type

template<typename CharType >
typedef std::size_t neolib::i_basic_packet< CharType >::size_type

Definition at line 52 of file i_packet.hpp.

Constructor & Destructor Documentation

◆ ~i_basic_packet()

Member Function Documentation

◆ begin() [1/2]

template<typename CharType >
iterator neolib::i_basic_packet< CharType >::begin ( )
inline

Definition at line 74 of file i_packet.hpp.

◆ begin() [2/2]

template<typename CharType >
const_iterator neolib::i_basic_packet< CharType >::begin ( ) const
inline

Definition at line 72 of file i_packet.hpp.

◆ clear()

◆ clone()

◆ copy_from()

◆ data() [1/2]

◆ data() [2/2]

◆ empty()

template<typename CharType >
bool neolib::i_basic_packet< CharType >::empty ( ) const
inline

Definition at line 70 of file i_packet.hpp.

◆ end() [1/2]

template<typename CharType >
iterator neolib::i_basic_packet< CharType >::end ( )
inline

Definition at line 75 of file i_packet.hpp.

◆ end() [2/2]

template<typename CharType >
const_iterator neolib::i_basic_packet< CharType >::end ( ) const
inline

Definition at line 73 of file i_packet.hpp.

◆ has_max_length()

◆ length()

◆ max_length()

◆ take_some()


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