Classes | Namespaces | Typedefs | Enumerations | Functions
basic_types.h File Reference
#include <iostream>
#include <vector>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
#include <typeinfo>
#include <functional>
#include <chrono>
#include <memory>
#include "behaviortree_cpp_v3/utils/string_view.hpp"
#include "behaviortree_cpp_v3/utils/safe_any.hpp"
#include "behaviortree_cpp_v3/exceptions.h"
#include "behaviortree_cpp_v3/utils/expected.hpp"
#include "behaviortree_cpp_v3/utils/make_unique.hpp"
Include dependency graph for basic_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BT::has_static_method_providedPorts< T, typename >
 
struct  BT::has_static_method_providedPorts< T, typename std::enable_if< std::is_same< decltype(T::providedPorts()), PortsList >::value >::type >
 
class  BT::PortInfo
 

Namespaces

 BT
 

Typedefs

typedef std::chrono::high_resolution_clock::duration BT::Duration
 
template<typename Predicate >
using BT::enable_if = typename std::enable_if< Predicate::value >::type *
 
template<typename Predicate >
using BT::enable_if_not = typename std::enable_if< !Predicate::value >::type *
 
template<typename T >
using BT::Optional = nonstd::expected< T, std::string >
 
typedef std::unordered_map< std::string, PortInfo > BT::PortsList
 
using BT::Result = Optional< void >
 
typedef std::function< Any(StringView)> BT::StringConverter
 
typedef std::unordered_map< const std::type_info *, StringConverter > BT::StringConvertersMap
 
typedef nonstd::string_view BT::StringView
 
typedef std::chrono::high_resolution_clock::time_point BT::TimePoint
 

Enumerations

enum  BT::NodeStatus { BT::NodeStatus::IDLE = 0, BT::NodeStatus::RUNNING, BT::NodeStatus::SUCCESS, BT::NodeStatus::FAILURE }
 
enum  BT::NodeType {
  BT::NodeType::UNDEFINED = 0, BT::NodeType::ACTION, BT::NodeType::CONDITION, BT::NodeType::CONTROL,
  BT::NodeType::DECORATOR, BT::NodeType::SUBTREE
}
 Enumerates the possible types of nodes. More...
 
enum  BT::PortDirection { BT::PortDirection::INPUT, BT::PortDirection::OUTPUT, BT::PortDirection::INOUT }
 

Functions

template<typename T = void>
std::pair< std::string, PortInfo > BT::BidirectionalPort (StringView name, StringView description={})
 
template<typename T = void>
std::pair< std::string, PortInfo > BT::BidirectionalPort (StringView name, const T &default_value, StringView description)
 
template<typename T >
BT::convertFromString (StringView)
 
template<>
bool BT::convertFromString< bool > (StringView str)
 
template<>
const char * BT::convertFromString< const char * > (StringView str)
 
template<>
double BT::convertFromString< double > (StringView str)
 
template<>
float BT::convertFromString< float > (StringView str)
 
template<>
int BT::convertFromString< int > (StringView str)
 
template<>
long BT::convertFromString< long > (StringView str)
 
template<>
NodeStatus BT::convertFromString< NodeStatus > (StringView str)
 
template<>
NodeType BT::convertFromString< NodeType > (StringView str)
 
template<>
PortDirection BT::convertFromString< PortDirection > (StringView str)
 
template<>
std::string BT::convertFromString< std::string > (StringView str)
 
template<>
std::vector< double > BT::convertFromString< std::vector< double > > (StringView str)
 
template<>
std::vector< int > BT::convertFromString< std::vector< int > > (StringView str)
 
template<>
unsigned BT::convertFromString< unsigned > (StringView str)
 
template<>
unsigned long BT::convertFromString< unsigned long > (StringView str)
 
template<typename T = void>
std::pair< std::string, PortInfo > BT::CreatePort (PortDirection direction, StringView name, StringView description={})
 
template<typename T >
StringConverter BT::GetAnyFromStringFunctor ()
 
template<>
StringConverter BT::GetAnyFromStringFunctor< void > ()
 
template<typename T >
PortsList BT::getProvidedPorts (enable_if< has_static_method_providedPorts< T > >=nullptr)
 
template<typename T >
PortsList BT::getProvidedPorts (enable_if_not< has_static_method_providedPorts< T > >=nullptr)
 
template<typename T = void>
std::pair< std::string, PortInfo > BT::InputPort (StringView name, StringView description={})
 
template<typename T = void>
std::pair< std::string, PortInfo > BT::InputPort (StringView name, const T &default_value, StringView description)
 
std::ostream & BT::operator<< (std::ostream &os, const BT::NodeStatus &status)
 
std::ostream & BT::operator<< (std::ostream &os, const BT::NodeType &type)
 
std::ostream & BT::operator<< (std::ostream &os, const BT::PortDirection &type)
 
template<typename T = void>
std::pair< std::string, PortInfo > BT::OutputPort (StringView name, StringView description={})
 
std::vector< StringView > BT::splitString (const StringView &strToSplit, char delimeter)
 
template<typename T >
std::string BT::toStr (T value)
 
std::string BT::toStr (std::string value)
 
std::string BT::toStr (BT::NodeStatus status, bool colored)
 toStr converts NodeStatus to string. Optionally colored. More...
 
template<>
std::string BT::toStr< BT::NodeStatus > (BT::NodeStatus status)
 
template<>
std::string BT::toStr< BT::NodeType > (BT::NodeType type)
 toStr converts NodeType to string. More...
 
template<>
std::string BT::toStr< BT::PortDirection > (BT::PortDirection direction)
 


behaviotree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Tue May 4 2021 02:56:25