ADTF  3.18.2
ChildElements< ElementAccessType >

Iteratable container type for the given Element type in ElementAccessType::element_type. More...

Public Types

using access_type = typename ElementAccessType::access_type
 The supported access type (from ElementAccessType::access_type)
 
using element_type = typename ElementAccessType::element_type
 The supported element type (from ElementAccessType::element_type)
 
using const_iterator = ElementIteratorConst< ElementAccessType >
 const iterator type
 
using iterator = ElementIterator< ElementAccessType >
 iterator type
 

Public Member Functions

 ChildElements (ChildElements &&)=default
 move CTOR
 
ChildElementsoperator= (ChildElements &&)=default
 move operator More...
 
 ChildElements (const ChildElements &)=delete
 no copy CTOR
 
ChildElementsoperator= (const ChildElements &)=delete
 no copy operator More...
 
 ~ChildElements ()=default
 DTOR.
 
const_iterator cbegin () const
 cbegin More...
 
const_iterator begin () const
 begin More...
 
const_iterator cend () const
 cend More...
 
const_iterator end () const
 end More...
 
iterator begin ()
 begin More...
 
iterator end ()
 end More...
 
size_t size () const
 Size of the container (child count) More...
 

Public Attributes

friend element_type
 friend declaration for element type
 
friend access_type
 friend declaration for access type
 
friend FactoryElement< ElementAccessType, ChildElements< ElementAccessType > >
 friend declaration for factory element
 
friend DecoderElement< ElementAccessType, ChildElements< ElementAccessType > >
 friend declaration for decoder element
 
friend CodecElement< ElementAccessType, ChildElements< ElementAccessType > >
 friend declaration for codec element
 

Private Member Functions

 ChildElements (const CodecIndex &base_index, access_type &access)
 
 ChildElements (const CodecIndex &base_index, size_t child_element_count, access_type &access)
 
void resetChildCount (size_t child_element_count)
 
void resetChildCount ()
 

Private Attributes

const CodecIndex_codec_base_index
 
size_t _child_element_count
 
access_type_access
 

Detailed Description

template<typename ElementAccessType>
class ddl::codec::ChildElements< ElementAccessType >

Iteratable container type for the given Element type in ElementAccessType::element_type.

Template Parameters
ElementAccessTypeThe element access concept type. (see concept templates FactoryElementAccess, DecoderElementAccess, CodecElementAccess)

Definition at line 257 of file codec_iterator.h.

Member Function Documentation

◆ begin() [1/2]

iterator begin ( )
inline

begin

Returns
iterator

Definition at line 365 of file codec_iterator.h.

◆ begin() [2/2]

const_iterator begin ( ) const
inline

begin

Returns
const_iterator

Definition at line 332 of file codec_iterator.h.

References ChildElements< ElementAccessType >::cbegin().

◆ cbegin()

const_iterator cbegin ( ) const
inline

cbegin

Returns
const_iterator

Definition at line 314 of file codec_iterator.h.

Referenced by ChildElements< ElementAccessType >::begin().

◆ cend()

const_iterator cend ( ) const
inline

cend

Returns
const_iterator

Definition at line 340 of file codec_iterator.h.

Referenced by ChildElements< ElementAccessType >::end().

◆ end() [1/2]

iterator end ( )
inline

end

Returns
iterator

Definition at line 382 of file codec_iterator.h.

◆ end() [2/2]

const_iterator end ( ) const
inline

end

Returns
const_iterator

Definition at line 357 of file codec_iterator.h.

References ChildElements< ElementAccessType >::cend().

◆ operator=() [1/2]

ChildElements& operator= ( ChildElements< ElementAccessType > &&  )
default

move operator

Returns
ChildElements&

◆ operator=() [2/2]

ChildElements& operator= ( const ChildElements< ElementAccessType > &  )
delete

no copy operator

Returns
ChildElements&

◆ size()

size_t size ( ) const
inline

Size of the container (child count)

Returns
size_t

Definition at line 398 of file codec_iterator.h.