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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user