ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
iobject_enum< INTERFACE_TYPE >abstract

Interface definition for a container of objects. More...

#include <object_list.h>

Inheritance diagram for iobject_enum< INTERFACE_TYPE >:
[legend]

Public Types

typedef iobject_ptr< INTERFACE_TYPE > value_type
 value type of the contained objects
 
typedef iobject_enum< INTERFACE_TYPE > my_type
 this type
 

Public Member Functions

virtual tResult PushObject (const value_type &oObject)=0
 Pushes a object of value_type to the container.
 
virtual tResult GetObjects (my_type &oObjectsEnum) const =0
 Pushes every contained value to the given container in oObjectsEnum.
 
virtual size_t GetSize () const =0
 Retrieves the current value count.
 

Protected Member Functions

 ~iobject_enum ()
 hide DTOR
 

Detailed Description

template<typename INTERFACE_TYPE>
class adtf::ucom::ant::iobject_enum< INTERFACE_TYPE >

Interface definition for a container of objects.

Template Parameters
INTERFACE_TYPEtype of the value type (must be derived from IObject).

Definition at line 21 of file object_list.h.

Member Typedef Documentation

◆ my_type

template<typename INTERFACE_TYPE>
typedef iobject_enum<INTERFACE_TYPE> my_type

this type

Definition at line 33 of file object_list.h.

◆ value_type

template<typename INTERFACE_TYPE>
typedef iobject_ptr<INTERFACE_TYPE> value_type

value type of the contained objects

Definition at line 31 of file object_list.h.

Constructor & Destructor Documentation

◆ ~iobject_enum()

template<typename INTERFACE_TYPE>
~iobject_enum ( )
inlineprotected

hide DTOR

Definition at line 25 of file object_list.h.

Member Function Documentation

◆ GetObjects()

template<typename INTERFACE_TYPE>
virtual tResult GetObjects ( my_type & oObjectsEnum) const
pure virtual

Pushes every contained value to the given container in oObjectsEnum.

Parameters
[in]oObjectsEnumContainer where to push the objects.
Returns
standard error code

Referenced by adtf::filter::testing::ant::activate_runners(), and adtf::filter::testing::ant::deactivate_runners().

◆ GetSize()

template<typename INTERFACE_TYPE>
virtual size_t GetSize ( ) const
pure virtual

◆ PushObject()

template<typename INTERFACE_TYPE>
virtual tResult PushObject ( const value_type & oObject)
pure virtual

Pushes a object of value_type to the container.

The PushObject implementation may decide if the value is accepted or not.

Parameters
[in]oObjecta object reference of the value
Return values
ERR_INVALID_INTERFACEReturns if the value is not INTERFACE_TYPE

Referenced by adtf::streaming::hollow::get_data_binding_objects(), adtf::streaming::hollow::get_graph_objects(), adtf::streaming::hollow::get_interface_binding_objects(), and adtf::streaming::hollow::get_runner_objects().