libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gbl::PrimitiveBase< P > Class Template Reference
Inheritance diagram for gbl::PrimitiveBase< P >:
gbl::PrimitiveCompatible< P, PrimitiveBase< P > >

Public Types

using PrimitiveType = P
 

Public Member Functions

constexpr PrimitiveBase (P p) noexcept
 
constexpr P getPrimitiveValue (void) const noexcept
 
constexpr const P * getPrimitiveAddress (void) const noexcept
 
constexpr P * getPrimitiveAddress (void) noexcept
 
- Public Member Functions inherited from gbl::PrimitiveCompatible< P, PrimitiveBase< P > >
constexpr const P * primitive_cast (void) const noexcept
 
constexpr operator P () const noexcept
 
constexpr P * operator& (void) noexcept
 
constexpr const P * operator& (void) const noexcept
 

Protected Attributes

primitive_
 

Additional Inherited Members

- Static Public Member Functions inherited from gbl::PrimitiveCompatible< P, PrimitiveBase< P > >
static constexpr std::enable_if_t< std::same_as< T, P >, P * > primitive_cast (PrimitiveBase< P > *pDerived) noexcept
 

Detailed Description

template<typename P>
class gbl::PrimitiveBase< P >

Definition at line 46 of file gimbal_decls.hpp.

Member Typedef Documentation

◆ PrimitiveType

template<typename P >
using gbl::PrimitiveBase< P >::PrimitiveType = P

Definition at line 50 of file gimbal_decls.hpp.

Constructor & Destructor Documentation

◆ PrimitiveBase()

template<typename P >
constexpr gbl::PrimitiveBase< P >::PrimitiveBase ( p)
inlineconstexprnoexcept

Definition at line 53 of file gimbal_decls.hpp.

53: primitive_(std::move(p)) {}

Member Function Documentation

◆ getPrimitiveValue()

template<typename P >
constexpr P gbl::PrimitiveBase< P >::getPrimitiveValue ( void  ) const
inlineconstexprnoexcept

Definition at line 55 of file gimbal_decls.hpp.

55{ return primitive_; }

◆ getPrimitiveAddress() [1/2]

template<typename P >
constexpr const P * gbl::PrimitiveBase< P >::getPrimitiveAddress ( void  ) const
inlineconstexprnoexcept

Definition at line 56 of file gimbal_decls.hpp.

56{ return &primitive_; }

◆ getPrimitiveAddress() [2/2]

template<typename P >
constexpr P * gbl::PrimitiveBase< P >::getPrimitiveAddress ( void  )
inlineconstexprnoexcept

Definition at line 57 of file gimbal_decls.hpp.

57{ return &primitive_; }

Field Documentation

◆ primitive_

template<typename P >
P gbl::PrimitiveBase< P >::primitive_
protected

Definition at line 48 of file gimbal_decls.hpp.

48{};

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