File failed to load: https://isis.astrogeology.usgs.gov/9.0.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
AbstractLeafItem.cpp
1
6
7/* SPDX-License-Identifier: CC0-1.0 */
8
9#include "AbstractLeafItem.h"
10
11#include "IException.h"
12#include "IString.h"
13
14
15namespace Isis {
16 AbstractLeafItem::AbstractLeafItem(AbstractTreeItem *parent) :
17 AbstractTreeItem(parent) {
18 }
19
20
21 AbstractLeafItem::~AbstractLeafItem() {
22 }
23
24
25 AbstractTreeItem *AbstractLeafItem::childAt(int row) const {
26 IString msg = "childAt() called on an AbstractLeafItem!";
27 throw IException(IException::Programmer, msg, _FILEINFO_);
28 }
29
30
31 QList< AbstractTreeItem * > AbstractLeafItem::getChildren() const {
32 IString msg = "getChildren() called on an AbstractLeafItem!";
33 throw IException(IException::Programmer, msg, _FILEINFO_);
34 }
35
36
37 int AbstractLeafItem::indexOf(AbstractTreeItem *child) const {
38 IString msg = "indexOf() called on an AbstractLeafItem!";
39 throw IException(IException::Programmer, msg, _FILEINFO_);
40 }
41
42
43 int AbstractLeafItem::childCount() const {
44 return 0;
45 }
46
47
48 void AbstractLeafItem::addChild(AbstractTreeItem *child) {
49 IString msg = "addChild() called on an AbstractLeafItem!";
50 throw IException(IException::Programmer, msg, _FILEINFO_);
51 }
52
53
54 AbstractTreeItem *AbstractLeafItem::getFirstVisibleChild() const {
55 return NULL;
56 }
57
58
59 AbstractTreeItem *AbstractLeafItem::getLastVisibleChild() const {
60 return NULL;
61 }
62
63
64 void AbstractLeafItem::setFirstVisibleChild(AbstractTreeItem *) {
65 IString msg = "setFirstVisibleChild() called on an AbstractLeafItem!";
66 throw IException(IException::Programmer, msg, _FILEINFO_);
67 }
68
69
70 void AbstractLeafItem::setLastVisibleChild(AbstractTreeItem *) {
71 IString msg = "setLastVisibleChild() called on an AbstractLeafItem!";
72 throw IException(IException::Programmer, msg, _FILEINFO_);
73 }
74}
Base class for an item in the tree.
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16