MADARA  3.4.1
KnowledgeRecord.h File Reference
#include <string>
#include <vector>
#include <map>
#include <memory>
#include <type_traits>
#include "madara/MadaraExport.h"
#include "madara/utility/StlHelper.h"
#include "madara/utility/StdInt.h"
#include "madara/utility/Refcounter.h"
#include "madara/logger/GlobalLogger.h"
#include "madara/utility/IntTypes.h"
#include "madara/utility/CircularBuffer.h"
#include "madara/exceptions/IndexException.h"
#include "KnowledgeRecord.inl"
#include "KnowledgeCast.h"

Go to the source code of this file.

Classes

struct  madara::knowledge::tags::any< T >
 
class  madara::knowledge::KnowledgeRecord
 This class encapsulates an entry in a KnowledgeBase. More...
 
struct  madara::knowledge::tags::shared_t< T >
 

Namespaces

 madara
 Copyright(c) 2020 Galois.
 
 madara::knowledge
 Provides functions and classes for the distributed knowledge base.
 
 madara::knowledge::tags
 Tags to specify what type to construct in KnowledgeRecord forwarding constructors.
 

Typedefs

using madara::knowledge::tags::binary_t = type< std::vector< unsigned char > >
 
using madara::knowledge::tags::double_t = type< double >
 
using madara::knowledge::tags::doubles_t = type< std::vector< double > >
 
using madara::knowledge::tags::integer_t = type< int64_t >
 
using madara::knowledge::tags::integers_t = type< std::vector< int64_t > >
 
typedef std::string madara::knowledge::KnowledgeKey
 
typedef ::std::map< std::string, KnowledgeRecordmadara::knowledge::KnowledgeMap
 
typedef ::std::multimap< std::string, KnowledgeRecordmadara::knowledge::KnowledgeMultiMap
 
typedef ::std::map< std::string, KnowledgeRecord * > madara::knowledge::KnowledgeRecords
 
typedef ::std::vector< std::string > madara::knowledge::KnowledgeRules
 
typedef KnowledgeRecord madara::knowledge::KnowledgeValue
 
typedef ::std::vector< KnowledgeRecordmadara::knowledge::KnowledgeVector
 
using madara::knowledge::tags::string_t = type< std::string >
 
typedef ::std::vector< std::string > madara::knowledge::StringVector
 

Functions

uint32_t madara::knowledge::max_quality (const KnowledgeRecords &records)
 Returns the maximum quality within the records. More...
 
void madara::knowledge::safe_clear (KnowledgeMap &map)
 
template<typename T >
shared_t< T > madara::knowledge::tags::shared (T)
 Used to signal in-place shared_ptr construction in KnowledgeRecord Example: tags::shared(tags::integers) More...
 

Variables

constexpr binary_t madara::knowledge::tags::binary
 
constexpr double_t madara::knowledge::tags::dbl
 
constexpr doubles_t madara::knowledge::tags::dbls
 
constexpr double_t madara::knowledge::tags::double_
 
constexpr doubles_t madara::knowledge::tags::doubles
 
constexpr integer_t madara::knowledge::tags::int_
 
constexpr integer_t madara::knowledge::tags::integer
 
constexpr integers_t madara::knowledge::tags::integers
 
constexpr integers_t madara::knowledge::tags::ints
 
constexpr string_t madara::knowledge::tags::str
 
constexpr string_t madara::knowledge::tags::string
 

Detailed Description

Author
James Edmondson jedmo.nosp@m.ndso.nosp@m.n@gma.nosp@m.il.c.nosp@m.om

This file contains the KnowledgeRecord class, helper typdefs and functions

Definition in file KnowledgeRecord.h.