Built-in data type. More...
#include <BuiltinDataType.h>
Classes | |
class | Impl |
Built-in data type implementation. More... | |
class | ImplT |
Built-in data type implementation (templated strong-typed version) More... | |
Public Member Functions | |
BuiltinDataType () | |
Default constructor. More... | |
BuiltinDataType (const BuiltinDataType &src) | |
Copy constructor. More... | |
BuiltinDataType (const DataType &src) | |
Copy constructor (overloaded version taking a data type) More... | |
bool | isNumeric () const |
True, if this built-in data type is numeric. More... | |
BuiltinDataType & | operator= (const DataType &src) |
Assignment operator. More... | |
virtual | ~BuiltinDataType () |
Destructor. More... | |
Public Member Functions inherited from variant_topic_tools::DataType | |
void | clear () |
Clear the data type. More... | |
Serializer | createSerializer () const |
Create a serializer for this data type. More... | |
Variant | createVariant () const |
Create a variant from this data type. More... | |
DataType () | |
Default constructor. More... | |
DataType (const char *identifier) | |
Constructor (overloaded version taking an identifier) More... | |
DataType (const std::string &identifier) | |
Constructor (overloaded version taking a string identifier) More... | |
DataType (const std::type_info &typeInfo) | |
Constructor (overloaded version taking type information) More... | |
DataType (const DataType &src) | |
Copy constructor. More... | |
const std::string & | getIdentifier () const |
Retrieve the identifier representing this data type. More... | |
size_t | getSize () const |
Retrieve the size of the instances of this data type. More... | |
const std::type_info & | getTypeInfo () const |
Retrieve the type information associated with this data type. More... | |
bool | hasTypeInfo () const |
True, if this data type has type information. More... | |
bool | isArray () const |
True, if this data type represents an array type. More... | |
bool | isBuiltin () const |
True, if this data type represents a built-in type. More... | |
bool | isFixedSize () const |
True, if this data type represents a fixed-size data type, as opposed to a variable-size data type. More... | |
bool | isMessage () const |
True, if this data type represents a message type. More... | |
bool | isSimple () const |
True, if this data type represents a simple data type, i.e., a data type such that an array of its instances can safely be shallow copied. More... | |
bool | isValid () const |
True, if this data type is valid. More... | |
operator void * () const | |
Void pointer conversion. More... | |
bool | operator!= (const DataType &dataType) const |
Inequality comparison operator. More... | |
bool | operator== (const DataType &dataType) const |
Equality comparison operator. More... | |
void | write (std::ostream &stream) const |
Write the data type to a stream. More... | |
virtual | ~DataType () |
Destructor. More... | |
Static Protected Member Functions | |
template<typename T > | |
static BuiltinDataType | create (const std::string &identifier) |
Create a built-in data type. More... | |
Friends | |
class | DataType |
class | DataTypeRegistry |
Additional Inherited Members | |
Protected Types inherited from variant_topic_tools::DataType | |
typedef boost::shared_ptr< boost::shared_ptr< Impl > > | ImplPtr |
Declaration of the data type implementation pointer type. More... | |
typedef boost::shared_ptr< boost::weak_ptr< Impl > > | ImplWPtr |
Declaration of the data type implementation weak pointer type. More... | |
Protected Attributes inherited from variant_topic_tools::DataType | |
ImplPtr | impl |
The data type's implementation adapter. More... | |
Built-in data type.
Definition at line 32 of file BuiltinDataType.h.
variant_topic_tools::BuiltinDataType::BuiltinDataType | ( | ) |
Default constructor.
Definition at line 27 of file BuiltinDataType.cpp.
variant_topic_tools::BuiltinDataType::BuiltinDataType | ( | const BuiltinDataType & | src | ) |
Copy constructor.
Definition at line 30 of file BuiltinDataType.cpp.
variant_topic_tools::BuiltinDataType::BuiltinDataType | ( | const DataType & | src | ) |
Copy constructor (overloaded version taking a data type)
Definition at line 34 of file BuiltinDataType.cpp.
|
virtual |
Destructor.
Definition at line 40 of file BuiltinDataType.cpp.
|
staticprotected |
Create a built-in data type.
bool variant_topic_tools::BuiltinDataType::isNumeric | ( | ) | const |
True, if this built-in data type is numeric.
Definition at line 54 of file BuiltinDataType.cpp.
|
virtual |
Assignment operator.
Reimplemented from variant_topic_tools::DataType.
Definition at line 69 of file BuiltinDataType.cpp.
|
friend |
Definition at line 34 of file BuiltinDataType.h.
|
friend |
Definition at line 35 of file BuiltinDataType.h.