X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fmanager.hh;h=907815f56b30f8f8c41af849593ee4d2154bad3b;hp=98b102dddfafbcfa598fb7937071308812d61c15;hb=44b3014bce798789e795242d1556cb7449e6386a;hpb=831f04d4bc19a390415ac0bbac4331c7a65509bc diff --git a/src/moof/manager.hh b/src/moof/manager.hh index 98b102d..907815f 100644 --- a/src/moof/manager.hh +++ b/src/moof/manager.hh @@ -1,17 +1,21 @@ -/*] Copyright (c) 2009-2010, Charles McGarvey [************************** +/*] Copyright (c) 2009-2011, Charles McGarvey [***************************** **] All rights reserved. * -* vi:ts=4 sw=4 tw=75 -* * Distributable under the terms and conditions of the 2-clause BSD license; * see the file COPYING for a complete text of the license. * -**************************************************************************/ +*****************************************************************************/ #ifndef _MOOF_MANAGER_HH_ #define _MOOF_MANAGER_HH_ +#include +#include + +#include + + /** * \file manager.hh * A manager is a collection of named objects of the same type. Libraries @@ -19,13 +23,6 @@ * have any interested code. */ -#include - -#include - -#include - - namespace moof { @@ -47,7 +44,6 @@ public: return boost::shared_ptr(retain(name), &release); } - private: typedef stlplus::hash ptr_lookup; @@ -68,7 +64,8 @@ private: { new_object->name_ = name; new_object->init(name); - ptr_lookup_.insert(std::make_pair(name, new_object)); + ptr_lookup_.insert(std::make_pair(name, + new_object)); } return new_object; } @@ -85,8 +82,8 @@ private: static ptr_lookup ptr_lookup_; - std::string name_; - unsigned retain_count_; + std::string name_; + unsigned retain_count_; }; template