@@ -450,7 +450,7 @@ CHIP_ERROR InteractionModelEngine::ParseAttributePaths(const Access::SubjectDesc
450
450
// This avoids the 'parse all paths' approach that is employed in ReadHandler since we want to
451
451
// avoid allocating out of the path store during this minimal initial processing stage.
452
452
//
453
- ObjectList <AttributePathParams> paramsList;
453
+ SingleLinkedListNode <AttributePathParams> paramsList;
454
454
455
455
ReturnErrorOnFailure (path.Init (pathReader));
456
456
ReturnErrorOnFailure (path.ParsePath (paramsList.mValue ));
@@ -1513,12 +1513,12 @@ bool InteractionModelEngine::HasConflictWriteRequests(const WriteHandler * apWri
1513
1513
return false ;
1514
1514
}
1515
1515
1516
- void InteractionModelEngine::ReleaseAttributePathList (ObjectList <AttributePathParams> *& aAttributePathList)
1516
+ void InteractionModelEngine::ReleaseAttributePathList (SingleLinkedListNode <AttributePathParams> *& aAttributePathList)
1517
1517
{
1518
1518
ReleasePool (aAttributePathList, mAttributePathPool );
1519
1519
}
1520
1520
1521
- CHIP_ERROR InteractionModelEngine::PushFrontAttributePathList (ObjectList <AttributePathParams> *& aAttributePathList,
1521
+ CHIP_ERROR InteractionModelEngine::PushFrontAttributePathList (SingleLinkedListNode <AttributePathParams> *& aAttributePathList,
1522
1522
AttributePathParams & aAttributePath)
1523
1523
{
1524
1524
CHIP_ERROR err = PushFront (aAttributePathList, aAttributePath, mAttributePathPool );
@@ -1530,10 +1530,10 @@ CHIP_ERROR InteractionModelEngine::PushFrontAttributePathList(ObjectList<Attribu
1530
1530
return err;
1531
1531
}
1532
1532
1533
- void InteractionModelEngine::RemoveDuplicateConcreteAttributePath (ObjectList <AttributePathParams> *& aAttributePaths)
1533
+ void InteractionModelEngine::RemoveDuplicateConcreteAttributePath (SingleLinkedListNode <AttributePathParams> *& aAttributePaths)
1534
1534
{
1535
- ObjectList <AttributePathParams> * prev = nullptr ;
1536
- auto * path1 = aAttributePaths;
1535
+ SingleLinkedListNode <AttributePathParams> * prev = nullptr ;
1536
+ auto * path1 = aAttributePaths;
1537
1537
1538
1538
while (path1 != nullptr )
1539
1539
{
@@ -1585,12 +1585,12 @@ void InteractionModelEngine::RemoveDuplicateConcreteAttributePath(ObjectList<Att
1585
1585
}
1586
1586
}
1587
1587
1588
- void InteractionModelEngine::ReleaseEventPathList (ObjectList <EventPathParams> *& aEventPathList)
1588
+ void InteractionModelEngine::ReleaseEventPathList (SingleLinkedListNode <EventPathParams> *& aEventPathList)
1589
1589
{
1590
1590
ReleasePool (aEventPathList, mEventPathPool );
1591
1591
}
1592
1592
1593
- CHIP_ERROR InteractionModelEngine::PushFrontEventPathParamsList (ObjectList <EventPathParams> *& aEventPathList,
1593
+ CHIP_ERROR InteractionModelEngine::PushFrontEventPathParamsList (SingleLinkedListNode <EventPathParams> *& aEventPathList,
1594
1594
EventPathParams & aEventPath)
1595
1595
{
1596
1596
CHIP_ERROR err = PushFront (aEventPathList, aEventPath, mEventPathPool );
@@ -1602,12 +1602,12 @@ CHIP_ERROR InteractionModelEngine::PushFrontEventPathParamsList(ObjectList<Event
1602
1602
return err;
1603
1603
}
1604
1604
1605
- void InteractionModelEngine::ReleaseDataVersionFilterList (ObjectList <DataVersionFilter> *& aDataVersionFilterList)
1605
+ void InteractionModelEngine::ReleaseDataVersionFilterList (SingleLinkedListNode <DataVersionFilter> *& aDataVersionFilterList)
1606
1606
{
1607
1607
ReleasePool (aDataVersionFilterList, mDataVersionFilterPool );
1608
1608
}
1609
1609
1610
- CHIP_ERROR InteractionModelEngine::PushFrontDataVersionFilterList (ObjectList <DataVersionFilter> *& aDataVersionFilterList,
1610
+ CHIP_ERROR InteractionModelEngine::PushFrontDataVersionFilterList (SingleLinkedListNode <DataVersionFilter> *& aDataVersionFilterList,
1611
1611
DataVersionFilter & aDataVersionFilter)
1612
1612
{
1613
1613
CHIP_ERROR err = PushFront (aDataVersionFilterList, aDataVersionFilter, mDataVersionFilterPool );
@@ -1620,12 +1620,13 @@ CHIP_ERROR InteractionModelEngine::PushFrontDataVersionFilterList(ObjectList<Dat
1620
1620
}
1621
1621
1622
1622
template <typename T, size_t N>
1623
- void InteractionModelEngine::ReleasePool (ObjectList<T> *& aObjectList, ObjectPool<ObjectList<T>, N> & aObjectPool)
1623
+ void InteractionModelEngine::ReleasePool (SingleLinkedListNode<T> *& aObjectList,
1624
+ ObjectPool<SingleLinkedListNode<T>, N> & aObjectPool)
1624
1625
{
1625
- ObjectList <T> * current = aObjectList;
1626
+ SingleLinkedListNode <T> * current = aObjectList;
1626
1627
while (current != nullptr )
1627
1628
{
1628
- ObjectList <T> * nextObject = current->mpNext ;
1629
+ SingleLinkedListNode <T> * nextObject = current->mpNext ;
1629
1630
aObjectPool.ReleaseObject (current);
1630
1631
current = nextObject;
1631
1632
}
@@ -1634,9 +1635,10 @@ void InteractionModelEngine::ReleasePool(ObjectList<T> *& aObjectList, ObjectPoo
1634
1635
}
1635
1636
1636
1637
template <typename T, size_t N>
1637
- CHIP_ERROR InteractionModelEngine::PushFront (ObjectList<T> *& aObjectList, T & aData, ObjectPool<ObjectList<T>, N> & aObjectPool)
1638
+ CHIP_ERROR InteractionModelEngine::PushFront (SingleLinkedListNode<T> *& aObjectList, T & aData,
1639
+ ObjectPool<SingleLinkedListNode<T>, N> & aObjectPool)
1638
1640
{
1639
- ObjectList <T> * object = aObjectPool.CreateObject ();
1641
+ SingleLinkedListNode <T> * object = aObjectPool.CreateObject ();
1640
1642
if (object == nullptr )
1641
1643
{
1642
1644
return CHIP_ERROR_NO_MEMORY;
0 commit comments