blob: 8ad6a5990a42b71471d95166b0426e220a4241ef (
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 $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
/* COPYRIGHT International Business Machines Corp. 1996,2014 */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
/* You may obtain a copy of the License at */
/* */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* */
/* Unless required by applicable law or agreed to in writing, software */
/* distributed under the License is distributed on an "AS IS" BASIS, */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
/* implied. See the License for the specific language governing */
/* permissions and limitations under the License. */
/* */
/* IBM_PROLOG_END_TAG */
// Module Description **************************************************
//
// Description: This module provides the implementation for the PRD
// DomainContainer class.
//
// End Module Description **********************************************
//----------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------
#include <prdfGlobal.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
|