Template Class entities_oracle

Class Documentation

template<class TEntity>
class entities_oracle

Repository of perfect knowledge about entities the swarm may encounter (blocks, caches, etc).

Public Types

using knowledge_type = std::vector<TEntity*>

Public Functions

inline const knowledge_type &ask(void) const

Ask the oracle to return its knowledge about the entities it currently holds.

inline void set_knowledge(const knowledge_type &k)

Public Static Functions

static inline std::string knowledge_to_string(const std::string &prefix, const knowledge_type &v)

Get a string representation of the oracle’s knowledge. Entities are prefixed by the specified prefix.