added: now ezc functions can be methods of a special object
added: objects.h with a base class for the object and Objects container (similar as Functions container) git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@1011 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007-2014, Tomasz Sowa
|
||||
* Copyright (c) 2007-2015, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -44,6 +44,7 @@
|
||||
#include "cache.h"
|
||||
#include "blocks.h"
|
||||
#include "functions.h"
|
||||
#include "objects.h"
|
||||
|
||||
|
||||
namespace Ezc
|
||||
@@ -60,6 +61,7 @@ public:
|
||||
|
||||
template<class StreamType> void CacheFunctions(Functions<StreamType> & fun);
|
||||
void CacheBlocks(Blocks & blocks);
|
||||
template<class StreamType> void CacheObjects(Objects<StreamType> & obj);
|
||||
void ClearCache();
|
||||
|
||||
|
||||
@@ -77,6 +79,11 @@ void Pattern::CacheFunctions(Functions<StreamType> & fun)
|
||||
}
|
||||
|
||||
|
||||
template<class StreamType>
|
||||
void Pattern::CacheObjects(Objects<StreamType> & obj)
|
||||
{
|
||||
Cache(obj, item_root);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user