Jpp  16.0.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
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. More...
 
 JReference (const JReference< JClass_t > &reference)
 Constructor. More...
 
const JClass_t & getReference () const
 Get reference to object. More...
 
bool is_valid () const
 Check validity of reference. More...
 
const JClass_t * operator-> () const
 Smart pointer. More...
 
const JClass_t & operator* () const
 Dereference operator. More...
 

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

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  {}
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

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  }
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  }
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  }
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

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: