Back to index

unity  6.0.0
Public Member Functions | Public Attributes | Protected Attributes
unity::dash::FilterAdaptor Class Reference

#include <Filters.h>

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

List of all members.

Public Member Functions

 FilterAdaptor (DeeModel *model, DeeModelIter *iter, DeeModelTag *tag)
 FilterAdaptor (FilterAdaptor const &)
DeeModel * model () const
DeeModelIter * iter () const
std::string GetStringAt (int position)
bool GetBoolAt (int position)
unsigned int GetUIntAt (int position)
template<typename T >
void set_renderer (T renderer)
template<typename T >
renderer ()

Public Attributes

nux::ROProperty< std::string > renderer_name

Protected Attributes

DeeModel * model_
DeeModelIter * iter_
DeeModelTag * tag_

Detailed Description

Definition at line 34 of file Filters.h.


Constructor & Destructor Documentation

unity::dash::FilterAdaptor::FilterAdaptor ( DeeModel *  model,
DeeModelIter *  iter,
DeeModelTag *  tag 
)

Definition at line 27 of file Filters.cpp.

  : RowAdaptorBase(model, iter, renderer_tag)
{
  renderer_name.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 3));
}

Here is the call graph for this function:

Definition at line 35 of file Filters.cpp.

  : RowAdaptorBase(other.model_, other.iter_, other.tag_)
{
  renderer_name.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 3));
}

Here is the call graph for this function:


Member Function Documentation

bool unity::dash::RowAdaptorBase::GetBoolAt ( int  position) [inherited]

Definition at line 59 of file ModelRowAdaptor.cpp.

{
  if (!model_ || !iter_)
    return 0;
  return dee_model_get_bool(model_, iter_, position);
}
std::string unity::dash::RowAdaptorBase::GetStringAt ( int  position) [inherited]

Definition at line 48 of file ModelRowAdaptor.cpp.

{
  if (!model_ || !iter_)
    return "";
  const gchar* value = dee_model_get_string(model_, iter_, position);
  if (value)
    return value;
  else
    return ""; // std::strings don't like null.
}

Here is the caller graph for this function:

unsigned int unity::dash::RowAdaptorBase::GetUIntAt ( int  position) [inherited]

Definition at line 66 of file ModelRowAdaptor.cpp.

{
  if (!model_ || !iter_)
    return 0;
  return dee_model_get_uint32(model_, iter_, position);
}

Here is the caller graph for this function:

DeeModelIter * unity::dash::FilterAdaptor::iter ( ) const

Definition at line 46 of file Filters.cpp.

{
  return iter_;
}

Here is the caller graph for this function:

DeeModel * unity::dash::FilterAdaptor::model ( ) const

Definition at line 41 of file Filters.cpp.

{
  return model_;
}

Here is the caller graph for this function:

template<typename T >
T unity::dash::RowAdaptorBase::renderer ( ) [inherited]

Definition at line 35 of file ModelRowAdaptor-inl.h.

{
  return static_cast<T>(dee_model_get_tag(model_, iter_, tag_));
}

Here is the caller graph for this function:

template<typename T >
void unity::dash::RowAdaptorBase::set_renderer ( renderer) [inherited]

Definition at line 29 of file ModelRowAdaptor-inl.h.

{
  dee_model_set_tag(model_, iter_, tag_, renderer);
}

Here is the caller graph for this function:


Member Data Documentation

DeeModelIter* unity::dash::RowAdaptorBase::iter_ [protected, inherited]

Definition at line 67 of file ModelRowAdaptor.h.

DeeModel* unity::dash::RowAdaptorBase::model_ [protected, inherited]

Definition at line 66 of file ModelRowAdaptor.h.

nux::ROProperty<std::string> unity::dash::FilterAdaptor::renderer_name

Definition at line 40 of file Filters.h.

DeeModelTag* unity::dash::RowAdaptorBase::tag_ [protected, inherited]

Definition at line 68 of file ModelRowAdaptor.h.


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