Blame src/example.h

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