|
OpenDDS
Snapshot(2023/03/03-19:27)
|
#include <FilterEvaluator.h>

Public Types | |
| enum | Type { VAL_BOOL, VAL_INT, VAL_UINT, VAL_I64, VAL_UI64, VAL_FLOAT, VAL_LNGDUB, VAL_LARGEST_NUMERIC = VAL_LNGDUB, VAL_CHAR, VAL_STRING } |
Public Member Functions | |
| Value (bool b, bool conversion_preferred=false) | |
| Value (int i, bool conversion_preferred=false) | |
| Value (unsigned int u, bool conversion_preferred=false) | |
| Value (ACE_INT64 l, bool conversion_preferred=false) | |
| Value (ACE_UINT64 m, bool conversion_preferred=false) | |
| Value (char c, bool conversion_preferred=false) | |
| Value (double f, bool conversion_preferred=false) | |
| Value (ACE_CDR::LongDouble ld, bool conversion_preferred=false) | |
| Value (const char *s, bool conversion_preferred=false) | |
| Value (const std::string &s, bool conversion_preferred=false) | |
| Value (const TAO::String_Manager &s, bool conversion_preferred=false) | |
| Value (const TAO::WString_Manager &s, bool conversion_preferred=false) | |
| ~Value () | |
| Value (const Value &v) | |
| Value & | operator= (const Value &v) |
| void | swap (Value &other) |
| bool | operator== (const Value &v) const |
| bool | operator< (const Value &v) const |
| bool | like (const Value &v) const |
| Value | operator% (const Value &v) const |
| bool | convert (Type t) |
| template<typename T > | |
| T & | get () |
| template<typename T > | |
| const T & | get () const |
| template<> | |
| bool & | get () |
| template<> | |
| int & | get () |
| template<> | |
| unsigned int & | get () |
| template<> | |
| ACE_INT64 & | get () |
| template<> | |
| ACE_UINT64 & | get () |
| template<> | |
| char & | get () |
| template<> | |
| double & | get () |
| template<> | |
| ACE_CDR::LongDouble & | get () |
| template<> | |
| const char *& | get () |
| template<> | |
| const bool & | get () const |
| template<> | |
| const int & | get () const |
| template<> | |
| const unsigned int & | get () const |
| template<> | |
| const ACE_INT64 & | get () const |
| template<> | |
| const ACE_UINT64 & | get () const |
| template<> | |
| const char & | get () const |
| template<> | |
| const double & | get () const |
| template<> | |
| const ACE_CDR::LongDouble & | get () const |
| template<> | |
| const char *const & | get () const |
Static Public Member Functions | |
| static void | conversion (Value &lhs, Value &rhs) |
Public Attributes | |
| Type | type_ |
| union { | |
| bool b_ | |
| int i_ | |
| unsigned int u_ | |
| ACE_INT64 l_ | |
| ACE_UINT64 m_ | |
| char c_ | |
| double f_ | |
| ACE_CDR::LongDouble ld_ | |
| const char * s_ | |
| }; | |
| bool | conversion_preferred_ |
Definition at line 38 of file FilterEvaluator.h.
| enum OpenDDS::DCPS::Value::Type |
| Enumerator | |
|---|---|
| VAL_BOOL | |
| VAL_INT | |
| VAL_UINT | |
| VAL_I64 | |
| VAL_UI64 | |
| VAL_FLOAT | |
| VAL_LNGDUB | |
| VAL_LARGEST_NUMERIC | |
| VAL_CHAR | |
| VAL_STRING | |
Definition at line 68 of file FilterEvaluator.h.
| OpenDDS::DCPS::Value::Value | ( | bool | b, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 581 of file FilterEvaluator.cpp.
Referenced by Value().
| OpenDDS::DCPS::Value::Value | ( | int | i, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 585 of file FilterEvaluator.cpp.
| OpenDDS::DCPS::Value::Value | ( | unsigned int | u, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 589 of file FilterEvaluator.cpp.
| OpenDDS::DCPS::Value::Value | ( | ACE_INT64 | l, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 593 of file FilterEvaluator.cpp.
| OpenDDS::DCPS::Value::Value | ( | ACE_UINT64 | m, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 597 of file FilterEvaluator.cpp.
| OpenDDS::DCPS::Value::Value | ( | char | c, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 601 of file FilterEvaluator.cpp.
| OpenDDS::DCPS::Value::Value | ( | double | f, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 605 of file FilterEvaluator.cpp.
| OpenDDS::DCPS::Value::Value | ( | ACE_CDR::LongDouble | ld, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 609 of file FilterEvaluator.cpp.
References ACE_CDR_LONG_DOUBLE_ASSIGNMENT, conversion_preferred_, ld_, type_, VAL_LNGDUB, and Value().
| OpenDDS::DCPS::Value::Value | ( | const char * | s, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 621 of file FilterEvaluator.cpp.
References strdup().
| OpenDDS::DCPS::Value::Value | ( | const std::string & | s, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 626 of file FilterEvaluator.cpp.
References conversion_preferred_, s_, strdup(), ACE_OS::strdup(), type_, VAL_STRING, and Value().
| OpenDDS::DCPS::Value::Value | ( | const TAO::String_Manager & | s, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 638 of file FilterEvaluator.cpp.
References strdup().
| OpenDDS::DCPS::Value::Value | ( | const TAO::WString_Manager & | s, |
| bool | conversion_preferred = false |
||
| ) |
Definition at line 643 of file FilterEvaluator.cpp.
References strdup().
| OpenDDS::DCPS::Value::~Value | ( | ) |
Definition at line 677 of file FilterEvaluator.cpp.
References ACE_OS::free(), s_, steal_, ACE_OS::strdup(), tgt_, type_, VAL_BOOL, VAL_CHAR, VAL_FLOAT, VAL_I64, VAL_INT, VAL_LNGDUB, VAL_STRING, VAL_UI64, and VAL_UINT.
| OpenDDS::DCPS::Value::Value | ( | const Value & | v | ) |
Definition at line 734 of file FilterEvaluator.cpp.
Definition at line 961 of file FilterEvaluator.cpp.
References conversion_preferred_, convert(), type_, VAL_CHAR, VAL_LARGEST_NUMERIC, and VAL_STRING.
Referenced by operator%(), operator<(), and operator==().
| bool OpenDDS::DCPS::Value::convert | ( | Type | t | ) |
Definition at line 929 of file FilterEvaluator.cpp.
References conversion_preferred_, OPENDDS_STRING, s_, ACE_OS::strdup(), swap(), type_, and VAL_STRING.
Referenced by conversion().
| T& OpenDDS::DCPS::Value::get | ( | ) |
| const T& OpenDDS::DCPS::Value::get | ( | ) | const |
| bool& OpenDDS::DCPS::Value::get | ( | void | ) |
| int& OpenDDS::DCPS::Value::get | ( | void | ) |
| unsigned int& OpenDDS::DCPS::Value::get | ( | void | ) |
| ACE_INT64& OpenDDS::DCPS::Value::get | ( | void | ) |
| ACE_UINT64& OpenDDS::DCPS::Value::get | ( | void | ) |
| char& OpenDDS::DCPS::Value::get | ( | void | ) |
| double& OpenDDS::DCPS::Value::get | ( | void | ) |
| ACE_CDR::LongDouble& OpenDDS::DCPS::Value::get | ( | void | ) |
| const char*& OpenDDS::DCPS::Value::get | ( | void | ) |
| const bool& OpenDDS::DCPS::Value::get | ( | void | ) | const |
| const int& OpenDDS::DCPS::Value::get | ( | void | ) | const |
| const unsigned int& OpenDDS::DCPS::Value::get | ( | void | ) | const |
| const ACE_INT64& OpenDDS::DCPS::Value::get | ( | void | ) | const |
| const ACE_UINT64& OpenDDS::DCPS::Value::get | ( | void | ) | const |
| const char& OpenDDS::DCPS::Value::get | ( | void | ) | const |
| const double& OpenDDS::DCPS::Value::get | ( | void | ) | const |
| const ACE_CDR::LongDouble& OpenDDS::DCPS::Value::get | ( | void | ) | const |
| const char* const& OpenDDS::DCPS::Value::get | ( | void | ) | const |
| bool OpenDDS::DCPS::Value::like | ( | const Value & | v | ) | const |
Definition at line 871 of file FilterEvaluator.cpp.
References OPENDDS_STRING, os_, s_, type_, VAL_STRING, and ACE::wild_match().
Definition at line 861 of file FilterEvaluator.cpp.
References conversion().
| bool OpenDDS::DCPS::Value::operator< | ( | const Value & | v | ) | const |
Definition at line 851 of file FilterEvaluator.cpp.
References conversion().
| bool OpenDDS::DCPS::Value::operator== | ( | const Value & | v | ) | const |
Definition at line 841 of file FilterEvaluator.cpp.
References conversion().
| void OpenDDS::DCPS::Value::swap | ( | Value & | other | ) |
Definition at line 750 of file FilterEvaluator.cpp.
References conversion_preferred_, ACE_OS::free(), lhs_, s_, OpenDDS::DCPS::swap(), type_, and VAL_STRING.
Referenced by convert(), and operator=().
| union { ... } |
| bool OpenDDS::DCPS::Value::b_ |
Definition at line 78 of file FilterEvaluator.h.
Referenced by OpenDDS::DCPS::FilterEvaluator::eval_i(), get(), and OpenDDS::XTypes::DynamicDataAdapter< T >::get_boolean_value().
| char OpenDDS::DCPS::Value::c_ |
Definition at line 83 of file FilterEvaluator.h.
Referenced by get(), and OpenDDS::XTypes::DynamicDataAdapter< T >::get_char8_value().
| bool OpenDDS::DCPS::Value::conversion_preferred_ |
Definition at line 88 of file FilterEvaluator.h.
Referenced by conversion(), convert(), swap(), and Value().
| double OpenDDS::DCPS::Value::f_ |
Definition at line 84 of file FilterEvaluator.h.
Referenced by get(), OpenDDS::XTypes::DynamicDataAdapter< T >::get_float32_value(), and OpenDDS::XTypes::DynamicDataAdapter< T >::get_float64_value().
| int OpenDDS::DCPS::Value::i_ |
Definition at line 79 of file FilterEvaluator.h.
Referenced by get(), OpenDDS::XTypes::DynamicDataAdapter< T >::get_int16_value(), OpenDDS::XTypes::DynamicDataAdapter< T >::get_int32_value(), and OpenDDS::XTypes::DynamicDataAdapter< T >::get_int8_value().
| ACE_INT64 OpenDDS::DCPS::Value::l_ |
Definition at line 81 of file FilterEvaluator.h.
Referenced by get(), and OpenDDS::XTypes::DynamicDataAdapter< T >::get_int64_value().
| ACE_CDR::LongDouble OpenDDS::DCPS::Value::ld_ |
Definition at line 85 of file FilterEvaluator.h.
Referenced by get(), OpenDDS::XTypes::DynamicDataAdapter< T >::get_float128_value(), and Value().
| ACE_UINT64 OpenDDS::DCPS::Value::m_ |
Definition at line 82 of file FilterEvaluator.h.
Referenced by get(), and OpenDDS::XTypes::DynamicDataAdapter< T >::get_uint64_value().
| const char* OpenDDS::DCPS::Value::s_ |
Definition at line 86 of file FilterEvaluator.h.
Referenced by convert(), get(), OpenDDS::XTypes::DynamicDataAdapter< T >::get_string_value(), like(), swap(), Value(), and ~Value().
| Type OpenDDS::DCPS::Value::type_ |
Definition at line 76 of file FilterEvaluator.h.
Referenced by conversion(), convert(), like(), swap(), Value(), and ~Value().
| unsigned int OpenDDS::DCPS::Value::u_ |
Definition at line 80 of file FilterEvaluator.h.
Referenced by get(), OpenDDS::XTypes::DynamicDataAdapter< T >::get_uint16_value(), OpenDDS::XTypes::DynamicDataAdapter< T >::get_uint32_value(), and OpenDDS::XTypes::DynamicDataAdapter< T >::get_uint8_value().
1.8.13