Skip to content

Instantly share code, notes, and snippets.

@neel
Created October 21, 2008 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neel/18355 to your computer and use it in GitHub Desktop.
Save neel/18355 to your computer and use it in GitHub Desktop.
#include "jvar.h"
namespace Js {
JVar::JVar(){
}
JVar::~JVar(){
}
}
#ifndef JSJVAR_H
#define JSJVAR_H
namespace Js {
class JVar{
public:
JVar();
virtual ~JVar();
};
}
#endif
#include "paramsmap.h"
ParamsMap::ParamsMap() : ParamsMapCore<string, Var>(){
}
ParamsMap::~ParamsMap(){
}
#ifndef PARAMSMAP_H
#define PARAMSMAP_H
#include <string>
#include <map>
#include "var.h"
#include "paramsmapcore.h"
using std::string;
using std::map;
class Var;
class ParamsMapCore<string, Var>;
class ParamsMap : public ParamsMapCore<string, Var>{
public:
ParamsMap();
~ParamsMap();
};
#endif
#ifndef PARAMSMAPCORE_H
#define PARAMSMAPCORE_H
#include <map>
#include <string>
#include "var.h"
class Var;
template <typename KeyType, typename ValueType>
class ParamsMapCore : public std::map<KeyType, ValueType>{
public:
ParamsMapCore();
virtual ~ParamsMapCore();
};
#include "paramsmapcore.hpp"
#endif
#include "paramsmapcore.h"
template <typename KeyType, typename ValueType>
ParamsMapCore<KeyType, ValueType>::ParamsMapCore() : std::map<KeyType, ValueType>(){
}
template <typename KeyType, typename ValueType>
ParamsMapCore<KeyType, ValueType>::~ParamsMapCore(){
}
#include "var.h"
Var::Var(){}
Var::~Var(){}
#ifndef VAR_H
#define VAR_H
class Var{
public:
Var();
~Var();
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment