< Home

< Table of Contents

REFERENCE MANUAL

Definition Class Reference

#include <hps.h>

Inheritance diagram for Definition:
Object CubeMapDefinition GlyphDefinition ImageDefinition LinePatternDefinition MaterialPaletteDefinition NamedStyleDefinition ShaderDefinition TextureDefinition

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
 
Definitionoperator= (Definition const &in_that)
 
Definitionoperator= (Definition &&in_that)
 
bool operator== (Definition const &in_that) const
 
PortfolioKey Owner () const
 
void Undefine ()
 
- Public Member Functions inherited from Object
virtual bool Empty () const
 
intptr_t GetClassID () const
 
intptr_t GetInstanceID () const
 
bool HasType (Type in_mask) const
 
 Object (Object &&in_that)
 
Objectoperator= (Object const &other_object)
 
Objectoperator= (Object &&in_that)
 
virtual void Reset ()
 
Type Type () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
template<typename T >
static intptr_t ClassID ()
 

Detailed Description

The Definition class is a smart pointer to a database object. It is the base class for all definition objects.

Constructor & Destructor Documentation

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.

Parameters
in_thatThe 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.

Parameters
in_thatAn rvalue reference to a Definition to take the impl from.

Member Function Documentation

virtual void Definition::Assign ( Definition const &  in_that)
virtual

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

Parameters
in_thatThe source Definition for the assignment.
bool Definition::Equals ( Definition const &  in_that) const

Check if the source Definition is equivalent to this Definition.

Parameters
in_thatThe source Definition to compare to this Definition.
Returns
true if the objects are equivalent, false otherwise.
UTF8 Definition::Name ( ) const

Get the name given to this Definition when it was defined.

Returns
UTF8-encoded name of this Definition.
Type Definition::ObjectType ( ) const
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 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.

Parameters
in_thatThe source Definition to compare to this Definition.
Returns
true if the objects are not equivalent, false otherwise.
Definition& Definition::operator= ( Definition const &  in_that)

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

Parameters
in_thatThe source Definition for the assignment.
Returns
A reference to this Definition.
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.

Parameters
in_thatAn rvalue reference to a Definition to take the impl from.
Returns
A reference to this Definition.
bool Definition::operator== ( Definition const &  in_that) const

Check if the source Definition is equivalent to this Definition.

Parameters
in_thatThe source Definition to compare to this Definition.
Returns
true if the objects are equivalent, false otherwise.
PortfolioKey Definition::Owner ( ) const

Get the portfolio that owns this Definition.

Returns
The portfolio that owns this Definition.
void Definition::Undefine ( )

Removes this definition from the owning portfolio.


The documentation for this class was generated from the following file: