Back to index

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

#include <Category.h>

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

List of all members.

Public Member Functions

 Category (DeeModel *model, DeeModelIter *iter, DeeModelTag *tag)
 Category (Category const &other)
Categoryoperator= (Category const &other)
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 > name
nux::ROProperty< std::string > icon_hint
nux::ROProperty< std::size_t > index
nux::ROProperty< std::string > renderer_name

Protected Attributes

DeeModel * model_
DeeModelIter * iter_
DeeModelTag * tag_

Private Member Functions

void SetupGetters ()
std::size_t get_index () const

Detailed Description

Definition at line 33 of file Category.h.


Constructor & Destructor Documentation

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

Definition at line 29 of file Category.cpp.

  : RowAdaptorBase(model, iter, renderer_name_tag)
{
  SetupGetters();
}

Here is the call graph for this function:

Definition at line 37 of file Category.cpp.

  : RowAdaptorBase(other)
{
  SetupGetters();
}

Here is the call graph for this function:


Member Function Documentation

std::size_t unity::dash::Category::get_index ( ) const [private]

Definition at line 58 of file Category.cpp.

{
  return dee_model_get_position(model_, iter_);
}

Here is the caller graph for this function:

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:

Category & unity::dash::Category::operator= ( Category const &  other)

Definition at line 43 of file Category.cpp.

{
  RowAdaptorBase::operator=(other);
  SetupGetters();
  return *this;
}

Here is the call 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:

Definition at line 50 of file Category.cpp.

{
  name.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 0));
  icon_hint.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 1));
  index.SetGetterFunction(sigc::mem_fun(this, &Category::get_index));
  renderer_name.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 2));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

nux::ROProperty<std::string> unity::dash::Category::icon_hint

Definition at line 42 of file Category.h.

nux::ROProperty<std::size_t> unity::dash::Category::index

Definition at line 43 of file Category.h.

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::Category::name

Definition at line 41 of file Category.h.

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

Definition at line 44 of file Category.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: