1 /** Aesalon, a tool to visualize program behaviour in real time.
2 Copyright (C) 2009-2011, Aesalon development team.
4 Aesalon is distributed under the terms of the GNU GPLv3. See
5 the included file LICENSE for more information.
7 @file src/artisan/gviewport/Data.cpp
12 #include "artisan/gviewport/Data.h"
13 #include "artisan/gviewport/Object.h"
18 void Data::startReading() {
19 m_treeLock
.lockForRead();
22 void Data::stopReading() {
26 void Data::startWriting() {
27 m_treeLock
.lockForWrite();
30 void Data::stopWriting() {
34 void Data::addObject(Object
*object
) {
36 m_tree
.insert(object
->bound().toTreeBound(), object
);
40 void Data::removeObject(Object
*object
) {
42 m_tree
.remove(object
->bound().toTreeBound(), object
);
46 } // namespace GViewport
47 } // namespace Artisan