Back to index

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

#include <ModelRowAdaptor.h>

Inheritance diagram for unity::dash::RowAdaptorBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 RowAdaptorBase (DeeModel *model=0, DeeModelIter *iter=0, DeeModelTag *tag=0)
 RowAdaptorBase (RowAdaptorBase const &other)
RowAdaptorBaseoperator= (RowAdaptorBase 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 ()

Protected Attributes

DeeModel * model_
DeeModelIter * iter_
DeeModelTag * tag_

Detailed Description

Definition at line 48 of file ModelRowAdaptor.h.


Constructor & Destructor Documentation

unity::dash::RowAdaptorBase::RowAdaptorBase ( DeeModel *  model = 0,
DeeModelIter *  iter = 0,
DeeModelTag *  tag = 0 
)

Definition at line 26 of file ModelRowAdaptor.cpp.

  : model_(model)
  , iter_(iter)
  , tag_(tag)
{}

Definition at line 32 of file ModelRowAdaptor.cpp.

{
  model_ = other.model_;
  iter_ = other.iter_;
  tag_ = other.tag_;
}

Member Function Documentation

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)

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)

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:

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

Definition at line 39 of file ModelRowAdaptor.cpp.

{
  model_ = other.model_;
  iter_ = other.iter_;
  tag_ = other.tag_;

  return *this;
}
template<typename T >
T unity::dash::RowAdaptorBase::renderer ( )

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)

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]

Definition at line 67 of file ModelRowAdaptor.h.

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

Definition at line 66 of file ModelRowAdaptor.h.

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

Definition at line 68 of file ModelRowAdaptor.h.


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