ADTF
Loading...
Searching...
No Matches
adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER > Class Template Reference

#include <object_list.h>

Inherits adtf::ucom::ant::object_enum_base< T, T, std::list >.

Public Types

typedef object_enum_base< T, INTERFACE_TYPE, CONTAINER > base_type
 
typedef base_type::container_type container_type
 
typedef base_type::interface_type interface_type
 
typedef object_ptr< T > value_type
 
typedef iobject_ptr< T > value_interface_type
 
typedef container_type::const_iterator const_iterator
 short typedefinition for cString lists iterators
 
typedef container_type::const_reverse_iterator const_reverse_iterator
 short typedefinition for cString lists reverse iterators
 
typedef container_type::iterator iterator
 short typedefinition for cString lists iterators
 
typedef container_type::reverse_iterator reverse_iterator
 short typedefinition for cString lists reverse iterators
 
- Public Types inherited from adtf::ucom::ant::object_enum_base< T, T, std::list >
typedef std::list< object_ptr< T > > container_type
 container type
 
typedef iobject_enum< T > base_type
 base type
 
typedef base_type interface_type
 interface type
 
typedef object_ptr< T > value_type
 internal value type
 
- Public Types inherited from adtf::ucom::ant::iobject_enum< T >
typedef iobject_ptr< T > value_type
 value type of the contained objects
 
typedef iobject_enum< T > my_type
 this type
 
typedef iobject_ptr< T > value_type
 value type of the contained objects
 
typedef iobject_enum< T > my_type
 this type
 
typedef iobject_ptr< T > value_type
 value type of the contained objects
 
typedef iobject_enum< T > my_type
 this type
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator cbegin () const
 
const_iterator cend () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
 object_enum ()
 CTOR.
 
 object_enum (const object_enum &oOther)
 copy CTOR
 
 object_enum (object_enum &&oOther)
 move CTOR
 
 object_enum (const container_type &oResetContainerContent)
 
 object_enum (std::initializer_list< value_type > lstValues)
 
object_enumoperator= (const object_enum &oOther)
 
object_enumoperator= (object_enum &&oOther)
 
object_enumoperator= (const container_type &oResetContainerContent)
 
container_type & GetContainer ()
 
void PushBack (const value_type &oObjectValue)
 
void PushFront (const value_type &oObjectValue)
 
void Clear ()
 
void DeleteObject (const value_interface_type &oObject)
 
- Public Member Functions inherited from adtf::ucom::ant::object_enum_base< T, T, std::list >
 object_enum_base (container_type *pContainer)
 CTOR.
 
void Reset ()
 
void SetPushOption (uint32_t ui32PushOption)
 
tResult PushObject (const typename interface_type::value_type &oObject) override
 
tResult GetObjects (base_type &oObjectsEnum) const override
 
size_t GetSize () const override
 
- Public Member Functions inherited from adtf::ucom::ant::iobject_enum< T >
virtual tResult PushObject (const value_type &oObject)=0
 
virtual tResult PushObject (const value_type &oObject)=0
 
virtual tResult PushObject (const value_type &oObject)=0
 
virtual tResult PushObject (const value_type &oObject)=0
 

Public Attributes

container_type m_oContainer
 container implementation
 

Additional Inherited Members

- Protected Member Functions inherited from adtf::ucom::ant::iobject_enum< T >
 ~iobject_enum ()
 hide DTOR
 
 ~iobject_enum ()
 hide DTOR
 
 ~iobject_enum ()
 hide DTOR
 
 ~iobject_enum ()
 hide DTOR
 

Detailed Description

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
class adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >

container type template for a set of object_ptr This template will provide a container for object_ptr with type T and implements a filtered interface for iobject_enum wtih type INTERFACE_TYPE

Template Parameters
Tthe Object Interface type for the object_ptr
INTERFACE_TYPEthe Object Interface type for the iobject_enum interface.
CONTAINERthe container type for

Constructor & Destructor Documentation

◆ object_enum() [1/2]

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::object_enum ( const container_type & oResetContainerContent)
inline

special copy CTOR to copy container content of same value_type

Parameters
[in]oResetContainerContentcontainer content to copy

◆ object_enum() [2/2]

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::object_enum ( std::initializer_list< value_type > lstValues)
inline

special initializer CTOR to create container content

Parameters
[in]lstValuesinitializer list of object pointer references

Member Function Documentation

◆ begin()

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
iterator adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::begin ( )
inline

begin iterator

Returns
begin iterator

◆ cbegin()

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
const_iterator adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::cbegin ( ) const
inline

const begin iterator

Returns
const begin iterator

◆ cend()

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
const_iterator adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::cend ( ) const
inline

const end iterator

Returns
const end iterator

◆ end()

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
iterator adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::end ( )
inline

end iterator

Returns
end iterator

◆ GetContainer()

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
container_type & adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::GetContainer ( )
inline

this method is ONLY for your convenience to use this in other templates !! AND to use optimized emplacement etc.

Returns
Will return the value of container type.

◆ operator=() [1/3]

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
object_enum & adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::operator= ( const container_type & oResetContainerContent)
inline

special copy operator

Parameters
[in]oResetContainerContentcointer of value_type

◆ operator=() [2/3]

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
object_enum & adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::operator= ( const object_enum< T, INTERFACE_TYPE, CONTAINER > & oOther)
inline

copy operator

Parameters
[in]oOthercontent to copy

◆ operator=() [3/3]

template<typename T, typename INTERFACE_TYPE = T, template< typename ELEM, typename ALLOC=std::allocator< ELEM > > class CONTAINER = std::list>
object_enum & adtf::ucom::ant::object_enum< T, INTERFACE_TYPE, CONTAINER >::operator= ( object_enum< T, INTERFACE_TYPE, CONTAINER > && oOther)
inline

move operator

Parameters
[in]oOthercontent to move

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