Audio Processing Framework (APF) version 0.5.0
Public Member Functions | List of all members
apf::RtList< T * >::AddCommand Class Reference

Command to add an element to a list. More...

#include <apf/rtlist.h>

Inheritance diagram for apf::RtList< T * >::AddCommand:
Inheritance graph
[legend]

Public Member Functions

 AddCommand (list_t &dst_list, T *element)
 Constructor to add a single item. More...
 
template<typename InputIterator >
 AddCommand (list_t &dst_list, InputIterator first, InputIterator last)
 Constructor to add a bunch of items at once. More...
 
virtual void execute ()
 The actual implementation of the command. More...
 
virtual void cleanup ()
 Cleanup of resources. More...
 
- Public Member Functions inherited from apf::CommandQueue::Command
virtual ~Command ()
 Empty virtual destructor. More...
 
virtual void execute ()=0
 The actual implementation of the command. More...
 
virtual void cleanup ()=0
 Cleanup of resources. More...
 
- Public Member Functions inherited from apf::NonCopyable
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
 NonCopyable (NonCopyable &&)=default
 
NonCopyableoperator= (NonCopyable &&)=default
 

Additional Inherited Members

- Protected Member Functions inherited from apf::NonCopyable
 NonCopyable ()=default
 Protected default constructor. More...
 
 ~NonCopyable ()=default
 Protected non-virtual destructor. More...
 

Detailed Description

template<typename T>
class apf::RtList< T * >::AddCommand

Command to add an element to a list.

Definition at line 159 of file rtlist.h.

Constructor & Destructor Documentation

◆ AddCommand() [1/2]

template<typename T >
apf::RtList< T * >::AddCommand::AddCommand ( list_t &  dst_list,
T *  element 
)
inline

Constructor to add a single item.

Parameters
dst_listList to which the element will be added
elementPointer to the element that will be added

Definition at line 165 of file rtlist.h.

◆ AddCommand() [2/2]

template<typename T >
template<typename InputIterator >
apf::RtList< T * >::AddCommand::AddCommand ( list_t &  dst_list,
InputIterator  first,
InputIterator  last 
)
inline

Constructor to add a bunch of items at once.

Parameters
dst_listList to which the elements will be added
firstIterator to the first item to be added
lastPast-the-end iterator

Definition at line 177 of file rtlist.h.

Member Function Documentation

◆ execute()

template<typename T >
virtual void apf::RtList< T * >::AddCommand::execute ( )
inlinevirtual

The actual implementation of the command.

This is called from the realtime thread. Overwritten in the derived class.

Implements apf::CommandQueue::Command.

Definition at line 182 of file rtlist.h.

◆ cleanup()

template<typename T >
virtual void apf::RtList< T * >::AddCommand::cleanup ( )
inlinevirtual

Cleanup of resources.

This is called from the non-realtime thread. Overwritten in the derived class.

Implements apf::CommandQueue::Command.

Definition at line 188 of file rtlist.h.


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