MyGUI  3.2.1
MyGUI_SharedLayerNode.cpp
Go to the documentation of this file.
00001 /*
00002  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
00003  * Distributed under the MIT License
00004  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
00005  */
00006 
00007 #include "MyGUI_Precompiled.h"
00008 #include "MyGUI_SharedLayerNode.h"
00009 
00010 namespace MyGUI
00011 {
00012 
00013     SharedLayerNode::SharedLayerNode(ILayer* _layer, ILayerNode* _parent) :
00014         LayerNode(_layer, _parent),
00015         mCountUsing(0)
00016     {
00017     }
00018 
00019     SharedLayerNode::~SharedLayerNode()
00020     {
00021     }
00022 
00023     void SharedLayerNode::addUsing()
00024     {
00025         mCountUsing++;
00026     }
00027 
00028     void SharedLayerNode::removeUsing()
00029     {
00030         mCountUsing--;
00031     }
00032 
00033     size_t SharedLayerNode::countUsing() const
00034     {
00035         return mCountUsing;
00036     }
00037 
00038 } // namespace MyGUI