Concept,Cologex,Goal: refactor headers
All Cologexes (both Cologexes and CologexSets) are now categorized as Concepts. Goals are now also Concepts -- they inherit from Concept as a base class. Using Concept as the base class for both Cologex and CologexSet allows us to treat both cologexes and cologexsets the same way when comparing in the abstract.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include <memory>
|
||||
#include <logic.h>
|
||||
#include <mentalEntity.h>
|
||||
#include <concept.h>
|
||||
#include <user/stimFrame.h>
|
||||
|
||||
namespace smo {
|
||||
namespace cologex {
|
||||
@@ -37,14 +39,23 @@ public:
|
||||
};
|
||||
|
||||
class CombinatorialLogicExpression
|
||||
: public MentalEntity, public logic::Expression
|
||||
: public MentalEntity, public logic::Expression, public Concept
|
||||
{
|
||||
public:
|
||||
|
||||
};
|
||||
|
||||
class CombinatorialLogicExpressionSet
|
||||
: public MentalEntity, public Concept
|
||||
{
|
||||
public:
|
||||
std::vector<
|
||||
std::pair<stim_buff::SimultaneityStamp, CombinatorialLogicExpression>
|
||||
> expressions;
|
||||
};
|
||||
|
||||
typedef CombinatorialLogicExpression Cologex;
|
||||
typedef CombinatorialLogicExpression Clast;
|
||||
typedef CombinatorialLogicExpressionSet CologexSet;
|
||||
|
||||
} // namespace cologex
|
||||
} // namespace smo
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef _CONCEPT_H
|
||||
#define _CONCEPT_H
|
||||
|
||||
namespace smo {
|
||||
namespace cologex {
|
||||
|
||||
class Concept
|
||||
{
|
||||
};
|
||||
|
||||
} // namespace cologex
|
||||
} // namespace smo
|
||||
|
||||
#endif // _CONCEPT_H
|
||||
@@ -6,7 +6,8 @@
|
||||
namespace smo {
|
||||
|
||||
class Goal
|
||||
: public concepts::Concept {
|
||||
: public cologex::Concept
|
||||
{
|
||||
public:
|
||||
Goal() = default;
|
||||
~Goal() = default;
|
||||
@@ -14,4 +15,4 @@ public:
|
||||
|
||||
} // namespace smo
|
||||
|
||||
#endif
|
||||
#endif // _GOAL_H
|
||||
|
||||
Reference in New Issue
Block a user