VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
executionContainer.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
14 // The method must take no arguments and return no value.
16 
17 
18 template <class Texec>
20 {
21 public:
22  // Add a reference to the list
23  virtual void add(Texec *item) = 0;
24 
25  // Remove a reference from the list
26  virtual void remove(Texec *item) = 0;
27 
28  // Clear the list
29  virtual void clear() = 0;
30 
31  // Delete all referenced objects and then clear the list.
32  virtual void deleteAndClear() = 0;
33 
34  // worker methods
35 
36  // Execute method on all contained objects.
37  // Pass an argument of the form class:method,
38  // e.g. for a method like 'void MyClass::myVoidMethod();'
39  // call as 'myExecContainer.executeMethod(MyClass::myVoidMethod);'
40  virtual void executeMethod(void (Texec::*theMethodPtr)()) = 0;
41 };

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)