Skip to content

Commit

Permalink
Revert "remove unneeded class definitions from .h files"
Browse files Browse the repository at this point in the history
This reverts commit ff5f545.
  • Loading branch information
Soeren Sonnenburg committed Sep 21, 2011
1 parent 00f7777 commit c738a00
Show file tree
Hide file tree
Showing 18 changed files with 42 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/shogun/classifier/LDA.h
Expand Up @@ -21,6 +21,7 @@

namespace shogun
{
template <class ST> class CSimpleFeatures;
/** @brief Class LDA implements regularized Linear Discriminant Analysis.
*
* LDA learns a linear classifier and requires examples to be CSimpleFeatures.
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/classifier/svm/WDSVMOcas.h
Expand Up @@ -20,6 +20,8 @@

namespace shogun
{
template <class ST> class CStringFeatures;

/** @brief class WDSVMOcas */
class CWDSVMOcas : public CMachine
{
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/distance/CanberraMetric.h
Expand Up @@ -17,6 +17,8 @@

namespace shogun
{
template <class T> class CSimpleFeatures;

/** @brief class CanberraMetric
*
* The Canberra distance sums up the dissimilarity (ratios) between feature
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/distance/HammingWordDistance.h
Expand Up @@ -19,6 +19,8 @@

namespace shogun
{
template <class T> class CStringFeatures;

/** @brief class HammingWordDistance */
class CHammingWordDistance: public CStringDistance<uint16_t>
{
Expand Down
1 change: 1 addition & 0 deletions src/shogun/distance/SparseEuclidianDistance.h
Expand Up @@ -17,6 +17,7 @@

namespace shogun
{
template <class T> class CSparseFeatures;
/** @brief class SparseEucldianDistance */
class CSparseEuclidianDistance: public CSparseDistance<float64_t>
{
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/distributions/HMM.h
Expand Up @@ -28,6 +28,8 @@

namespace shogun
{
class CFeatures;
template <class ST> class CStringFeatures;
/**@name HMM specific types*/
//@{

Expand Down
2 changes: 2 additions & 0 deletions src/shogun/distributions/Histogram.h
Expand Up @@ -16,6 +16,8 @@

namespace shogun
{
template <class ST> class CStringFeatures;

/** @brief Class Histogram computes a histogram over all 16bit unsigned
* integers in the features.
*
Expand Down
3 changes: 3 additions & 0 deletions src/shogun/kernel/AUCKernel.h
Expand Up @@ -19,6 +19,9 @@

namespace shogun
{
class CLabels;
template <class T> class CSimpleFeatures;

/** @brief The AUC kernel can be used to maximize the area under the receiver operator
* characteristic curve (AUC) instead of margin in SVM training.
*
Expand Down
3 changes: 3 additions & 0 deletions src/shogun/kernel/CommUlongStringKernel.h
Expand Up @@ -18,6 +18,9 @@

namespace shogun
{
template <class T> class CDynamicArray;
template <class ST> class CStringFeatures;

/** @brief The CommUlongString kernel may be used to compute the spectrum kernel
* from strings that have been mapped into unsigned 64bit integers.
*
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/kernel/HistogramWordStringKernel.h
Expand Up @@ -19,6 +19,8 @@

namespace shogun
{
class CPluginEstimate;
template <class T> class CStringFeatures;
/** @brief The HistogramWordString computes the TOP kernel on inhomogeneous
* Markov Chains. */
class CHistogramWordStringKernel: public CStringKernel<uint16_t>
Expand Down
6 changes: 6 additions & 0 deletions src/shogun/kernel/Kernel.h
Expand Up @@ -30,6 +30,12 @@

namespace shogun
{
class CFile;
class CFeatures;
class CKernelNormalizer;
enum EFeatureType;
enum EFeatureClass;

#ifdef USE_SHORTREAL_KERNELCACHE
/** kernel cache element */
typedef float32_t KERNELCACHE_ELEM;
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/kernel/PyramidChi2.h
Expand Up @@ -18,6 +18,8 @@

namespace shogun
{
template <class T> class CSimpleFeatures;

/** @brief Pyramid Kernel over Chi2 matched histograms.
*
*
Expand Down
3 changes: 1 addition & 2 deletions src/shogun/modelselection/ModelSelectionParameters.cpp
Expand Up @@ -8,9 +8,8 @@
* Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
*/

#include <shogun/modelselection/ParameterCombination.h>
#include <shogun/lib/DynamicObjectArray.h>
#include <shogun/modelselection/ModelSelectionParameters.h>
#include <shogun/modelselection/ParameterCombination.h>
#include <shogun/lib/DataType.h>
#include <shogun/base/Parameter.h>
#include <shogun/base/DynArray.h>
Expand Down
3 changes: 2 additions & 1 deletion src/shogun/modelselection/ModelSelectionParameters.h
Expand Up @@ -13,11 +13,12 @@

#include <shogun/base/SGObject.h>
#include <shogun/lib/DynamicObjectArray.h>
#include <shogun/modelselection/ParameterCombination.h>

namespace shogun
{

class CParameterCombination;

/** type of range */
enum ERangeType
{
Expand Down
1 change: 0 additions & 1 deletion src/shogun/modelselection/ParameterCombination.cpp
Expand Up @@ -8,7 +8,6 @@
* Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
*/

#include <shogun/lib/DynamicObjectArray.h>
#include <shogun/modelselection/ParameterCombination.h>
#include <shogun/base/Parameter.h>
#include <shogun/machine/Machine.h>
Expand Down
6 changes: 6 additions & 0 deletions src/shogun/structure/DynProg.h
Expand Up @@ -37,6 +37,12 @@

namespace shogun
{
template <class T> class CSparseFeatures;
class CIntronList;
class CPlifMatrix;
class CSegmentLoss;
template <class T> class CArray;

//#define DYNPROG_TIMING

#ifdef USE_BIGSTATES
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/structure/PlifMatrix.h
Expand Up @@ -21,6 +21,8 @@

namespace shogun
{
template <class T> class SGString;

/** @brief store plif arrays for all transitions in the model
*/
class CPlifMatrix: public CSGObject
Expand Down
3 changes: 3 additions & 0 deletions src/shogun/structure/SegmentLoss.h
Expand Up @@ -19,6 +19,9 @@

namespace shogun
{
template <class T> class CArray;
template <class T> class CArray2;
template <class T> class CArray3;
/** @brief class IntronList */
class CSegmentLoss : public CSGObject
{
Expand Down

0 comments on commit c738a00

Please sign in to comment.