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

#include <binary_packet.hpp>

Inheritance diagram for neolib::basic_binary_packet< CharType >:
neolib::i_basic_packet< CharType >

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::clone_pointer clone_pointer
 
typedef std::vector< CharTypecontents_type
 
- Public Types inherited from neolib::i_basic_packet< CharType >
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

 basic_binary_packet (const contents_type &aContents=contents_type())
 
 basic_binary_packet (const void *aPointer, size_type aLength)
 
 basic_binary_packet (const basic_binary_packet &aOther)
 
basic_binary_packetoperator= (const basic_binary_packet &aOther)
 
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 i_basic_packet< CharType > &aSource)
 
const contents_typecontents () const
 
contents_typecontents ()
 
- Public Member Functions inherited from neolib::i_basic_packet< CharType >
virtual ~i_basic_packet ()=default
 
bool empty () const
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin ()
 
iterator end ()
 

Detailed Description

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

Definition at line 45 of file binary_packet.hpp.

Member Typedef Documentation

◆ character_type

◆ clone_pointer

◆ const_pointer

◆ contents_type

template<typename CharType >
typedef std::vector<CharType> neolib::basic_binary_packet< CharType >::contents_type

Definition at line 55 of file binary_packet.hpp.

◆ pointer

◆ size_type

Constructor & Destructor Documentation

◆ basic_binary_packet() [1/3]

template<typename CharType >
neolib::basic_binary_packet< CharType >::basic_binary_packet ( const contents_type aContents = contents_type())
inline

Definition at line 58 of file binary_packet.hpp.

◆ basic_binary_packet() [2/3]

template<typename CharType >
neolib::basic_binary_packet< CharType >::basic_binary_packet ( const void aPointer,
size_type  aLength 
)
inline

Definition at line 62 of file binary_packet.hpp.

◆ basic_binary_packet() [3/3]

template<typename CharType >
neolib::basic_binary_packet< CharType >::basic_binary_packet ( const basic_binary_packet< CharType > &  aOther)
inline

Definition at line 66 of file binary_packet.hpp.

Member Function Documentation

◆ clear()

template<typename CharType >
virtual void neolib::basic_binary_packet< CharType >::clear ( )
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 103 of file binary_packet.hpp.

◆ clone()

template<typename CharType >
virtual clone_pointer neolib::basic_binary_packet< CharType >::clone ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 117 of file binary_packet.hpp.

◆ contents() [1/2]

template<typename CharType >
contents_type & neolib::basic_binary_packet< CharType >::contents ( )
inline

Definition at line 132 of file binary_packet.hpp.

◆ contents() [2/2]

template<typename CharType >
const contents_type & neolib::basic_binary_packet< CharType >::contents ( ) const
inline

Definition at line 128 of file binary_packet.hpp.

◆ copy_from()

template<typename CharType >
virtual void neolib::basic_binary_packet< CharType >::copy_from ( const i_basic_packet< CharType > &  aSource)
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 121 of file binary_packet.hpp.

◆ data() [1/2]

template<typename CharType >
virtual pointer neolib::basic_binary_packet< CharType >::data ( )
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 85 of file binary_packet.hpp.

◆ data() [2/2]

template<typename CharType >
virtual const_pointer neolib::basic_binary_packet< CharType >::data ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 79 of file binary_packet.hpp.

◆ has_max_length()

template<typename CharType >
virtual bool neolib::basic_binary_packet< CharType >::has_max_length ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 95 of file binary_packet.hpp.

◆ length()

template<typename CharType >
virtual size_type neolib::basic_binary_packet< CharType >::length ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 91 of file binary_packet.hpp.

◆ max_length()

template<typename CharType >
virtual size_type neolib::basic_binary_packet< CharType >::max_length ( ) const
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 99 of file binary_packet.hpp.

◆ operator=()

Definition at line 70 of file binary_packet.hpp.

◆ take_some()

template<typename CharType >
virtual bool neolib::basic_binary_packet< CharType >::take_some ( const_pointer aFirst,
const_pointer  aLast 
)
inlinevirtual

Implements neolib::i_basic_packet< CharType >.

Definition at line 107 of file binary_packet.hpp.


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