Tidy up Resource::Manager (RIPD-362):

* Style improvements
* More documentation
This commit is contained in:
Scott Schurr
2014-07-10 16:30:24 -07:00
committed by Vinnie Falco
parent 28898031f0
commit 5869902f2c
7 changed files with 153 additions and 133 deletions

View File

@@ -30,10 +30,9 @@ struct Key
beast::IP::Endpoint address;
std::string name;
// No default constructor
Key () = delete;
// Convenience constructors
// Constructor for Inbound and Outbound (non-Admin) keys
Key (Kind k, beast::IP::Endpoint const& addr)
: kind(k)
, address(addr)
@@ -42,6 +41,7 @@ struct Key
assert(kind != kindAdmin);
}
// Constructor for Admin keys
Key (Kind k, const std::string& n)
: kind(k)
, address()