Get rid of enum Quale::Type, create BoundingQuale; use typeid()
We just learned about typeid. Apparently it was either not mentioned in the Stroupstrup book or we totally missed it.
This commit is contained in:
+13
-15
@@ -11,21 +11,10 @@ class Quale
|
||||
: public MentalExistent
|
||||
{
|
||||
public:
|
||||
enum class Type
|
||||
{
|
||||
NEUTRAL,
|
||||
/* Bounding refers to qualia such as tactile pressure which
|
||||
* are mostly neutral but disclose information about the limits
|
||||
* of the body.
|
||||
**/
|
||||
BOUNDING,
|
||||
PAINFUL,
|
||||
PLEASURABLE
|
||||
} type;
|
||||
|
||||
public:
|
||||
Quale(const Type type, const int32_t intensity)
|
||||
: type(type), intensity(intensity) {}
|
||||
Quale(const MentalEntity::Id id, const int32_t intensity)
|
||||
: MentalExistent(id),
|
||||
intensity(intensity)
|
||||
{}
|
||||
|
||||
public:
|
||||
int32_t intensity;
|
||||
@@ -36,6 +25,15 @@ class NeutralQuale
|
||||
{
|
||||
};
|
||||
|
||||
/* Bounding qualia refer to qualia such as tactile pressure which are
|
||||
* mostly neutral but disclose information about the limits of the body.
|
||||
* These qualia are supplied by interoceptive sensors.
|
||||
**/
|
||||
class BoundingQuale
|
||||
: public NeutralQuale
|
||||
{
|
||||
};
|
||||
|
||||
class NonNeutralQuale
|
||||
: public Quale, public AttentionTrigger
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user