![]() |
Pothos
0.2.1-g9f04573d
The Pothos dataflow programming software suite
|
#include <ObjectM.hpp>

Public Member Functions | |
| ObjectM (void) | |
| ObjectM (const ObjectM &obj) | |
| Copy constructor for ObjectM. More... | |
| ObjectM (ObjectM &&obj) | |
| Move constructor for ObjectM. More... | |
| ObjectM (ObjectM &obj) | |
| Copy constructor for ObjectM. More... | |
| ObjectM (const ObjectM &&obj) | |
| Move constructor for ObjectM. More... | |
| template<typename ValueType > | |
| ObjectM (ValueType &&value) | |
| virtual | ~ObjectM (void) |
| Destructor for ObjectM. More... | |
| ObjectM & | operator= (const ObjectM &rhs) |
| Copy assignment operator for ObjectM. More... | |
| ObjectM & | operator= (ObjectM &&rhs) |
| Move assignment operator for ObjectM. More... | |
| template<typename ValueType > | |
| ValueType & | extract (void) const |
Public Member Functions inherited from Pothos::Object | |
| Object (void) | |
| Object (const Object &obj) | |
| Object (Object &obj) | |
| Object (Object &&obj) | |
| Object (const Object &&obj) | |
| template<typename ValueType > | |
| Object (ValueType &&value) | |
| virtual | ~Object (void) |
| Object & | operator= (const Object &rhs) |
| Object & | operator= (Object &&rhs) |
| pothos_explicit | operator bool (void) const |
| bool | unique (void) const |
| const std::type_info & | type (void) const |
| template<typename ValueType > | |
| const ValueType & | extract (void) const |
| template<typename ValueType > | |
| ValueType | convert (void) const |
| Object | convert (const std::type_info &type) const |
| bool | canConvert (const std::type_info &type) const |
| std::ostream & | serialize (std::ostream &os) const |
| std::istream & | deserialize (std::istream &is) |
| int | compareTo (const Object &other) const |
| size_t | hashCode (void) const |
| std::string | toString (void) const |
| std::string | getTypeString (void) const |
| bool | equals (const Object &obj) const |
| bool | operator< (const Object &obj) const |
| bool | operator> (const Object &obj) const |
Additional Inherited Members | |
Static Public Member Functions inherited from Pothos::Object | |
| template<typename ValueType > | |
| static Object | make (ValueType &&value) |
| static bool | canConvert (const std::type_info &srcType, const std::type_info &dstType) |
Public Attributes inherited from Pothos::Object | |
| Detail::ObjectContainer * | _impl |
| Private implementation details. More... | |
ObjectM is a special mutable subclass of Object.
When ObjectM is created, its internal data can be modified via extract(). ObjectM can be implicitly casted as Object to pass into read-only calls. However, an Object instance cannot be converted into an ObjectM.
For example: Users may create an ObjectM rather than Object to modify its contents as part of a initialization routine.
|
explicit |
Create a null ObjectM.
|
explicit |
Create a new ObjectM from an arbitrary value.
| value | the data to store internally |
|
virtual |
Destructor for ObjectM.
| ValueType & Pothos::ObjectM::extract | ( | void | ) | const |
Cast the internal data to an arbitrary type. The requested cast type must exactly match the type().
| ObjectConvertError | if object type != ValueType |
1.8.6