blob: 14759cef6beda933d26274ec24b3945b94503063 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/common/framework/config/prdfParentDomain.C $ */
/* */
/* IBM CONFIDENTIAL */
/* */
/* COPYRIGHT International Business Machines Corp. 1996,2012 */
/* */
/* p1 */
/* */
/* Object Code Only (OCO) source materials */
/* Licensed Internal Code Source Materials */
/* IBM HostBoot Licensed Internal Code */
/* */
/* The source code for this program is not published or otherwise */
/* divested of its trade secrets, irrespective of what has been */
/* deposited with the U.S. Copyright Office. */
/* */
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
// Module Description **************************************************
//
// Description: This module provides the implementation for the PRD
// DomainContainer class.
//
// End Module Description **********************************************
//----------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------
#include <iipglobl.h>
#include <iipDomain.h>
#include <prdfPllDomain.H>
#include <prdfParentDomain.H>
#include <prdfExtensibleDomain.H>
#include <prdfPluginDef.H>
//----------------------------------------------------------------------
// User Types
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// Constants
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// Macros
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// Internal Function Prototypes
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// Global Variables
//----------------------------------------------------------------------
//---------------------------------------------------------------------
// Member Function Specifications
//---------------------------------------------------------------------
namespace PRDF
{
//Constructor
template<class T>
ParentDomain<T>::ParentDomain()
{
//TODO::Do I need to have this here to clear out the vector?
VectorOfDomainPointerType iv_childrenDomains();
}
//This code is primarily for the configurator.
template<class T>
int32_t ParentDomain<T>::AddChild(TARGETING::TargetHandle_t i_pchipHandle, T * i_childDomain)
{
int32_t l_rc = SUCCESS;
ChipToDomainPointerPairType l_chipDomPtrPair
= ChipToDomainPointerPairType(i_pchipHandle, i_childDomain);
iv_childrenDomains.push_back(l_chipDomPtrPair);
return(l_rc);
}
//Just getting an iterator to go through the vector of chip/domain pairs.
template<class T>
typename ParentDomain<T>::iterator ParentDomain<T>::getBeginIterator()
{
return(iv_childrenDomains.begin());
}
template<class T>
typename ParentDomain<T>::iterator ParentDomain<T>::getEndIterator()
{
return(iv_childrenDomains.end());
}
//This instance of ParentDomain has to remain after the definition
// of the Templated class function or it won't link correctly.
template class ParentDomain<ExtensibleDomain>;
} // end namespace PRDF
|