Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F2730717
transformations.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Mar 14, 12:41 AM
Size
920 B
Mime Type
text/x-c++
Expires
Mon, Mar 16, 12:41 AM (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
242843
Attached To
rXR Xreate
transformations.cpp
View Options
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* transformation.cpp
*
* Author: pgess <v.melnychenko@xreate.org>
* Created on March 27, 2017, 4:04 PM
*/
#include "transformations.h"
namespace xreate { namespace compilation {
std::list<Transformer*>
TransformationsManager::getRelevantTransformers(const Expression& expression){
std::list<Transformer*> result;
for (auto tag: expression.tags) {
if (__subscriptions.count(tag.first)){
auto handlers = __subscriptions.equal_range(tag.first);
for (auto handler = handlers.first; handler != handlers.second; ++handler){
result.push_back(__transformers[handler->second]);
}
}
}
return result;
}
} } //namespace xreate
Event Timeline
Log In to Comment