List of all members.
Detailed Description
Definition at line 14 of file list_item.
Constructor & Destructor Documentation
inlib::sg::list_item::list_item |
( |
| ) |
[inline] |
inlib::sg::list_item::list_item |
( |
const std::vector< std::string > & |
a_strings, |
|
|
inlib::sg::cbk * |
a_cbk, |
|
|
bool |
a_dir = false |
|
) |
| [inline] |
Definition at line 17 of file list_item.
:m_strings(a_strings)
,m_cbk(a_cbk)
,m_dir(a_dir)
{}
inlib::sg::list_item::list_item |
( |
const std::string & |
a_label, |
|
|
inlib::sg::cbk * |
a_cbk, |
|
|
bool |
a_dir = false |
|
) |
| [inline] |
Definition at line 24 of file list_item.
:m_cbk(a_cbk)
,m_dir(a_dir)
{
m_strings.push_back(a_label);
}
virtual inlib::sg::list_item::~list_item |
( |
| ) |
[inline, virtual] |
inlib::sg::list_item::list_item |
( |
const list_item & |
a_from | ) |
[inline] |
Definition at line 34 of file list_item.
:m_strings(a_from.m_strings)
,m_cbk(a_from.m_cbk?a_from.m_cbk->copy():0)
,m_dir(a_from.m_dir)
{}
Member Function Documentation
bool inlib::sg::list_item::is_dir |
( |
| ) |
const [inline] |
bool inlib::sg::list_item::operator!= |
( |
const list_item & |
a_v | ) |
const [inline] |
Definition at line 39 of file list_item.
{
m_strings = a_from.m_strings;
delete m_cbk;
m_cbk = a_from.m_cbk?a_from.m_cbk->copy():0;
m_dir = a_from.m_dir;
return *this;
}
bool inlib::sg::list_item::operator== |
( |
const list_item & |
a_v | ) |
const [inline] |
Definition at line 47 of file list_item.
{
if(m_strings!=a_v.m_strings) return false;
if(m_dir!=a_v.m_dir) return false;
if(m_cbk) {
if(a_v.m_cbk) {
return false;
} else {
return false;
}
} else {
if(a_v.m_cbk) {
return false;
} else {
return true;
}
}
}
const std::vector<std::string>& inlib::sg::list_item::strings |
( |
| ) |
const [inline] |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/sg/list_item