VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simObjectListActivityCallbackList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
13 #include <list>
14 #include <boost/shared_ptr.hpp>
15 #include <tbb/spin_mutex.h>
16 
20  void* usr);
21 
26 {
27 public:
28 
31 
32  virtual void addCallback(DtVrfObjectListActivityCallbackFcn fcn, void* usrData,
33  const DtObjectType& filter = DtObjectType::anyType(),
34  bool invertFilter = false);
35 
36  virtual void removeCallback(DtVrfObjectListActivityCallbackFcn fcn, void* usrData,
37  const DtObjectType& filter = DtObjectType::anyType(),
38  bool invertFilter = false);
39 
40  virtual void invokeCallbacks(DtVrfObject* vrfObject) const;
41 
42  virtual void removeAll();
43 
44 protected:
45  typedef std::list< boost::shared_ptr<DtSimObjectListActivityCallbackInfo> > DtCallbackListType;
46 
47  mutable tbb::spin_mutex myMutex;
48 
50 
51 private:
54 
55 };
56 
57 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)