Skip to content
Snippets Groups Projects
Commit fd014bdb authored by Jan Trávníček's avatar Jan Trávníček
Browse files

organize imports in abstraction

parent 8e288773
No related branches found
No related tags found
No related merge requests found
Showing
with 9 additions and 21 deletions
......@@ -9,7 +9,6 @@
#define _ALGORITHM_ABSTRACTION_HPP_
 
#include <abstraction/NaryOperationAbstraction.hpp>
#include <tuple>
#include <memory>
#include <abstraction/Registry.h>
 
......
......@@ -14,6 +14,7 @@
#include <string>
#include <set>
#include <map>
#include <tuple>
#include <algorithm>
 
#include <exception/CommonException.h>
......
......@@ -9,7 +9,6 @@
#define _ANYARY_OPERATION_ABSTRACTION_HPP_
 
#include <abstraction/ValueOperationAbstraction.hpp>
#include <tuple>
#include <memory>
#include <abstraction/Registry.h>
 
......
......@@ -9,7 +9,6 @@
#define _CAST_ABSTRACTION_HPP_
 
#include <abstraction/UnaryOperationAbstraction.hpp>
#include <tuple>
 
namespace abstraction {
 
......
......@@ -61,7 +61,7 @@ public:
template < class TargetType, class ParamType >
static void registerCast ( std::string target, std::string param, bool normalize ) {
if ( ! getEntries ( ).insert ( std::make_pair ( std::make_pair ( target, param ), std::unique_ptr < Entry > ( new DefaultEntryImpl < TargetType, ParamType > ( normalize ) ) ) ).second )
throw ::exception::CommonException ( "Entry from " + param + " to " + target + " already registered." );
throw exception::CommonException ( "Entry from " + param + " to " + target + " already registered." );
}
 
template < class TargetType, class ParamType >
......@@ -75,7 +75,7 @@ public:
template < class TargetType, class ParamType >
static void registerCastAlgorithm ( std::string target, std::string param, TargetType ( * callback ) ( const ParamType & ), bool normalize ) {
if ( ! getEntries ( ).insert ( std::make_pair ( std::make_pair ( target, param ), std::unique_ptr < Entry > ( new AlgorithmEntryImpl < TargetType, const ParamType & > ( callback, normalize ) ) ) ).second )
throw ::exception::CommonException ( "Entry from " + param + " to " + target + " already registered." );
throw exception::CommonException ( "Entry from " + param + " to " + target + " already registered." );
}
 
template < class TargetType, class ParamType >
......@@ -89,7 +89,7 @@ public:
template < class TargetType, class ParamType >
static void registerCastAlgorithm ( std::string target, std::string param, TargetType ( * callback ) ( ParamType ), bool normalize ) {
if ( ! getEntries ( ).insert ( std::make_pair ( std::make_pair ( target, param ), std::unique_ptr < Entry > ( new AlgorithmEntryImpl < TargetType, ParamType > ( callback, normalize ) ) ) ).second )
throw ::exception::CommonException ( "Entry from " + param + " to " + target + " already registered." );
throw exception::CommonException ( "Entry from " + param + " to " + target + " already registered." );
}
 
template < class TargetType, class ParamType >
......
......@@ -6,7 +6,6 @@
*/
 
#include <abstraction/ContainerRegistry.hpp>
#include <foreach>
#include <algorithm>
 
namespace abstraction {
......
......@@ -13,6 +13,7 @@
#include <vector>
#include <string>
#include <set>
#include <map>
 
#include <exception/CommonException.h>
#include <abstraction/OperationAbstraction.hpp>
......
......@@ -9,7 +9,6 @@
#define _DOWNCAST_ABSTRACTION_HPP_
 
#include <abstraction/UnaryOperationAbstraction.hpp>
#include <memory>
 
namespace abstraction {
 
......
......@@ -44,7 +44,7 @@ public:
std::string concrete = ext::to_string < ConcreteType > ( );
std::string base = ext::to_string < BaseType > ( );
if ( ! getEntries ( ).insert ( std::make_pair ( std::make_pair ( concrete, base ), std::unique_ptr < Entry > ( new EntryImpl < ConcreteType, BaseType > ( ) ) ) ).second )
throw ::exception::CommonException ( "Downcasting for " + base + " to " + concrete + " already registered." );
throw exception::CommonException ( "Downcasting for " + base + " to " + concrete + " already registered." );
}
 
static std::shared_ptr < abstraction::OperationAbstraction > getAbstraction ( const std::string & concrete, const std::string & base );
......
......@@ -9,7 +9,6 @@
#define _IMMEDIATE_VALUE_ABSTRACTION_HPP_
 
#include <abstraction/NullaryOperationAbstraction.hpp>
#include <tuple>
 
namespace abstraction {
 
......
......@@ -9,7 +9,6 @@
#define _NORMALIZE_ABSTRACTION_HPP_
 
#include <abstraction/UnaryOperationAbstraction.hpp>
#include <tuple>
 
#include <core/normalize.hpp>
 
......
......@@ -10,10 +10,7 @@
 
#include <memory>
#include <string>
#include <tuple>
#include <functional>
#include <exception/CommonException.h>
#include <typeindex>
 
namespace abstraction {
 
......
......@@ -13,6 +13,7 @@
#include <abstraction/common/AlgorithmCategories.hpp>
 
#include <pair>
#include <tuple>
 
namespace abstraction {
 
......
......@@ -9,10 +9,7 @@
#define _SET_ABSTRACTION_HPP_
 
#include <abstraction/AnyaryOperationAbstraction.hpp>
#include <tuple>
#include <memory>
#include <abstraction/Registry.h>
#include <foreach>
 
namespace abstraction {
 
......
......@@ -13,7 +13,6 @@
#include <memory>
#include <typeindex>
#include <variant>
#include <abstraction/Registry.h>
#include <abstraction/ValueProvider.hpp>
 
namespace abstraction {
......
......@@ -10,7 +10,6 @@
 
#include <abstraction/UnaryOperationAbstraction.hpp>
#include <abstraction/NullaryOperationAbstraction.hpp>
#include <tuple>
 
namespace abstraction {
 
......
......@@ -12,7 +12,6 @@
#include <string>
#include <map>
 
#include <exception/CommonException.h>
#include <abstraction/OperationAbstraction.hpp>
 
namespace abstraction {
......
#include <abstraction/Registry.h>
#include <abstraction/common/CastHelper.h>
#include <exception/CommonException.h>
 
namespace abstraction {
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment