aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/lltreenode.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmath/lltreenode.h')
-rw-r--r--linden/indra/llmath/lltreenode.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/llmath/lltreenode.h b/linden/indra/llmath/lltreenode.h
index a47795d..8a8710f 100644
--- a/linden/indra/llmath/lltreenode.h
+++ b/linden/indra/llmath/lltreenode.h
@@ -69,17 +69,17 @@ class LLTreeNode
69public: 69public:
70 LLTreeNode(LLTreeState<T>* state) { setState(state); } 70 LLTreeNode(LLTreeState<T>* state) { setState(state); }
71 virtual ~LLTreeNode(); 71 virtual ~LLTreeNode();
72 virtual LLTreeState<T>* getState() { return mState; } 72 LLTreeState<T>* getState() { return mState; }
73 virtual const LLTreeState<T>* getState() const { return mState; } 73 const LLTreeState<T>* getState() const { return mState; }
74 74
75 virtual void setState(LLTreeState<T>* state); 75 void setState(LLTreeState<T>* state);
76 virtual void insert(T* data); 76 void insert(T* data);
77 virtual bool remove(T* data); 77 bool remove(T* data);
78 virtual void notifyRemoval(T* data); 78 void notifyRemoval(T* data);
79 virtual U32 getListenerCount() { return mListeners.size(); } 79 inline U32 getListenerCount() { return mListeners.size(); }
80 virtual LLTreeListener<T>* getListener(U32 index) const { return mListeners[index]; } 80 inline LLTreeListener<T>* getListener(U32 index) const { return mListeners[index]; }
81 virtual void addListener(LLTreeListener<T>* listener) { mListeners.push_back(listener); } 81 inline void addListener(LLTreeListener<T>* listener) { mListeners.push_back(listener); }
82 virtual void removeListener(U32 index) { mListeners.erase(mListeners.begin()+index); } 82 inline void removeListener(U32 index) { mListeners.erase(mListeners.begin()+index); }
83 83
84protected: 84protected:
85 void destroyListeners() 85 void destroyListeners()