VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
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>
19
class
DtExecutionContainer
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 Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)