neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits > Class Template Reference

#include <tld_packet.hpp>

Inheritance diagram for neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >:
neolib::basic_binary_data_packet< CharType, PacketTraits >

Public Types

typedef base_type::character_type character_type
 
typedef base_type::const_pointer const_pointer
 
typedef base_type::pointer pointer
 
typedef base_type::size_type size_type
 
typedef base_type::const_iterator const_iterator
 
typedef base_type::iterator iterator
 
typedef base_type::string_type string_type
 

Public Member Functions

virtual const_pointer data () const
 
virtual pointer data ()
 
virtual size_type length () const
 
virtual bool has_max_length () const
 
virtual size_type max_length () const
 
virtual void clear ()
 
virtual bool take_some (const_pointer &aFirst, const_pointer aLast)
 
virtual clone_pointer clone () const
 
virtual void copy_from (const basic_packet< CharType > &aSource)
 
void encode (IdType Id)
 
IdType id () const
 

Detailed Description

template<typename IdType, std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
class neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >

Definition at line 45 of file tld_packet.hpp.

Member Typedef Documentation

◆ character_type

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
typedef base_type::character_type neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::character_type

Definition at line 51 of file tld_packet.hpp.

◆ const_iterator

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
typedef base_type::const_iterator neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::const_iterator

Definition at line 55 of file tld_packet.hpp.

◆ const_pointer

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
typedef base_type::const_pointer neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::const_pointer

Definition at line 52 of file tld_packet.hpp.

◆ iterator

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
typedef base_type::iterator neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::iterator

Definition at line 56 of file tld_packet.hpp.

◆ pointer

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
typedef base_type::pointer neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::pointer

Definition at line 53 of file tld_packet.hpp.

◆ size_type

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
typedef base_type::size_type neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::size_type

Definition at line 54 of file tld_packet.hpp.

◆ string_type

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
typedef base_type::string_type neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::string_type

Definition at line 57 of file tld_packet.hpp.

Member Function Documentation

◆ clear()

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
virtual void neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::clear ( )
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 88 of file tld_packet.hpp.

◆ clone()

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
virtual clone_pointer neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::clone ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 98 of file tld_packet.hpp.

◆ copy_from()

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
virtual void neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::copy_from ( const basic_packet< CharType > &  aSource)
inlinevirtual

Definition at line 102 of file tld_packet.hpp.

◆ data() [1/2]

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
virtual pointer neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::data ( )
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 72 of file tld_packet.hpp.

◆ data() [2/2]

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
virtual const_pointer neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::data ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 68 of file tld_packet.hpp.

◆ encode()

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
void neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::encode ( IdType  Id)
inline

Definition at line 109 of file tld_packet.hpp.

◆ has_max_length()

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
virtual bool neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::has_max_length ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 80 of file tld_packet.hpp.

◆ id()

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
IdType neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::id ( ) const
inline

Definition at line 116 of file tld_packet.hpp.

◆ length()

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
virtual size_type neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::length ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 76 of file tld_packet.hpp.

◆ max_length()

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
virtual size_type neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::max_length ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 84 of file tld_packet.hpp.

◆ take_some()

template<typename IdType , std::size_t MaxPacketSize = 1024, typename CharType = char, typename PacketTraits = DefaultPacketTraits>
virtual bool neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >::take_some ( const_pointer aFirst,
const_pointer  aLast 
)
inlinevirtual

Definition at line 95 of file tld_packet.hpp.


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