TrinityCore
Trinity::CheckedBufferOutputIterator< T > Class Template Reference

#include <Containers.h>

Public Types

using iterator_category = std::output_iterator_tag
 
using value_type = void
 
using pointer = T *
 
using reference = T &
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 CheckedBufferOutputIterator (T *buf, size_t n)
 
T & operator* () const
 
CheckedBufferOutputIteratoroperator++ ()
 
CheckedBufferOutputIterator operator++ (int)
 
size_t remaining () const
 

Private Member Functions

void check () const
 

Private Attributes

T * _buf
 
T * _end
 

Detailed Description

template<class T>
class Trinity::CheckedBufferOutputIterator< T >

Definition at line 35 of file Containers.h.

Member Typedef Documentation

◆ difference_type

template<class T >
using Trinity::CheckedBufferOutputIterator< T >::difference_type = std::ptrdiff_t

Definition at line 42 of file Containers.h.

◆ iterator_category

template<class T >
using Trinity::CheckedBufferOutputIterator< T >::iterator_category = std::output_iterator_tag

Definition at line 38 of file Containers.h.

◆ pointer

template<class T >
using Trinity::CheckedBufferOutputIterator< T >::pointer = T*

Definition at line 40 of file Containers.h.

◆ reference

template<class T >
using Trinity::CheckedBufferOutputIterator< T >::reference = T&

Definition at line 41 of file Containers.h.

◆ value_type

template<class T >
using Trinity::CheckedBufferOutputIterator< T >::value_type = void

Definition at line 39 of file Containers.h.

Constructor & Destructor Documentation

◆ CheckedBufferOutputIterator()

template<class T >
Trinity::CheckedBufferOutputIterator< T >::CheckedBufferOutputIterator ( T *  buf,
size_t  n 
)
inline

Definition at line 44 of file Containers.h.

Member Function Documentation

◆ check()

template<class T >
void Trinity::CheckedBufferOutputIterator< T >::check ( ) const
inlineprivate

Definition at line 55 of file Containers.h.

+ Here is the caller graph for this function:

◆ operator*()

template<class T >
T & Trinity::CheckedBufferOutputIterator< T >::operator* ( ) const
inline

Definition at line 46 of file Containers.h.

+ Here is the call graph for this function:

◆ operator++() [1/2]

template<class T >
CheckedBufferOutputIterator & Trinity::CheckedBufferOutputIterator< T >::operator++ ( )
inline

Definition at line 47 of file Containers.h.

+ Here is the call graph for this function:

◆ operator++() [2/2]

template<class T >
CheckedBufferOutputIterator Trinity::CheckedBufferOutputIterator< T >::operator++ ( int  )
inline

Definition at line 48 of file Containers.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ remaining()

template<class T >
size_t Trinity::CheckedBufferOutputIterator< T >::remaining ( ) const
inline

Definition at line 50 of file Containers.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _buf

template<class T >
T* Trinity::CheckedBufferOutputIterator< T >::_buf
private

Definition at line 53 of file Containers.h.

◆ _end

template<class T >
T* Trinity::CheckedBufferOutputIterator< T >::_end
private

Definition at line 54 of file Containers.h.


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