NamedStyleDefinition

class HPS::NamedStyleDefinition : public HPS::Definition

The NamedStyleDefinition class is a smart pointer to a database object. It is a handle to a named style defined within a portfolio.

Public Functions

SegmentKey GetSource() const

Get the source segment for this NamedStyleDefinition.

Returns

The source segment for this NamedStyleDefinition. This is the segment that contains attributes that are associated with this named style.

NamedStyleDefinition()

The default constructor creates an uninitialized NamedStyleDefinition object. The Type() function will return Type::None.

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.

Parameters

in_that – The source Definition to copy.

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.

Parameters

in_that – An rvalue reference to a NamedStyleDefinition to take the impl from.

NamedStyleDefinition(NamedStyleDefinition const &in_that)

The copy constructor creates a NamedStyleDefinition object that shares the underlying smart-pointer of the source NamedStyleDefinition.

Parameters

in_that – The source NamedStyleDefinition to copy.

inline virtual HPS::Type ObjectType() const

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Returns

The declared type of the object in question, which may differ from the true, underlying type.

NamedStyleDefinition &operator=(NamedStyleDefinition &&in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this NamedStyleDefinition thereby avoiding a copy.

Parameters

in_that – An rvalue reference to a NamedStyleDefinition to take the impl from.

Returns

A reference to this NamedStyleDefinition.

NamedStyleDefinition &operator=(NamedStyleDefinition const &in_that)

Associate this NamedStyleDefinition with the same underlying impl as the source NamedStyleDefinition.

Parameters

in_that – The source NamedStyleDefinition for the assignment.

Returns

A reference to this NamedStyleDefinition.

~NamedStyleDefinition()

Public Static Attributes

static const HPS::Type staticType = HPS::Type::NamedStyleDefinition