Created
October 21, 2008 17:16
-
-
Save neel/18355 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "jvar.h" | |
namespace Js { | |
JVar::JVar(){ | |
} | |
JVar::~JVar(){ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef JSJVAR_H | |
#define JSJVAR_H | |
namespace Js { | |
class JVar{ | |
public: | |
JVar(); | |
virtual ~JVar(); | |
}; | |
} | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "paramsmap.h" | |
ParamsMap::ParamsMap() : ParamsMapCore<string, Var>(){ | |
} | |
ParamsMap::~ParamsMap(){ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(){ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "var.h" | |
Var::Var(){} | |
Var::~Var(){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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