Back to index

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

#include <Result.h>

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

List of all members.

Public Member Functions

 Result (DeeModel *model, DeeModelIter *iter, DeeModelTag *tag)
 Result (Result const &other)
Resultoperator= (Result 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 > uri
nux::ROProperty< std::string > icon_hint
nux::ROProperty< std::size_t > category_index
nux::ROProperty< std::string > mimetype
nux::ROProperty< std::string > name
nux::ROProperty< std::string > comment
nux::ROProperty< std::string > dnd_uri

Protected Attributes

DeeModel * model_
DeeModelIter * iter_
DeeModelTag * tag_

Private Member Functions

void SetupGetters ()

Detailed Description

Definition at line 38 of file Result.h.


Constructor & Destructor Documentation

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

Definition at line 28 of file Result.cpp.

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

Here is the call graph for this function:

unity::dash::Result::Result ( Result const &  other)

Definition at line 36 of file Result.cpp.

  : RowAdaptorBase(other)
{
  SetupGetters();
}

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:

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

Definition at line 42 of file Result.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 49 of file Result.cpp.

{
  uri.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 0));
  icon_hint.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 1));
  category_index.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetUIntAt), 2));
  mimetype.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 3));
  name.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 4));
  comment.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 5));
  dnd_uri.SetGetterFunction(sigc::bind(sigc::mem_fun(this, &RowAdaptorBase::GetStringAt), 6));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

nux::ROProperty<std::size_t> unity::dash::Result::category_index

Definition at line 48 of file Result.h.

nux::ROProperty<std::string> unity::dash::Result::comment

Definition at line 51 of file Result.h.

nux::ROProperty<std::string> unity::dash::Result::dnd_uri

Definition at line 52 of file Result.h.

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

Definition at line 47 of file Result.h.

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

Definition at line 67 of file ModelRowAdaptor.h.

nux::ROProperty<std::string> unity::dash::Result::mimetype

Definition at line 49 of file Result.h.

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

Definition at line 66 of file ModelRowAdaptor.h.

nux::ROProperty<std::string> unity::dash::Result::name

Definition at line 50 of file Result.h.

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

Definition at line 68 of file ModelRowAdaptor.h.

nux::ROProperty<std::string> unity::dash::Result::uri

Definition at line 46 of file Result.h.


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