Make Value::type private
This is an implementation detail and shouldn't be used. Use normalType() and the various is<Type> functions instead
This commit is contained in:
parent
bf98903967
commit
730b152b19
2 changed files with 7 additions and 1 deletions
|
@ -68,7 +68,7 @@ RootValue allocRootValue(Value * v)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void printValue(std::ostream & str, std::set<const Value *> & active, const Value & v)
|
void printValue(std::ostream & str, std::set<const Value *> & active, const Value & v)
|
||||||
{
|
{
|
||||||
checkInterrupt();
|
checkInterrupt();
|
||||||
|
|
||||||
|
|
|
@ -106,8 +106,14 @@ std::ostream & operator << (std::ostream & str, const ExternalValueBase & v);
|
||||||
|
|
||||||
struct Value
|
struct Value
|
||||||
{
|
{
|
||||||
|
private:
|
||||||
ValueType type;
|
ValueType type;
|
||||||
|
|
||||||
|
friend std::string showType(const Value & v);
|
||||||
|
friend void printValue(std::ostream & str, std::set<const Value *> & active, const Value & v);
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
inline void setInt() { type = tInt; };
|
inline void setInt() { type = tInt; };
|
||||||
inline void setBool() { type = tBool; };
|
inline void setBool() { type = tBool; };
|
||||||
inline void setString() { type = tString; };
|
inline void setString() { type = tString; };
|
||||||
|
|
Loading…
Reference in a new issue