Update NEWS
[ACE_TAO.git] / ACE / netsvcs / lib / Base_Optimizer.h
blobec7c4dd7edf0e9ab68b0fb4cea5fe24eb907e0a5
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Base_Optimizer.h
7 * @author Per Andersson.
8 */
9 //=============================================================================
11 #ifndef BASE_OPTIMIZER_H
12 #define BASE_OPTIMIZER_H
14 #include "ace/config-all.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 /**
21 * @class Base_Optimizer
23 * Thanks to Nathan Myers and Fergus Henderson for this little
24 * beauty.
26 template<class Base, class Member>
27 class Base_Optimizer : public Base
30 public:
31 Base_Optimizer (void);
32 Base_Optimizer (const Base &base);
33 Base_Optimizer (const Base &base,
34 const Member &member);
36 Member m_;
39 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
40 #include "Base_Optimizer.cpp"
41 #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
43 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
44 #pragma implementation ("Base_Optimizer.cpp")
45 #endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
47 #endif /* BASE_OPTIMIZER_H */