renamed from beacon to beacons, bumped version to 0.1.1 for that.
[beacon-ss.git] / src / beacons / reference_countable.cpp
blob37fdff0b25ba5ccfc234871d575a006447cf2b47
1 /**
2 * beacon
3 * Author: Lukas Krejci <krejci.l@centrum.cz>, (C) 2008
4 * Copyright: See COPYING file that comes with this distribution
5 */
7 #include <beacons/reference_countable.hpp>
9 namespace beacons {
11 /**
12 * A function neccessary for the boost::intrusive_ptr to work.
14 void intrusive_ptr_add_ref(reference_countable * p) {
15 p->_ref_incr();
18 /**
19 * A function neccessary for the boost::intrusive_ptr to work.
21 void intrusive_ptr_release(reference_countable * p) {
22 p->_ref_decr();
25 /**
26 * A function neccessary for the beacons::intrusive_ptr to work.
28 void beacons_intrusive_ptr_add_ref(reference_countable * p) {
29 p->_ref_incr();
32 /**
33 * A function neccessary for the beacons::intrusive_ptr to work.
35 void beacons_intrusive_ptr_release(reference_countable * p) {
36 p->_ref_decr();
39 } //namespace beacons