WIP: use pt::Stream instead of a template argument

This commit is contained in:
tomasz.sowa committed 2024-12-05 17:48:06 +01:00
1 parent d9ffe9b00a
commit e39311c290
12 files changed
+777 -707

No files matched your search

+6 -8
View File
@@ -4,8 +4,8 @@
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
/*
* Copyright (c) 2007-2015, Tomasz Sowa
/*
* Copyright (c) 2007-2024, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -56,9 +56,9 @@ public:
void Clear();
template<class StreamType> void CacheFunctions(Functions<StreamType> & fun);
void CacheFunctions(Functions & fun);
void CacheBlocks(Blocks & blocks);
template<class StreamType> void CacheObjects(Objects<StreamType> & obj);
void CacheObjects(Objects & obj);
void ClearCache();
@@ -69,15 +69,13 @@ public:
template<class StreamType>
void Pattern::CacheFunctions(Functions<StreamType> & fun)
void Pattern::CacheFunctions(Functions & fun)
{
Cache(fun, item_root);
}
template<class StreamType>
void Pattern::CacheObjects(Objects<StreamType> & obj)
void Pattern::CacheObjects(Objects & obj)
{
Cache(obj, item_root);
}