Base class used as container for classes having listeners created by sf::TListener template.  
 More...
#include <TListener.h>
 | 
|   | ~ListenerList () | 
|   | Destructor deleting all entries by calling flushListeners().  
  | 
|   | 
| size_t  | flushListeners () | 
|   | Deletes all the linked entries in the list.  
  | 
|   | 
| size_t  | removeListener (const base_type *entry) | 
|   | Removes the given entry from the list.  
  | 
|   | 
| size_t  | cleanupListeners () | 
|   | Removes all invalid/unused entries. There is no real need call this method explicitly since it is called when a new link is added. It is mainly used during unit tests to check proper functioning.  
  | 
|   | 
 | 
| template<typename... Args>  | 
| class  | TListener | 
|   | Allows access to appendListener() method from the TListener template.  
  | 
|   | 
Base class used as container for classes having listeners created by sf::TListener template. 
 
◆ ~ListenerList()
      
        
          | sf::ListenerList::~ListenerList  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ cleanupListeners()
      
        
          | size_t sf::ListenerList::cleanupListeners  | 
          ( | 
           | ) | 
           | 
        
      
 
Removes all invalid/unused entries. There is no real need call this method explicitly since it is called when a new link is added. It is mainly used during unit tests to check proper functioning. 
- Returns
 - Amount of removed entries. 
 
 
 
◆ flushListeners()
      
        
          | size_t sf::ListenerList::flushListeners  | 
          ( | 
           | ) | 
           | 
        
      
 
Deletes all the linked entries in the list. 
- Returns
 - A mount of flushed entries. 
 
 
 
◆ removeListener()
      
        
          | size_t sf::ListenerList::removeListener  | 
          ( | 
          const base_type *  | 
          entry | ) | 
           | 
        
      
 
Removes the given entry from the list. 
- Returns
 - Amount of removed entries. 
 
 
 
◆ TListener
template<typename... Args> 
 
Allows access to appendListener() method from the TListener template. 
 
 
The documentation for this class was generated from the following file: