Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JReference< const JClass_t > Class Template Reference

Template specialisation of JReference class for const data type. More...

#include <JReference.hh>

Public Member Functions

 JReference (const JClass_t &object)
 Constructor.
 
 JReference (const JReference< JClass_t > &reference)
 Constructor.
 
const JClass_t & getReference () const
 Get reference to object.
 
bool is_valid () const
 Check validity of reference.
 
const JClass_t * operator-> () const
 Smart pointer.
 
const JClass_t & operator* () const
 Dereference operator.
 

Protected Attributes

const JClass_t & __object
 

Detailed Description

template<class JClass_t>
class JLANG::JReference< const JClass_t >

Template specialisation of JReference class for const data type.

Definition at line 118 of file JReference.hh.

Constructor & Destructor Documentation

◆ JReference() [1/2]

template<class JClass_t >
JLANG::JReference< const JClass_t >::JReference ( const JClass_t & object)
inline

Constructor.

Parameters
objectobject

Definition at line 126 of file JReference.hh.

126 :
127 __object(object)
128 {}

◆ JReference() [2/2]

template<class JClass_t >
JLANG::JReference< const JClass_t >::JReference ( const JReference< JClass_t > & reference)
inline

Constructor.

Parameters
referencereference

Definition at line 136 of file JReference.hh.

136 :
137 __object(*reference)
138 {}

Member Function Documentation

◆ getReference()

template<class JClass_t >
const JClass_t & JLANG::JReference< const JClass_t >::getReference ( ) const
inline

Get reference to object.

Returns
reference to object

Definition at line 146 of file JReference.hh.

147 {
148 return __object;
149 }

◆ is_valid()

template<class JClass_t >
bool JLANG::JReference< const JClass_t >::is_valid ( ) const
inline

Check validity of reference.

Returns
true

Definition at line 157 of file JReference.hh.

158 {
159 return true;
160 }

◆ operator->()

template<class JClass_t >
const JClass_t * JLANG::JReference< const JClass_t >::operator-> ( ) const
inline

Smart pointer.

Returns
pointer to object

Definition at line 168 of file JReference.hh.

169 {
170 return &__object;
171 }

◆ operator*()

template<class JClass_t >
const JClass_t & JLANG::JReference< const JClass_t >::operator* ( ) const
inline

Dereference operator.

Returns
reference to object

Definition at line 179 of file JReference.hh.

180 {
181 return __object;
182 }

Member Data Documentation

◆ __object

template<class JClass_t >
const JClass_t& JLANG::JReference< const JClass_t >::__object
protected

Definition at line 185 of file JReference.hh.


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