MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / getNode

Method getNode

tools/monitor/MonitorDataModel.cpp:102–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102TreeNode*
103MonitorDataModel::getNode( const QModelIndex &index, bool defaultToRoot) const
104{
105 if( index.isValid()) {
106 TreeNode* node = static_cast< TreeNode*>( index.internalPointer());
107 if( node) {
108 return node;
109 }
110 }
111
112 if (defaultToRoot) {
113 return this->root_;
114 } else {
115 return NULL;
116 }
117}
118
119QModelIndex
120MonitorDataModel::index(

Callers 14

indexMethod · 0.95
parentMethod · 0.95
dataMethod · 0.95
rowCountMethod · 0.95
columnCountMethod · 0.95
setDataMethod · 0.95
insertRowsMethod · 0.95
removeRowsMethod · 0.95
doSortMethod · 0.95
hasChildrenMethod · 0.95
getSourceMethod · 0.45
dumpToFileMethod · 0.45

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected