#include <hps.h>

Public Member Functions | |
LegacyShaderDefinition () | |
LegacyShaderDefinition (Definition const &in_that) | |
LegacyShaderDefinition (LegacyShaderDefinition const &in_that) | |
LegacyShaderDefinition (LegacyShaderDefinition &&in_that) | |
HPS::Type | ObjectType () const |
LegacyShaderDefinition & | operator= (LegacyShaderDefinition const &in_that) |
LegacyShaderDefinition & | operator= (LegacyShaderDefinition &&in_that) |
void | Set (LegacyShaderKit const &in_kit) |
void | Show (LegacyShaderKit &out_kit) const |
![]() | |
virtual void | Assign (Definition const &in_that) |
Definition () | |
Definition (Definition const &in_that) | |
Definition (Definition &&in_that) | |
bool | Equals (Definition const &in_that) const |
UTF8 | Name () const |
bool | operator!= (Definition const &in_that) const |
Definition & | operator= (Definition const &in_that) |
Definition & | operator= (Definition &&in_that) |
bool | operator== (Definition const &in_that) const |
PortfolioKey | Owner () const |
void | Undefine () |
![]() | |
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 () |
virtual HPS::Type | Type () const |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::LegacyShaderDefinition |
![]() | |
static const HPS::Type | staticType = HPS::Type::Definition |
![]() | |
static const HPS::Type | staticType = HPS::Type::None |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
Detailed Description
Internal use only - customers should not use. The LegacyShaderDefinition class is a smart pointer to a database object. It is a handle to a shader defined within a portfolio.
Constructor & Destructor Documentation
◆ LegacyShaderDefinition() [1/4]
HPS::LegacyShaderDefinition::LegacyShaderDefinition | ( | ) |
The default constructor creates an uninitialized LegacyShaderDefinition object. The Type() function will return Type::None.
◆ LegacyShaderDefinition() [2/4]
HPS::LegacyShaderDefinition::LegacyShaderDefinition | ( | Definition const & | in_that | ) |
This constructor creates a LegacyShaderDefinition 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 shader definition. Otherwise the copy will fail and the resulting LegacyShaderDefinition will be invalid.
- Parameters
-
in_that The source Definition to copy.
◆ LegacyShaderDefinition() [3/4]
HPS::LegacyShaderDefinition::LegacyShaderDefinition | ( | LegacyShaderDefinition const & | in_that | ) |
The copy constructor creates a LegacyShaderDefinition object that shares the underlying smart-pointer of the source LegacyShaderDefinition.
- Parameters
-
in_that The source LegacyShaderDefinition to copy.
◆ LegacyShaderDefinition() [4/4]
HPS::LegacyShaderDefinition::LegacyShaderDefinition | ( | LegacyShaderDefinition && | in_that | ) |
The move constructor creates a LegacyShaderDefinition by transferring the underlying impl of the rvalue reference to this LegacyShaderDefinition thereby avoiding a copy and allocation.
- Parameters
-
in_that An rvalue reference to a LegacyShaderDefinition to take the impl from.
Member Function Documentation
◆ ObjectType()
|
inlinevirtual |
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.
Reimplemented from HPS::Definition.
◆ operator=() [1/2]
LegacyShaderDefinition& HPS::LegacyShaderDefinition::operator= | ( | LegacyShaderDefinition const & | in_that | ) |
Associate this LegacyShaderDefinition with the same underlying impl as the source LegacyShaderDefinition.
- Parameters
-
in_that The source LegacyShaderDefinition for the assignment.
- Returns
- A reference to this LegacyShaderDefinition.
◆ operator=() [2/2]
LegacyShaderDefinition& HPS::LegacyShaderDefinition::operator= | ( | LegacyShaderDefinition && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this LegacyShaderDefinition thereby avoiding a copy.
- Parameters
-
in_that An rvalue reference to a LegacyShaderDefinition to take the impl from.
- Returns
- A reference to this LegacyShaderDefinition.
◆ Set()
void HPS::LegacyShaderDefinition::Set | ( | LegacyShaderKit const & | in_kit | ) |
Redefine the shader for this LegacyShaderDefinition.
- Parameters
-
in_kit The new shader for this LegacyShaderDefinition.
◆ Show()
void HPS::LegacyShaderDefinition::Show | ( | LegacyShaderKit & | out_kit | ) | const |
Shows the shader for this LegacyShaderDefinition.
- Parameters
-
out_kit The shader for this LegacyShaderDefinition.
The documentation for this class was generated from the following file:
- include/hps.h