Exemplo n.º 1
0
bool Matcher::matches()
{
  flags = MATCH_ENTIRE_STRING;
  matchedSomething = false;
  clearGroups();
  lm = 0;
  return pat->head->match(str, this, 0) == (int)str.size();
}
Exemplo n.º 2
0
void Settings::beginGroup(const UTF8 *groupName, bool fromStart)
{
   // check if we want to clear the stack
   if(fromStart)
      clearGroups();

   mGroupStack.push_back(String(groupName));
}
Exemplo n.º 3
0
// hit "CLEAR"- deletes all groups and the LEDs
void MainWindow::on_clearLEDs_clicked()
{
    if (ui->actionMove_and_Add_Mode->isChecked())
    {
        clearGroups();
        updateDisplay();
        selectedLEDs.clear();
        orderedLEDs.clear();
        deleteNumLEDs(getNumLEDs());
        ui->displayText->setText("Cleared All LEDs");
    }
}
Exemplo n.º 4
0
bool Matcher::findFirstMatch()
{
  starts[0] = 0;
  flags = 0;
  clearGroups();
  start = 0;
  lm = 0;
  ends[0] = pat->head->match(str, this, 0);
  if (ends[0] >= 0)
  {
    matchedSomething = true;
    return 1;
  }
  return 0;
}
Exemplo n.º 5
0
MainWindow::~MainWindow()
{
    clearGroups();
    clearSelectedLEDs();
    dWindow->close();
    selectedLEDs.clear();
    orderedLEDs.clear();
    deleteNumLEDs(getNumLEDs());
    listBehaviorWindows.clear();
    vectOfData->clear();
    delete vectOfData;
   // delete dWindow;
    LEDs.clear();
    delete ui;
}
Exemplo n.º 6
0
bool Matcher::findNextMatch()
{
  int s = starts[0], e = ends[0];

  if (!matchedSomething) return findFirstMatch();
  if (s == e) ++e;
  flags = 0;
  clearGroups();

  starts[0] = e;
  if (e >= (int)str.size()) return 0;
  start = e;
  lm = e;
  ends[0] = pat->head->match(str, this, e);
  return ends[0] >= 0;
}
        void EntityDefinitionManager::updateGroups() {
            clearGroups();

            using GroupMap = std::map<String, EntityDefinitionList>;
            GroupMap groupMap;

            for (size_t i = 0; i < m_definitions.size(); ++i) {
                EntityDefinition* definition = m_definitions[i];
                const String groupName = definition->groupName();
                groupMap[groupName].push_back(definition);
            }

            for (const auto& entry : groupMap) {
                const String& groupName = entry.first;
                const EntityDefinitionList& definitions = entry.second;
                m_groups.push_back(EntityDefinitionGroup(groupName, definitions));
            }
        }
void GuiVariableInspector::loadVars( String searchStr )
{     
   clearGroups();

   GuiInspectorVariableGroup *group = new GuiInspectorVariableGroup();

   group->setHeaderHidden( true );
   group->setCanCollapse( false );
   group->mParent = this;
   group->setCaption( "Global Variables" );
   group->mSearchString = searchStr;

   if( group != NULL )
   {
      group->registerObject();
      mGroups.push_back( group );
      addObject( group );
   }   

   //group->inspectGroup();
}
Exemplo n.º 9
0
void Matcher::reset()
{
  lm = 0;
  clearGroups();
  matchedSomething = false;
}
Exemplo n.º 10
0
 void EntityDefinitionManager::clear() {
     clearCache();
     clearGroups();
     VectorUtils::clearAndDelete(m_definitions);
 }
Exemplo n.º 11
0
void KdCluster::clear()
{
	clearGroups();
	KdTree::clear();
}