42 #include "../types/Types.hpp" 43 #include "../types/Operators.hpp" 44 #include "../types/OperatorTypes.hpp" 45 #include "../internal/mystd.hpp" 46 #include "../rtt-fwd.hpp" 47 #include "../FlowStatus.hpp" 48 #include "../SendStatus.hpp" 49 #include "../ConnPolicy.hpp" 50 #include "../typekit/Types.hpp" 54 #include "../rt_string.hpp" 60 using namespace detail;
62 #ifndef RTT_NO_STD_TYPES 65 :
public std::unary_function<T, int>
69 return cont.capacity();
75 :
public std::unary_function<T, int>
87 struct string_concatenation :
public std::binary_function<const std::string&, T, std::string> {
88 std::string operator()(
const std::string& s, T t)
const {
89 std::ostringstream oss(s, std::ios_base::ate);
90 oss << std::boolalpha << t;
96 struct rt_string_concatenation :
public std::binary_function<const rt_string&, T, rt_string> {
99 oss << std::boolalpha << t;
175 #ifndef RTT_NO_STD_TYPES 186 oreg->add(
newBinaryOperator(
"!=", std::not_equal_to< const std::string&>() ) );
219 oreg->add(
newUnaryOperator(
"-", std::negate<
const std::vector<double>&>() ) );
220 oreg->add(
newBinaryOperator(
"*", std::multiplies<
const std::vector<double>&>() ) );
std::basic_ostringstream< char, std::char_traits< char >, RTT::os::rt_allocator< char > > rt_ostringstream
Real-time allocatable, dynamically-size output string stream.
static shared_ptr Instance()
Returns a shared pointer to the singleton of this class.
std::basic_string< char, std::char_traits< char >, RTT::os::rt_allocator< char > > rt_string
Real-time allocatable, dynamically-sized string.
boost::shared_ptr< OperatorRepository > shared_ptr
virtual bool loadOperators()
Implement this method to load Scripting operators on types, such as '+', '*', ... ...
BinaryOperator< function > * newBinaryOperator(const char *op, function f)
helper function to create a new BinaryOperator
UnaryOperator< function > * newUnaryOperator(const char *op, function f)
helper function to create a new UnaryOperator
int operator()(T cont) const
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
int operator()(T cont) const