igor::iItemData Class Reference

#include <iItemData.h>

Public Member Functions

iItemPtr addItem (const iaString &name)
 
void removeItem (iItemPtr item)
 
const std::vector< iItemPtrgetItems () const
 
void clear ()
 
iItemPtr getItem (const iaString &itemPath)
 
iItemPtr getRoot ()
 
bool operator== (const iItemData &other) const
 
bool operator!= (const iItemData &other) const
 

Detailed Description

container for items

Member Function Documentation

◆ addItem()

iItemPtr igor::iItemData::addItem ( const iaString name)

adds item to this container

Returns
newly added item
Parameters
nameunique name of item

◆ clear()

void igor::iItemData::clear ( )

clear all data

◆ getItem()

iItemPtr igor::iItemData::getItem ( const iaString itemPath)
Returns
an item for given path. nullptr if it does not exist
Parameters
itemPaththe given item path

◆ getItems()

const std::vector< iItemPtr > igor::iItemData::getItems ( ) const
Returns
items of this container

◆ getRoot()

iItemPtr igor::iItemData::getRoot ( )
Returns
root item

◆ operator!=()

bool igor::iItemData::operator!= ( const iItemData other) const

compare two item data sets for inequality

Returns
true if not equal
Parameters
otherthe other data set

◆ operator==()

bool igor::iItemData::operator== ( const iItemData other) const

compare two item data sets for equality

Returns
true if equal
Parameters
otherthe other data set

◆ removeItem()

void igor::iItemData::removeItem ( iItemPtr  item)

removes given item from this container

Parameters
itemthe item to remove

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