|
Boost : |
From: Andrey Semashev (andysem_at_[hidden])
Date: 2005-08-21 15:41:23
Sometimes it is very useful to register some postponed actions regardless of
some part of the program result (a function, for example). Smart pointers
are obvious example of such actions (namely, freeing resources) and in fact
are a special case of so called scope guards. Guards may be especially
useful in heavilly-logical code with multiple (maybe folded into each other)
checks or in code using exceptions.
As a simple example, suppose we have a logging system that may trace
function calls in our program. The easiest and obvious way to implement such
functionality is to create some object in the beginning of each function to
be traced. This object will add the function to the logger on its
construction and remove it on destruction.
Another application is resolving circular calling dependency issues which
tend to come up in rather complex projects. The following example
illustrates the problem:
class A;
// The objects of class B are managed by object of class A
class B {
public:
void execute(A* pA, int n);
};
// The object of main class A manages some other objects of class B
class A {
// Some internal data, which is provided to the managed objects
std::set< int > m_Data;
public:
// The entrance method, called from somewhere outside
void process(B* pB) {
// Imagine we have some real processing here and m_Data is not empty
pB->execute(this, *m_Data.begin());
// Here we cannot be absolutely sure if m_Data still contains the
element we passed in line above
}
void remove(int n) {
m_Data.erase(n);
}
};
void B::execute(A* pA, int n) {
if (n > 10)
pA->remove(n);
}
The case above is usually fixed by using some kind of state variables or
flags or, in more complex cases, some stacks of postprocessing. I.e. in
A::remove we don't actually erase the element but schedule some action to
perform when control returns to A::process. This can easily be done by
enqueued functors or scope guards. In some cases the latter are simplier to
use and more laconic.
I purpose to add a generalized scope guard classes to the Boost library. I
have a rather simple but flexible implementation of such classes (I've
attached the sources). Since I'm new here, I don't really know if they
conform some source code conventions in Boost (if any), but if they don't -
please, let me know.
Few general words about the implementation. There are two general guard
classes: leaving_scope_guard and scope_guard. The first one calls a functor
(boost::function is used) with no arguments on its destruction if it is
armed. The second class extends the first one by calling another functor on
its construction (this is not a functionality of real necessity, but it
allows to semantically group paired functions invocation, see the example
above). A guard once created may be armed or disarmed later in thÕ program,
but the armed status applies only to the destructing functor invoking (the
constructing one is controlled via initial status of the guard which is
passed in guard constructor arguments).
The flexibility of implementation is in ability to change the functors
invoking policy. In the simpliest case it is a direct invoking (all template
parameters by default), but there is a policy with exception catching
support. See the example:
struct my_exception : public std::exception { /* ... */ };
void guarded_foo(int n, const char* p); // throws bad_cast, bad_alloc and
my_exception
// This is the class of the exception handler object
struct CHandler {
void on_exception(std::bad_cast& e) throw() {
std::cout << "on_exception called, bad_cast caught" << std::endl;
}
void on_exception(std::bad_alloc& e) throw() {
std::cout << "on_exception called, bad_alloc caught" << std::endl;
}
void on_exception(my_exception& e) throw() {
std::cout << "on_exception called, my_exception caught" <<
std::endl;
}
};
void foo(int n) {
leaving_scope_guard<
guard::with_catcher< // Indicate that we're expecting some
exceptions to be thrown by guarded_foo
CHandler, // This is the class, which object is to process
exceptions caught
guard::exceptions< std::bad_cast, std::bad_alloc, my_exception
>, // Exceptions to be caught (up to 10 exception types supported)
boost::shared_ptr< CHandler > // An optional parameter describes
the way the pointer to CHandler object should be stored. The default value
would be CHandler*.
>
> guard(boost::bind(&guarded_foo, n, "called from foo"),
boost::shared_ptr< CHandler >(new CHandler)); // Guard object
// ...
}
There also are macroses defined for setting anonymous scope guards when
there is no need for arming or disarming it.
As for compatibility, I successfully compiled it on VC 7.1, ICC 9.0 and GCC
3.4.4 (MinGW version). I don 't think it will compile on VC 6 since explicit
template function instantiation is used there which is not supported by the
compiler, but I think it is possible to work around it. Besides that I don't
think there should be any problems for other compilers.
Any suggestions are welcome.
begin 666 scope_guard.h
M+RHA#0H@*B!<9FEL92 @('-C;W!E7V=U87)D+F_at_-"B J(%QA=71H;W(@4V5M
M87-H978_at_06YD<F5Y#0H@*B!<9&%T92 @(#(U+C W+C(P,#4-"B J( T*("H@
M7&)R:65F("!'96YE<F%L:7IE9"!S8V]P92!G=6%R9"!D96-L87)A=&EO;@T*
M("H@#0H@*B\-"@T*(VEF;F1E9B!?7U-#3U!%1U5!4D1?2%]?#0HC9&5F:6YE
M(%]?4T-/4$5'54%21%](7U\-"@T*(VEN8VQU9&4@(F)O;W-T+V9U;F-T:6]N
M+V9U;F-T:6]N,"YH<' B#0HC:6YC;'5D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>7!E,BP_at_97AC97!T
M:6]N7W1Y<&4S+"!E>&-E<'1I;VY?='EP930L(&5X8V5P=&EO;E]T>7!E-2P@
M97AC97!T:6]N7W1Y<&4V+"!E>&-E<'1I;VY?='EP93<I+"!E>&-E<'1I;VY?
M='EP93_at_-"B-D969I;F4_at_4T-/4$5?1U5!4D1?15A#15!424].4U\Q,"AE>&-E
M<'1I;VY?='EP93 L(&5X8V5P=&EO;E]T>7!E,2P_at_97AC97!T:6]N7W1Y<&4R
M+"!E>&-E<'1I;VY?='EP93,L(&5X8V5P=&EO;E]T>7!E-"P_at_97AC97!T:6]N
M7W1Y<&4U+"!E>&-E<'1I;VY?='EP938L(&5X8V5P=&EO;E]T>7!E-RP_at_97AC
M97!T:6]N7W1Y<&4X+"!E>&-E<'1I;VY?='EP93DI7 T*"5-#3U!%7T=505)$
M7T580T505$E/3E-?.2AE>&-E<'1I;VY?='EP93 L(&5X8V5P=&EO;E]T>7!E
M,2P_at_97AC97!T:6]N7W1Y<&4R+"!E>&-E<'1I;VY?='EP93,L(&5X8V5P=&EO
M;E]T>7!E-"P_at_97AC97!T:6]N7W1Y<&4U+"!E>&-E<'1I;VY?='EP938L(&5X
M8V5P=&EO;E]T>7!E-RP_at_97AC97!T:6]N7W1Y<&4X*2P_at_97AC97!T:6]N7W1Y
M<&4Y#0H-"B\O($-L96%N:6YG('5P(&UA8W)O<V5S#0HC=6YD968_at_7U]30T]0
M15]'54%21%]#051#2$53#0HC=6YD968_at_7U]30T]015]'54%21%]465!%1$5&
M4PT*(W5N9&5F(%]?4T-/4$5?1U5!4D1?5$5-4$Q!5$5?4$%204U3#0HC=6YD
M968_at_7U]30T]015]'54%21%].54Q,5%E015,-"B-U;F1E9B!?7U-#3U!%7T=5
M05)$7T5.54U%4D%415]-04-23PT*(W5N9&5F(%]?4T-/4$5?1U5!4D1?14Y5
M3452051%7TU!0U)/7PT*#0HC96YD:68@+R\@7U]30T]014=505)$7TA?7PT*
`
end
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk