REFERENCE MANUAL
#include <hps.h>
Public Member Functions | |
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 |
Type | ObjectType () 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 (Type in_mask) const |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
Type | Type () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The Definition class is a smart pointer to a database object. It is the base class for all definition objects.
Definition::Definition | ( | ) |
The default constructor creates an uninitialized Definition object. The Type() function will return Type::None.
Definition::Definition | ( | Definition const & | in_that | ) |
The copy constructor creates a Definition object that shares the underlying smart-pointer of the source Definition.
in_that | The source Definition to copy. |
Definition::Definition | ( | Definition && | in_that | ) |
The move constructor creates a Definition by transferring the underlying impl of the rvalue reference to this Definition thereby avoiding a copy and allocation.
in_that | An rvalue reference to a Definition to take the impl from. |
|
virtual |
Associate this Definition with the same underlying impl as the source Definition.
in_that | The source Definition for the assignment. |
bool Definition::Equals | ( | Definition const & | in_that | ) | const |
Check if the source Definition is equivalent to this Definition.
in_that | The source Definition to compare to this Definition. |
UTF8 Definition::Name | ( | ) | const |
Get the name given to this Definition when it was defined.
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from Object.
Reimplemented in ShaderDefinition, LinePatternDefinition, MaterialPaletteDefinition, NamedStyleDefinition, CubeMapDefinition, ImageDefinition, TextureDefinition, and GlyphDefinition.
bool Definition::operator!= | ( | Definition const & | in_that | ) | const |
Check if the source Definition is not equivalent to this Definition.
in_that | The source Definition to compare to this Definition. |
Definition& Definition::operator= | ( | Definition const & | in_that | ) |
Associate this Definition with the same underlying impl as the source Definition.
in_that | The source Definition for the assignment. |
Definition& Definition::operator= | ( | Definition && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this Definition thereby avoiding a copy.
in_that | An rvalue reference to a Definition to take the impl from. |
bool Definition::operator== | ( | Definition const & | in_that | ) | const |
Check if the source Definition is equivalent to this Definition.
in_that | The source Definition to compare to this Definition. |
PortfolioKey Definition::Owner | ( | ) | const |
Get the portfolio that owns this Definition.
void Definition::Undefine | ( | ) |
Removes this definition from the owning portfolio.