#include <hps.h>
Public Member Functions | |
NamedStyleDefinition () | |
NamedStyleDefinition (Definition const &in_that) | |
NamedStyleDefinition (NamedStyleDefinition const &in_that) | |
NamedStyleDefinition & | operator= (NamedStyleDefinition const &in_that) |
NamedStyleDefinition (NamedStyleDefinition &&in_that) | |
NamedStyleDefinition & | operator= (NamedStyleDefinition &&in_that) |
HPS::Type | ObjectType () const |
SegmentKey | GetSource () const |
![]() | |
Definition () | |
Definition (Definition const &in_that) | |
Definition & | operator= (Definition const &in_that) |
Definition (Definition &&in_that) | |
Definition & | operator= (Definition &&in_that) |
void | Undefine () |
PortfolioKey | Owner () const |
UTF8 | Name () const |
virtual void | Assign (Definition const &in_that) |
bool | Equals (Definition const &in_that) const |
bool | operator== (Definition const &in_that) const |
bool | operator!= (Definition const &in_that) const |
![]() | |
Object & | operator= (Object const &other_object) |
Object (Object &&in_that) | |
Object & | operator= (Object &&in_that) |
HPS::Type | Type () const |
virtual bool | Empty () const |
virtual void | Reset () |
bool | HasType (HPS::Type in_mask) const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The NamedStyleDefinition class is a smart pointer to a database object. It is a handle to a named style defined within a portfolio.
HPS::NamedStyleDefinition::NamedStyleDefinition | ( | ) |
The default constructor creates an uninitialized NamedStyleDefinition object. The Type() function will return Type::None.
HPS::NamedStyleDefinition::NamedStyleDefinition | ( | Definition const & | in_that | ) |
This constructor creates a NamedStyleDefinition object that shares the underlying smart-pointer of the source Definition. The copy will only be successful if the source definition is really an upcast of a named style definition. Otherwise the copy will fail and the resulting NamedStyleDefinition will be invalid.
in_that | The source Definition to copy. |
HPS::NamedStyleDefinition::NamedStyleDefinition | ( | NamedStyleDefinition const & | in_that | ) |
The copy constructor creates a NamedStyleDefinition object that shares the underlying smart-pointer of the source NamedStyleDefinition.
in_that | The source NamedStyleDefinition to copy. |
HPS::NamedStyleDefinition::NamedStyleDefinition | ( | NamedStyleDefinition && | in_that | ) |
The move constructor creates a NamedStyleDefinition by transferring the underlying impl of the rvalue reference to this NamedStyleDefinition thereby avoiding a copy and allocation.
in_that | An rvalue reference to a NamedStyleDefinition to take the impl from. |
SegmentKey HPS::NamedStyleDefinition::GetSource | ( | ) | const |
Get the source segment for this NamedStyleDefinition.
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Definition.
NamedStyleDefinition& HPS::NamedStyleDefinition::operator= | ( | NamedStyleDefinition const & | in_that | ) |
Associate this NamedStyleDefinition with the same underlying impl as the source NamedStyleDefinition.
in_that | The source NamedStyleDefinition for the assignment. |
NamedStyleDefinition& HPS::NamedStyleDefinition::operator= | ( | NamedStyleDefinition && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this NamedStyleDefinition thereby avoiding a copy.
in_that | An rvalue reference to a NamedStyleDefinition to take the impl from. |