Grail (C++)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::BlackboardEntry Struct Reference

More...

#include <BlackboardEntry.hh>

Public Member Functions

template<typename T >
void SetValue (const T &value)
 SetValue - insterts value of any time into the blackboard entry by converting it to any. More...
 
template<typename T >
const T & GetValue () const
 GetValue - Returns value stored in the blackboard entry. More...
 
std::string ToString () const
 ToString - Returns serialization of data stored in the entry. More...
 

Public Attributes

std::any data
 
std::function< std::string(const std::any &)> serializationFunction
 

Detailed Description

The structure for holding elements in a Blackboard.

Member Function Documentation

◆ GetValue()

template<typename T >
const T& grail::BlackboardEntry::GetValue ( ) const
inline

GetValue - Returns value stored in the blackboard entry.

Parameters
name
Returns
value stored in the blackboard entry

◆ SetValue()

template<typename T >
void grail::BlackboardEntry::SetValue ( const T &  value)
inline

SetValue - insterts value of any time into the blackboard entry by converting it to any.

Parameters
value

◆ ToString()

std::string grail::BlackboardEntry::ToString ( ) const
inline

ToString - Returns serialization of data stored in the entry.

Parameters
name
Returns
string representation of data or a message if the type is not supported for serialization

The documentation for this struct was generated from the following file: