Public Member Functions | List of all members
HPS::MarkerKey Class Reference

#include <hps.h>

Inheritance diagram for HPS::MarkerKey:
HPS::GeometryKey HPS::Key HPS::Object

Public Member Functions

 MarkerKey ()
 
 MarkerKey (Key const &in_that)
 
 MarkerKey (MarkerKey const &in_that)
 
MarkerKeyoperator= (MarkerKey const &in_that)
 
 MarkerKey (MarkerKey &&in_that)
 
MarkerKeyoperator= (MarkerKey &&in_that)
 
HPS::Type ObjectType () const
 
void Consume (MarkerKit &in_kit)
 
void Set (MarkerKit const &in_kit)
 
void Show (MarkerKit &out_kit) const
 
MarkerKeySetPoint (Point const &in_point)
 
bool ShowPoint (Point &out_point) const
 
- Public Member Functions inherited from HPS::GeometryKey
 GeometryKey ()
 
 GeometryKey (Key const &in_that)
 
 GeometryKey (GeometryKey const &in_that)
 
GeometryKeyoperator= (GeometryKey const &in_that)
 
 GeometryKey (GeometryKey &&in_that)
 
GeometryKeyoperator= (GeometryKey &&in_that)
 
size_t ShowReferrers (SegmentKeyArray &out_segments) const
 
size_t ShowReferrers (ReferenceKeyArray &out_references) const
 
GeometryKeySetPriority (int in_priority)
 
GeometryKeyUnsetPriority ()
 
bool ShowPriority (int &out_priority) const
 
GeometryKeySetUserData (intptr_t in_index, size_t in_bytes, byte const in_data[])
 
GeometryKeySetUserData (intptr_t in_index, ByteArray const &in_data)
 
GeometryKeySetUserData (IntPtrTArray const &in_indices, ByteArrayArray const &in_data)
 
GeometryKeyUnsetUserData (intptr_t in_index)
 
GeometryKeyUnsetUserData (size_t in_count, intptr_t const in_indices[])
 
GeometryKeyUnsetUserData (IntPtrTArray const &in_indices)
 
GeometryKeyUnsetAllUserData ()
 
size_t ShowUserDataCount () const
 
bool ShowUserDataIndices (IntPtrTArray &out_indices) const
 
bool ShowUserData (intptr_t in_index, ByteArray &out_data) const
 
bool ShowUserData (IntPtrTArray &out_indices, ByteArrayArray &out_data) const
 
bool ShowBoundings (BoundingKit &out_kit) const
 
- Public Member Functions inherited from HPS::Key
 Key ()
 
 Key (Key const &in_that)
 
 Key (Control const &in_control)
 
 Key (Key &&in_that)
 
Keyoperator= (Key &&in_that)
 
virtual ~Key ()
 
bool HasOwner () const
 
SegmentKey Up () const
 
SegmentKey Owner () const
 
void Delete ()
 
void MoveTo (SegmentKey const &in_new_owner)
 
Key CopyTo (SegmentKey const &in_destination) const
 
Keyoperator= (Key const &in_that)
 
virtual void Assign (Key const &in_that)
 
bool Equals (Key const &in_that) const
 
bool operator!= (Key const &in_that) const
 
bool operator== (Key const &in_that) const
 
size_t GetHash () const
 
- Public Member Functions inherited from HPS::Object
Objectoperator= (Object const &other_object)
 
 Object (Object &&in_that)
 
Objectoperator= (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

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

Detailed Description

The MarkerKey class is a smart pointer to a database object. It is a handle to a marker inserted via SegmentKey::InsertMarker.

Constructor & Destructor Documentation

HPS::MarkerKey::MarkerKey ( )

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

HPS::MarkerKey::MarkerKey ( Key const &  in_that)
explicit

This constructor creates a MarkerKey object that shares the underlying smart-pointer of the source Key. The copy will only be successful if the source key is really an upcast of a Marker key. Otherwise the copy will fail and the resulting MarkerKey will be invalid.

Parameters
in_keyThe source Key to copy.
HPS::MarkerKey::MarkerKey ( MarkerKey const &  in_that)

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

Parameters
in_thatThe source MarkerKey to copy.
HPS::MarkerKey::MarkerKey ( MarkerKey &&  in_that)

The move constructor creates a MarkerKey by transferring the underlying impl of the rvalue reference to this MarkerKey thereby avoiding a copy and allocation.

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

Member Function Documentation

void HPS::MarkerKey::Consume ( MarkerKit in_kit)

Completely replaces all settings on this MarkerKey with those set on the specified kit and resets the kit.

Parameters
in_kitThe kit from which to get the settings to replace on this MarkerKey.
HPS::Type HPS::MarkerKey::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 HPS::GeometryKey.

MarkerKey& HPS::MarkerKey::operator= ( MarkerKey const &  in_that)

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

Parameters
in_thatThe source MarkerKey for the assignment.
Returns
A reference to this MarkerKey.
MarkerKey& HPS::MarkerKey::operator= ( MarkerKey &&  in_that)

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

Parameters
in_thatAn rvalue reference to a MarkerKey to take the impl from.
Returns
A reference to this MarkerKey.
void HPS::MarkerKey::Set ( MarkerKit const &  in_kit)

Replace those settings on this MarkerKey with those set on the specified kit.

Parameters
in_kitThe kit from which to get the settings to replace on this MarkerKey.
MarkerKey& HPS::MarkerKey::SetPoint ( Point const &  in_point)

Sets the point for this MarkerKey.

Parameters
in_pointThe point for this MarkerKey.
Returns
A reference to this MarkerKey.
void HPS::MarkerKey::Show ( MarkerKit out_kit) const

Copy the contents of this MarkerKey into the specified kit.

Parameters
out_kitThe kit to populate with the contents of this MarkerKey.
bool HPS::MarkerKey::ShowPoint ( Point out_point) const

Shows the point for this MarkerKey.

Parameters
out_pointThe point for this MarkerKey.
Returns
true if a point was set, false otherwise.

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