#include <eosim/core/entity.hpp>
Inheritance diagram for eosim::core::EntityComp:
EntityComp is the parent class of all Entity Comparators and it is the only EOSimulator’s abstract class that is used optionally. Its main operation is EntityComp::compare, which compare two entities. These comparators are user defined classes. There are used to create priority queues according to the needs of the programmer.
Public Member Functions | |
EntityComp () | |
virtual | ~EntityComp () |
virtual bool | compare (Entity *e1, Entity *e2)=0 |
eosim::core::EntityComp::EntityComp | ( | ) |
The constructor creates an EntityComp.
virtual eosim::core::EntityComp::~EntityComp | ( | ) | [virtual] |
The destructor of EntityComp.
This abstract operation compares e1 and e2. This is the main operations of Comparators. The programmer has to give a method to this operation to implement a specific comparator.