BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Aggregate to hold (tag, row) information for SessionModel. More...
Public Member Functions | |
TagRow () | |
TagRow (const char *name, int row=-1) | |
TagRow (const std::string &name, int row=-1) | |
TagRow | next () const |
Constructs new tagrow representing next row in given tag. More... | |
bool | operator!= (const TagRow &other) const |
bool | operator== (const TagRow &other) const |
TagRow | prev () const |
Constructs new tagrow representing previous row in given tag. More... | |
Static Public Member Functions | |
static TagRow | append (const std::string &tag_name={}) |
Returns TagRow corresponding to the append to tag_name. More... | |
static TagRow | prepend (const std::string &tag_name={}) |
Returns TagRow corresponding to prepending to tag_name. More... | |
Public Attributes | |
int | row = -1 |
std::string | tag = {} |
Aggregate to hold (tag, row) information for SessionModel.
|
inline |
|
inline |
|
static |
Returns TagRow corresponding to the append to tag_name.
If tag_name =="" the default name will be used in SessionItemTags context.
Definition at line 36 of file tagrow.cpp.
Referenced by StandardChildrenStrategiesTest::TestItem::TestItem(), ModelView::JsonModelConverter::from_json(), ModelView::GroupItem::init_group(), TEST(), and TEST_F().
ModelView::TagRow ModelView::TagRow::next | ( | ) | const |
Constructs new tagrow representing next row in given tag.
No validity check.
Definition at line 20 of file tagrow.cpp.
Referenced by gui2::MaterialModel::cloneMaterial().
bool ModelView::TagRow::operator!= | ( | const TagRow & | other | ) | const |
Definition at line 54 of file tagrow.cpp.
bool ModelView::TagRow::operator== | ( | const TagRow & | other | ) | const |
|
static |
Returns TagRow corresponding to prepending to tag_name.
If tag_name =="" the default name will be used in SessionItemTags context.
Definition at line 44 of file tagrow.cpp.
Referenced by TEST_F().
ModelView::TagRow ModelView::TagRow::prev | ( | ) | const |
Constructs new tagrow representing previous row in given tag.
No validity check.
Definition at line 28 of file tagrow.cpp.
int ModelView::TagRow::row = -1 |
Definition at line 28 of file tagrow.h.
Referenced by ModelView::MoveItemCommand::MoveItemCommandImpl::MoveItemCommandImpl(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::add_controller_for_item(), ModelView::SessionItemTags::canTakeItem(), ModelView::CommandService::copyItem(), ModelView::SessionItemTags::getItem(), ModelView::ViewModelController::ViewModelControllerImpl::insert_view(), ModelView::SessionItemTags::insertItem(), ModelView::CommandService::insertNewItem(), ModelView::CommandService::moveItem(), next(), ModelView::ViewModelController::onAboutToRemoveItem(), operator==(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::remove_controller_for_item(), ModelView::SessionItemTags::takeItem(), and TEST_F().
std::string ModelView::TagRow::tag = {} |
Definition at line 27 of file tagrow.h.
Referenced by ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::add_controller_for_item(), ModelView::SessionItemTags::canTakeItem(), ModelView::CommandService::copyItem(), ModelView::SessionItemTags::getItem(), ModelView::ViewModelController::ViewModelControllerImpl::insert_view(), ModelView::SessionItemTags::insertItem(), ModelView::CommandService::insertNewItem(), ModelView::CommandService::moveItem(), next(), ModelView::ViewModelController::onAboutToRemoveItem(), operator==(), ModelView::ItemMapper::ItemMapperImpl::processDataChange(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::remove_controller_for_item(), ModelView::Utils::SinglePropertyItems(), ModelView::SessionItemTags::takeItem(), TEST_F(), and ModelView::Utils::TopLevelItems().