Blame src/example.h

Packit Service 50c9f2
/******************************************************************************
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * 
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Copyright (C) 1997-2015 by Dimitri van Heesch.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Permission to use, copy, modify, and distribute this software and its
Packit Service 50c9f2
 * documentation under the terms of the GNU General Public License is hereby 
Packit Service 50c9f2
 * granted. No representations are made about the suitability of this software 
Packit Service 50c9f2
 * for any purpose. It is provided "as is" without express or implied warranty.
Packit Service 50c9f2
 * See the GNU General Public License for more details.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Documents produced by Doxygen are derivative works derived from the
Packit Service 50c9f2
 * input used in their production; they are not affected by this license.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 */
Packit Service 50c9f2
Packit Service 50c9f2
#ifndef EXAMPLE_H
Packit Service 50c9f2
#define EXAMPLE_H
Packit Service 50c9f2
Packit Service 50c9f2
#include <qcstring.h>
Packit Service 50c9f2
#include "sortdict.h"
Packit Service 50c9f2
Packit Service 50c9f2
class ClassDef;
Packit Service 50c9f2
class MemberName;
Packit Service 50c9f2
Packit Service 50c9f2
/** Data associated with an example. */
Packit Service 50c9f2
struct Example
Packit Service 50c9f2
{
Packit Service 50c9f2
  QCString anchor;
Packit Service 50c9f2
  QCString name;
Packit Service 50c9f2
  QCString file;
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
/** A sorted dictionary of Example objects. */
Packit Service 50c9f2
class ExampleSDict : public SDict<Example>
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
    ExampleSDict(int size=17) : SDict<Example>(size) {}
Packit Service 50c9f2
   ~ExampleSDict() {}
Packit Service 50c9f2
  private:
Packit Service 50c9f2
    int compareValues(const Example *item1,const Example *item2) const
Packit Service 50c9f2
    {
Packit Service 50c9f2
      return qstricmp(item1->name,item2->name);
Packit Service 50c9f2
    }
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
#endif