Revert "Improve namespace names"

This reverts commit 973df43fe0.

On a second thought, namespaces are close to classes in the sense that both encapsulate data, so they should both use Pascal case notation.
This commit is contained in:
Tiago Gomes
2013-02-08 21:01:53 +00:00
parent 264ef7a067
commit 6a1a209ee3
33 changed files with 381 additions and 382 deletions

View File

@@ -15,13 +15,13 @@ namespace horus {
class Symbol
{
public:
Symbol (void) : id_(util::maxUnsigned()) { }
Symbol (void) : id_(Util::maxUnsigned()) { }
Symbol (unsigned id) : id_(id) { }
operator unsigned (void) const { return id_; }
bool valid (void) const { return id_ != util::maxUnsigned(); }
bool valid (void) const { return id_ != Util::maxUnsigned(); }
static Symbol invalid (void) { return Symbol(); }
@@ -35,7 +35,7 @@ class Symbol
class LogVar
{
public:
LogVar (void) : id_(util::maxUnsigned()) { }
LogVar (void) : id_(Util::maxUnsigned()) { }
LogVar (unsigned id) : id_(id) { }
@@ -66,7 +66,7 @@ LogVar::operator++ (void)
inline bool
LogVar::valid (void) const
{
return id_ != util::maxUnsigned();
return id_ != Util::maxUnsigned();
}
} // namespace horus
@@ -166,7 +166,7 @@ class Substitution
inline void
Substitution::add (LogVar X_old, LogVar X_new)
{
assert (util::contains (subs_, X_old) == false);
assert (Util::contains (subs_, X_old) == false);
subs_.insert (std::make_pair (X_old, X_new));
}
@@ -175,7 +175,7 @@ Substitution::add (LogVar X_old, LogVar X_new)
inline void
Substitution::rename (LogVar X_old, LogVar X_new)
{
assert (util::contains (subs_, X_old));
assert (Util::contains (subs_, X_old));
subs_.find (X_old)->second = X_new;
}
@@ -197,7 +197,7 @@ Substitution::newNameFor (LogVar X) const
inline bool
Substitution::containsReplacementFor (LogVar X) const
{
return util::contains (subs_, X);
return Util::contains (subs_, X);
}