libt3widget
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
List of all members | Public Member Functions
t3_widget::filtered_list_t< list_t > Class Template Reference

Generic filtered list template. More...

Inheritance diagram for t3_widget::filtered_list_t< list_t >:
t3_widget::filtered_list_internal_t< list_t > t3_widget::filtered_list_base_t t3_widget::list_base_t

Public Member Functions

 filtered_list_t (list_t *list)
 
virtual void set_filter (const sigc::slot< bool, string_list_base_t *, size_t > &_test)
 Set the filter callback. More...
 
- Public Member Functions inherited from t3_widget::filtered_list_internal_t< list_t >
 filtered_list_internal_t (list_t *list)
 Make a new filtered_list_internal_t, wrapping an existing list. More...
 
virtual const std::string * operator[] (size_t idx) const
 Retrieve element idx. More...
 
virtual void reset_filter (void)
 Reset the filter. More...
 
virtual size_t size (void) const
 Retrieve the size of the list. More...
 

Additional Inherited Members

- Protected Member Functions inherited from t3_widget::filtered_list_internal_t< list_t >
void update_list (void)
 Update the filtered list. More...
 
- Protected Attributes inherited from t3_widget::filtered_list_internal_t< list_t >
list_t * base
 Base list of which this is a filtered view. More...
 
sigc::connection base_content_changed_connection
 Connection to base list's content_changed signal. More...
 
std::vector< size_t > items
 Vector holding the indices in the base list of the items included in the filtered list. More...
 
sigc::slot< bool, list_t
*, size_t > 
test
 Filter function. More...
 

Detailed Description

template<class list_t>
class t3_widget::filtered_list_t< list_t >

Generic filtered list template.

Because the instantiation of this template is a subclass of list_t, depending on the type of list_t, there may be more functions that need to be implemented.

Member Function Documentation

template<class list_t>
virtual void t3_widget::filtered_list_t< list_t >::set_filter ( const sigc::slot< bool, string_list_base_t *, size_t > &  )
inlinevirtual

Set the filter callback.

Reimplemented from t3_widget::filtered_list_internal_t< list_t >.