#include <sprk.h>

Public Member Functions | |
UTF8 | GetValue () const |
HPS::Type | ObjectType () const |
StringMetadata & | operator= (StringMetadata &&in_that) |
void | SetValue (char const *in_value) |
StringMetadata () | |
StringMetadata (Metadata const &in_that) | |
StringMetadata (StringMetadata const &in_that) | |
StringMetadata (StringMetadata &&in_that) | |
StringMetadata (char const *in_name, char const *in_value) | |
![]() | |
virtual void | Assign (Metadata const &in_that) |
bool | Equals (Metadata const &in_that) const |
HPS::UTF8 | GetName () const |
Metadata () | |
Metadata (Metadata const &in_that) | |
Metadata (Metadata &&in_that) | |
Metadata (char const *in_name) | |
bool | operator!= (Metadata const &in_that) const |
Metadata & | operator= (Metadata const &in_that) |
Metadata & | operator= (Metadata &&in_that) |
bool | operator== (Metadata const &in_that) const |
void | SetName (char const *in_name) |
![]() | |
Sprocket (Sprocket &&in_that) | |
![]() | |
virtual bool | Empty () const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
bool | HasType (HPS::Type in_mask) const |
Object (Object const &that) | |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
HPS::Type | Type () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
Detailed Description
The StringMetadata class is a smart pointer. It represents a piece of string Metadata.
Constructor & Destructor Documentation
HPS::StringMetadata::StringMetadata | ( | ) |
The default constructor creates an uninitialized StringMetadata object. The Type() function will return Type::None.
HPS::StringMetadata::StringMetadata | ( | Metadata const & | in_that | ) |
This constructor creates a StringMetadata object that shares the underlying smart-pointer of the source Metadata. The copy will only be successful if the source component is really an upcast of a StringMetadata object. Otherwise the copy will fail and the resulting StringMetadata will be invalid.
- Parameters
-
in_that The source Metadata to copy.
HPS::StringMetadata::StringMetadata | ( | StringMetadata const & | in_that | ) |
The copy constructor creates a StringMetadata object that shares the underlying smart-pointer of the source StringMetadata.
- Parameters
-
in_that The source StringMetadata to copy.
HPS::StringMetadata::StringMetadata | ( | StringMetadata && | in_that | ) |
The move constructor creates a StringMetadata by transferring the underlying object of the rvalue reference to this StringMetadata.
- Parameters
-
in_that An rvalue reference to a StringMetadata to take the underlying object from.
HPS::StringMetadata::StringMetadata | ( | char const * | in_name, |
char const * | in_value | ||
) |
This constructor creates a StringMetadata with a given name and value.
- Parameters
-
in_name The UTF8-encoded name for this StringMetadata. in_value The UTF8-encoded string value for this StringMetadata.
Member Function Documentation
UTF8 HPS::StringMetadata::GetValue | ( | ) | const |
Gets the string value for this StringMetadata.
- Returns
- The string value for this StringMetadata.
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
- Returns
- The declared type of the object in question, which may differ from the true, underlying type.
Reimplemented from HPS::Metadata.
StringMetadata& HPS::StringMetadata::operator= | ( | StringMetadata && | in_that | ) |
The move assignment operator transfers the underlying object of the rvalue reference to this StringMetadata.
- Parameters
-
in_that An rvalue reference to a StringMetadata to take the underlying object from.
- Returns
- A reference to this StringMetadata.
void HPS::StringMetadata::SetValue | ( | char const * | in_value | ) |
Sets the string value for this StringMetadata.
- Parameters
-
in_value The UTF8-encoded string value for this StringMetadata.
The documentation for this class was generated from the following file:
- include/sprk.h