NumberInterface< T, X > Class Template Reference

#include <interfacetemplate.h>

Inheritance diagram for NumberInterface< T, X >:

Public Member Functions

MAXON_METHODGet1 () const
 
MAXON_METHOD void Set (typename IntType< X >::type number, const T &v)
 

Static Public Member Functions

static MAXON_METHOD Result< NumberRef< T, X > > Create (T a, typename IntType< X >::type number)
 

Private Member Functions

 MAXON_INTERFACE (NumberInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.number")
 
 MAXON_GENERIC ((SpecialOut) typename K=GenericRef< NumberInterface >)
 
- Private Member Functions inherited from ErrorInterface
Ptr GetPtr ()
 
ConstPtr GetPtr () const
 
 MAXON_ADD_TO_COPY_ON_WRITE_REFERENCE_CLASS (protected:void Create(MAXON_SOURCE_LOCATION_DECLARATION) { *static_cast< typename S::DirectlyReferencedType::Hxx1::ReferenceClass * >(this)=S::DirectlyReferencedType::Hxx1::ErrObj::GetInstance()();typename S::DirectlyReferencedType::Ptr e=this->MakeWritable(false).GetPointer();e.SetLocation(MAXON_SOURCE_LOCATION_FORWARD);} void Create(MAXON_SOURCE_LOCATION_DECLARATION, const String &msg) { *static_cast< typename S::DirectlyReferencedType::Hxx1::ReferenceClass * >(this)=S::DirectlyReferencedType::Hxx1::ErrObj::GetInstance()();typename S::DirectlyReferencedType::Ptr e=this->MakeWritable(false).GetPointer();e.SetLocation(MAXON_SOURCE_LOCATION_FORWARD);e.SetMessage(msg);} void Create(MAXON_SOURCE_LOCATION_DECLARATION, const String &msg, const Error &cause) { *static_cast< typename S::DirectlyReferencedType::Hxx1::ReferenceClass * >(this)=S::DirectlyReferencedType::Hxx1::ErrObj::GetInstance()();typename S::DirectlyReferencedType::Ptr e=this->MakeWritable(false).GetPointer();e.SetLocation(MAXON_SOURCE_LOCATION_FORWARD);e.SetMessage(msg);e.SetCause(cause);})
 
 MAXON_ADD_TO_CONST_REFERENCE_CLASS (RefMemberType< S > DbgStop() { DebugOutput(OUTPUT::DIAGNOSTIC, static_cast< const typename S::ReferenceClass * >(this) ->ToString(nullptr));DebugStop();return this->PrivateGetRefMember();} RefMemberType< S > CritStop() { CriticalOutput(static_cast< const typename S::ReferenceClass * >(this) ->ToString(nullptr));return this->PrivateGetRefMember();} RefMemberType< S > DiagOutput() { DiagnosticOutput(static_cast< const typename S::ReferenceClass * >(this) ->ToString(nullptr));return this->PrivateGetRefMember();})
 
const MAXON_METHOD SourceLocationGetLocation () const
 
MAXON_METHOD void SetLocation (MAXON_SOURCE_LOCATION_DECLARATION)
 
MAXON_METHOD Block< void *const > GetStackTrace () const
 
MAXON_METHOD void SetStackTrace (const Block< void *const > &trace)
 
MAXON_FUNCTION void SetStackTrace (Int skip=STACKTRACE_SKIP)
 
MAXON_METHOD String GetMessage () const
 
MAXON_METHOD void SetMessage (const String &message)
 
const MAXON_METHOD Error & GetCause () const
 
MAXON_METHOD void SetCause (const Error &cause)
 
MAXON_METHOD void GetMachine (MachineRef &machine) const
 
MAXON_METHOD void SetMachine (const MachineRef &machine)
 
MAXON_METHOD Int PrivateGetCode () const
 
MAXON_METHOD void PrivateSetCode (Int code)
 
MAXON_METHOD void PrivateSetPreallocation (ThreadReferencedError preallocation) const
 
MAXON_METHOD ThreadReferencedError PrivateGetPreallocation () const
 
MAXON_METHOD void PrivateSetDebugError (const Error &cause) const
 
 ~ ErrorInterface ()
 
- Private Member Functions inherited from ObjectInterface
Ptr GetPtr ()
 
ConstPtr GetPtr () const
 
template<typename INTERFACE = ObjectInterface>
const MAXON_FUNCTION maxon::Class< typename INTERFACE::Hxx1::ReferenceClass > & GetClass () const
 
const MAXON_FUNCTION ClassInfo * GetClassInfo () const
 
template<typename REF >
const ComponentInfo & GetComponentInfoOfSuper (const REF *sptr, OverloadRank0) const MAXON_IF_TARGET_DEBUG(
 
template<typename REF , typename = typename REF::Component::ComponentClass>
const ComponentInfo & GetComponentInfoOfSuper (const REF *sptr, OverloadRank1) const
 
MAXON_FUNCTION Bool HasSameClass (const ObjectInterface *obj) const
 
Result< void > CopyFrom (const ObjectInterface *src)
 
Result< ObjectInterface * > Clone () const
 
template<typename REFCLASS >
MAXON_FUNCTION Result< REFCLASS > Clone () const
 
template<typename I >
MAXON_FUNCTION Bool IsInstanceOf () const
 
MAXON_FUNCTION Bool IsInstanceOf (const DataType &type) const
 
MAXON_METHOD String ToString (const FormatStatement *formatStatement) const
 
MAXON_METHOD Result< void > InitObject ()
 
MAXON_METHOD Bool IsEqual (const maxon::ObjectInterface *other) const
 
MAXON_METHOD COMPARERESULT Compare (const maxon::ObjectInterface *other) const
 
MAXON_FUNCTION UInt GetHashCode () const
 
MAXON_METHOD UInt GetHashCodeImpl () const
 
 MAXON_ADD_TO_CONST_REFERENCE_CLASS (Bool operator==(std::nullptr_t) const { return RefCompare< MAXON_IS_COW_KIND(S::Handler::KIND), true >::template IsEqual< const ObjectInterface *, const ObjectInterface * >(this->GetPointer(), nullptr);})
 
 MAXON_ADD_TO_CONST_REFERENCE_CLASS (Bool operator!=(std::nullptr_t) const { return !RefCompare< MAXON_IS_COW_KIND(S::Handler::KIND), true >::template IsEqual< const ObjectInterface *, const ObjectInterface * >(this->GetPointer(), nullptr);})
 
 MAXON_ADD_TO_CONST_REFERENCE_CLASS (Bool operator==(const ObjectInterface *ref) const { return RefCompare< MAXON_IS_COW_KIND(S::Handler::KIND), true >::template IsEqual< const ObjectInterface *, const ObjectInterface * >(this->GetPointer(), ref);})
 
 MAXON_ADD_TO_CONST_REFERENCE_CLASS (Bool operator!=(const ObjectInterface *ref) const { return !RefCompare< MAXON_IS_COW_KIND(S::Handler::KIND), true >::template IsEqual< const ObjectInterface *, const ObjectInterface * >(this->GetPointer(), ref);})
 
 MAXON_ADD_TO_CONST_REFERENCE_CLASS (Bool operator==(ObjectInterface *ref) const { return RefCompare< MAXON_IS_COW_KIND(S::Handler::KIND), true >::template IsEqual< const ObjectInterface *, const ObjectInterface * >(this->GetPointer(), ref);})
 
 MAXON_ADD_TO_CONST_REFERENCE_CLASS (Bool operator!=(ObjectInterface *ref) const { return !RefCompare< MAXON_IS_COW_KIND(S::Handler::KIND), true >::template IsEqual< const ObjectInterface *, const ObjectInterface * >(this->GetPointer(), ref);})
 
 MAXON_ADD_TO_CONST_REFERENCE_CLASS (template< typename T > Bool operator==(T *ref) const { return RefCompare< MAXON_IS_COW_KIND(S::Handler::KIND), true >::template IsEqual< const ObjectInterface *, const ObjectInterface * >(this->GetPointer(), ref);})
 
 MAXON_ADD_TO_CONST_REFERENCE_CLASS (template< typename T > Bool operator!=(T *ref) const { return !RefCompare< MAXON_IS_COW_KIND(S::Handler::KIND), true >::template IsEqual< const ObjectInterface *, const ObjectInterface * >(this->GetPointer(), ref);})
 
Bool PrivateIsInstanceOf (const DataType &type) const
 
 ~ ObjectInterface ()
 
void RemoveReference () const
 

Private Attributes

 MAXON_INTERFACE_SINGLE_IMPLEMENTATION
 
- Private Attributes inherited from ObjectInterface
maxon::ObjectInterface::ReferenceFunctions MAXON_ENUM_LIST_CLASS
 

Additional Inherited Members

- Private Types inherited from ErrorInterface
using Interface = ErrorInterface
 
using IsAllocType = std::true_type
 
using Ptr = maxon::ReferenceBase< ReferenceFunctions< maxon::RefBaseFunctions< maxon::DirectRef< ErrorInterface, maxon::PointerHandler, void > >> >
 
using ConstPtr = maxon::ReferenceBase< ReferenceFunctions< maxon::RefBaseFunctions< maxon::DirectRef< const ErrorInterface, maxon::PointerHandler, void > >> >
 
- Private Types inherited from ObjectInterface
using Interface = ObjectInterface
 
using IsAllocType = std::true_type
 
using Ptr = maxon::ReferenceBase< ReferenceFunctions< maxon::RefBaseFunctions< maxon::DirectRef< ObjectInterface, maxon::PointerHandler, void > >> >
 
using ConstPtr = maxon::ReferenceBase< ReferenceFunctions< maxon::RefBaseFunctions< maxon::DirectRef< const ObjectInterface, maxon::PointerHandler, void > >> >
 
using BaseInterface = ObjectInterface
 
- Static Private Member Functions inherited from ErrorInterface
static maxon::Id GetInterfaceId ()
 
static ErrorInterfaceAlloc (MAXON_SOURCE_LOCATION_DECLARATION, const ErrorInterface &src)
 
template<typename DUMMY >
static maxon::Int PrivateInstantiateNullValueHelper ()
 
- Static Private Member Functions inherited from ObjectInterface
static maxon::Id GetInterfaceId ()
 
static ObjectInterfaceAlloc (MAXON_SOURCE_LOCATION_DECLARATION, const ObjectInterface &src)
 
template<typename DUMMY >
static maxon::Int PrivateInstantiateNullValueHelper ()
 
static std::nullptr_t NullValuePtr ()
 
- Static Private Attributes inherited from ErrorInterface
static maxon::InterfaceReference _interface
 
static maxon::NonvirtualInterfaceReference _staticInterface
 
static const maxon::EntityBase::FLAGS REFERENCE_KIND
 
- Static Private Attributes inherited from ObjectInterface
static maxon::InterfaceReference _interface
 
static maxon::NonvirtualInterfaceReference _staticInterface
 
static const maxon::EntityBase::FLAGS REFERENCE_KIND
 
static const EntityBase::FLAGS INTERFACE_FLAGS
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( NumberInterface< T, X >  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.number"   
)
private

◆ MAXON_GENERIC()

MAXON_GENERIC ( (SpecialOut) typename  K = GenericRefNumberInterface< T, X > >)
private

◆ Get1()

MAXON_METHOD T Get1 ( ) const

◆ Create()

static MAXON_METHOD Result<NumberRef<T, X> > Create ( a,
typename IntType< X >::type  number 
)
static

◆ Set()

MAXON_METHOD void Set ( typename IntType< X >::type  number,
const T &  v 
)

Member Data Documentation

◆ MAXON_INTERFACE_SINGLE_IMPLEMENTATION

MAXON_INTERFACE_SINGLE_IMPLEMENTATION
private