Back to index

unity  6.0.0
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
unity::dash::Filters Class Reference

#include <Filters.h>

Inheritance diagram for unity::dash::Filters:
Inheritance graph
[legend]
Collaboration diagram for unity::dash::Filters:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::shared_ptr< FiltersPtr
typedef std::map< DeeModelIter
*, Filter::Ptr
FilterMap

Public Member Functions

 Filters ()
 Filters (ModelType model_type)
 ~Filters ()
Filter::Ptr FilterAtIndex (std::size_t index)
const FilterAdaptor RowAtIndex (std::size_t index)

Public Attributes

sigc::signal< void, Filter::Ptrfilter_added
sigc::signal< void, Filter::Ptrfilter_changed
sigc::signal< void, Filter::Ptrfilter_removed
nux::Property< std::string > swarm_name
nux::ROProperty< std::size_t > count
nux::ROProperty< unsigned long
long > 
seqnum
nux::ROProperty< glib::Object
< DeeModel > > 
model
sigc::signal< void,
FilterAdaptor & > 
row_added
sigc::signal< void,
FilterAdaptor & > 
row_changed
sigc::signal< void,
FilterAdaptor & > 
row_removed
sigc::signal< void, unsigned
long long, unsigned long long > 
begin_transaction
sigc::signal< void, unsigned
long long, unsigned long long > 
end_transaction

Private Member Functions

void OnRowAdded (FilterAdaptor &filter)
void OnRowChanged (FilterAdaptor &filter)
void OnRowRemoved (FilterAdaptor &filter)

Private Attributes

FilterMap filter_map_

Detailed Description

Definition at line 47 of file Filters.h.


Member Typedef Documentation

typedef std::map<DeeModelIter*, Filter::Ptr> unity::dash::Filters::FilterMap

Definition at line 51 of file Filters.h.

typedef std::shared_ptr<Filters> unity::dash::Filters::Ptr

Reimplemented from unity::dash::Model< FilterAdaptor >.

Definition at line 50 of file Filters.h.


Constructor & Destructor Documentation

Definition at line 52 of file Filters.cpp.

{
  row_added.connect(sigc::mem_fun(this, &Filters::OnRowAdded));
  row_changed.connect(sigc::mem_fun(this, &Filters::OnRowChanged));
  row_removed.connect(sigc::mem_fun(this, &Filters::OnRowRemoved));
}

Here is the call graph for this function:

Definition at line 59 of file Filters.cpp.

 : Model<FilterAdaptor>::Model(model_type)
{
  row_added.connect(sigc::mem_fun(this, &Filters::OnRowAdded));
  row_changed.connect(sigc::mem_fun(this, &Filters::OnRowChanged));
  row_removed.connect(sigc::mem_fun(this, &Filters::OnRowRemoved));
}

Here is the call graph for this function:

Definition at line 67 of file Filters.cpp.

{}

Member Function Documentation

Definition at line 70 of file Filters.cpp.

{
  FilterAdaptor adaptor = RowAtIndex(index);
  return filter_map_[adaptor.iter()];
}

Here is the call graph for this function:

void unity::dash::Filters::OnRowAdded ( FilterAdaptor filter) [private]

Definition at line 76 of file Filters.cpp.

{
  Filter::Ptr ret = Filter::FilterFromIter(filter.model(), filter.iter());

  filter_map_[filter.iter()] = ret;
  filter_added(ret);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity::dash::Filters::OnRowChanged ( FilterAdaptor filter) [private]

Definition at line 84 of file Filters.cpp.

{
  filter_changed(filter_map_[filter.iter()]);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity::dash::Filters::OnRowRemoved ( FilterAdaptor filter) [private]

Definition at line 89 of file Filters.cpp.

{
  filter_removed(filter_map_[filter.iter()]);
  filter_map_.erase(filter.iter());
}

Here is the call graph for this function:

Here is the caller graph for this function:

const FilterAdaptor unity::dash::Model< FilterAdaptor >::RowAtIndex ( std::size_t  index) [inherited]

Here is the caller graph for this function:


Member Data Documentation

sigc::signal<void, unsigned long long, unsigned long long> unity::dash::Model< FilterAdaptor >::begin_transaction [inherited]

Definition at line 70 of file Model.h.

nux::ROProperty<std::size_t> unity::dash::Model< FilterAdaptor >::count [inherited]

Definition at line 62 of file Model.h.

sigc::signal<void, unsigned long long, unsigned long long> unity::dash::Model< FilterAdaptor >::end_transaction [inherited]

Definition at line 71 of file Model.h.

Definition at line 59 of file Filters.h.

Definition at line 60 of file Filters.h.

Definition at line 69 of file Filters.h.

Definition at line 61 of file Filters.h.

nux::ROProperty<glib::Object<DeeModel> > unity::dash::Model< FilterAdaptor >::model [inherited]

Definition at line 64 of file Model.h.

sigc::signal<void, FilterAdaptor &> unity::dash::Model< FilterAdaptor >::row_added [inherited]

Definition at line 66 of file Model.h.

sigc::signal<void, FilterAdaptor &> unity::dash::Model< FilterAdaptor >::row_changed [inherited]

Definition at line 67 of file Model.h.

sigc::signal<void, FilterAdaptor &> unity::dash::Model< FilterAdaptor >::row_removed [inherited]

Definition at line 68 of file Model.h.

nux::ROProperty<unsigned long long> unity::dash::Model< FilterAdaptor >::seqnum [inherited]

Definition at line 63 of file Model.h.

nux::Property<std::string> unity::dash::Model< FilterAdaptor >::swarm_name [inherited]

Definition at line 61 of file Model.h.


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