The property value class.  
 More...
#include <JProperties.hh>
The property value class. 
This class consists of a pointer to the JPropertiesElementInterface. This class implements the assignment and type conversion operators. 
Definition at line 293 of file JProperties.hh.
 
◆ pointer_type
template<class JClass_t , template< class > class JMemory_t = JNew> 
 
 
◆ storage_type
template<class JClass_t , template< class > class JMemory_t = JNew> 
 
 
◆ memory_type
◆ JPropertiesElement() [1/2]
  
  
      
        
          | JEEP::JPropertiesElement::JPropertiesElement  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JPropertiesElement() [2/2]
template<class T > 
  
  
      
        
          | JEEP::JPropertiesElement::JPropertiesElement  | 
          ( | 
          T &  | 
          value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | value | reference to template object  | 
  
   
Definition at line 311 of file JProperties.hh.
Template class for I/O of properties element.
 
virtual void reset() override
Reset pointer.
 
 
 
 
◆ equals() [1/2]
Equality between property elements. 
- Parameters
 - 
  
    | element | properties element  | 
  
   
- Returns
 - true if equal; else false 
 
Definition at line 324 of file JProperties.hh.
  326       return get()->equals(*element.
get());
 
virtual JClass_t * get() const override
Get pointer.
 
 
 
 
◆ operator=()
◆ getValue() [1/2]
template<class T > 
  
  
      
        
          | const T& JEEP::JPropertiesElement::getValue  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get value. 
- Returns
 - value of this JPropertiesElement 
 
Definition at line 351 of file JProperties.hh.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
Exception when parsing a value.
 
 
 
 
◆ getValue() [2/2]
template<class T > 
  
  
      
        
          | T& JEEP::JPropertiesElement::getValue  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setValue()
template<class T > 
  
  
      
        
          | void JEEP::JPropertiesElement::setValue  | 
          ( | 
          const T &  | 
          value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ toString()
  
  
      
        
          | std::string JEEP::JPropertiesElement::toString  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ toValue()
template<class T > 
  
  
      
        
          | T JEEP::JPropertiesElement::toValue  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator const T &()
template<class T > 
  
  
      
        
          | JEEP::JPropertiesElement::operator const T &  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getEndMarker()
  
  
      
        
          | bool JEEP::JPropertiesElement::getEndMarker  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ setEndMarker()
  
  
      
        
          | void JEEP::JPropertiesElement::setEndMarker  | 
          ( | 
          const bool  | 
          marker | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set end marker. 
- Parameters
 - 
  
    | marker | if true stop reading after this properties element, else continue  | 
  
   
Definition at line 458 of file JProperties.hh.
 
 
◆ getSharedPointer() [1/2]
template<class JClass_t , template< class > class JMemory_t = JNew> 
 
Get shared pointer. 
- Returns
 - this shared pointer 
 
Definition at line 95 of file JSharedPointer.hh.
The template JSharedPointer class can be used to share a pointer to an object.
 
 
 
 
◆ getSharedPointer() [2/2]
template<class JClass_t , template< class > class JMemory_t = JNew> 
 
 
◆ setSharedPointer()
template<class JClass_t , template< class > class JMemory_t = JNew> 
 
Set shared pointer. 
- Parameters
 - 
  
  
 
Definition at line 117 of file JSharedPointer.hh.
  119       if (this->
get() != 
object.
get()) {
 
bool is_valid() const
Check validity of pointer.
 
void set(const JSharedPointer &object)
Set pointer.
 
 
 
 
◆ reset() [1/4]
template<class JClass_t , template< class > class JMemory_t = JNew> 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
Reset pointer. 
The reference counter is decremented by one and the object pointed to previously is deleted when its reference counter is zero. 
Reimplemented from JLANG::JStorage< JClass_t, JNew >.
Definition at line 171 of file JSharedPointer.hh.
virtual void reset() override
Reset pointer.
 
virtual void reset() override
Reset pointer.
 
 
 
 
◆ reset() [2/4]
Reset pointer. 
- Parameters
 - 
  
  
 
Definition at line 35 of file JPointer.hh.
  110       this->
reset(pointer.get());
 
 
 
 
◆ reset() [3/4]
template<class JClass_t > 
template<class T > 
 
 
◆ reset() [4/4]
template<class JClass_t > 
 
Reset pointer. 
- Parameters
 - 
  
  
 
Definition at line 94 of file JAbstractPointer.hh.
   96       if (this->
get() != p) {
 
virtual void set(JClass_t *p)=0
Set pointer.
 
virtual void reset()=0
Reset pointer.
 
virtual JClass_t * get() const =0
Get pointer.
 
 
 
 
◆ set() [1/3]
template<class JClass_t , template< class > class JMemory_t = JNew> 
 
Set pointer. 
The reference counter of the shared object pointed to is incremented by one.
- Parameters
 - 
  
  
 
Definition at line 188 of file JSharedPointer.hh.
virtual void set(JClass_t *p) override
Set pointer.
 
void attach(const JSharedCounter &object)
Attach this counter to given shared counter object.
 
 
 
 
◆ set() [2/3]
template<class JClass_t , template< class > class JMemory_t = JNew> 
  
  | 
      
   | 
  
inlineoverrideprotectedvirtualinherited   | 
  
 
Set pointer. 
The reference counter of the shared object pointed to is initialised to one.
- Parameters
 - 
  
    | p | pointer to derived class object  | 
  
   
Reimplemented from JLANG::JPointer< JClass_t >.
Definition at line 202 of file JSharedPointer.hh.
void initialise()
Initialise counter.
 
 
 
 
◆ set() [3/3]
template<class JClass_t > 
template<class T > 
 
Set pointer. 
- Parameters
 - 
  
  
 
Definition at line 96 of file JPointer.hh.
 
 
◆ initialise()
  
  
      
        
          | void JLANG::JSharedCounter::initialise  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ attach()
Attach this counter to given shared counter object. 
- Parameters
 - 
  
  
 
Definition at line 46 of file JSharedCounter.hh.
 
 
◆ detach()
  
  
      
        
          | bool JLANG::JSharedCounter::detach  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Detach. 
- Returns
 - true if counter at zero; else false 
 
Definition at line 63 of file JSharedCounter.hh.
 
 
◆ getCount()
  
  
      
        
          | const int JLANG::JSharedCounter::getCount  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ recreate()
Recreate object in memory. 
A new object is created if no memory is allocated yet, else the previously created object is maintained. 
Definition at line 57 of file JStorage.hh.
   60         this->
set(memory_type::create());
 
 
 
 
◆ create() [1/2]
Create object in memory. 
The memory allocated by a previously created object will be released. 
Definition at line 69 of file JStorage.hh.
   71       this->
reset(memory_type::create());
 
 
 
 
◆ create() [2/2]
Create array of objects in memory. 
The memory allocated by previously created objects will be released.
- Parameters
 - 
  
  
 
Definition at line 81 of file JStorage.hh.
   83       this->
reset(memory_type::create(size));
 
 
 
 
◆ release() [1/2]
Release memory. 
Definition at line 91 of file JStorage.hh.
   93       memory_type::release(this->
get());
 
 
 
 
◆ release() [2/2]
template<class JClass_t > 
  
  
      
        
          | static void JLANG::JNew< JClass_t >::release  | 
          ( | 
          JClass_t *  | 
          p | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
Release memory. 
- Parameters
 - 
  
  
 
Definition at line 41 of file JMemory.hh.
 
 
◆ get()
template<class JClass_t > 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
 
◆ getReference() [1/2]
template<class JClass_t > 
 
Get rereference to internal pointer. 
- Returns
 - reference to internal pointer 
 
Definition at line 119 of file JPointer.hh.
 
 
◆ getReference() [2/2]
template<class JClass_t > 
 
Get rereference to internal pointer. 
- Returns
 - reference to internal pointer 
 
Definition at line 130 of file JPointer.hh.
 
 
◆ equals() [2/2]
template<class JClass_t > 
 
Equals. 
The equality is evaluated by comparison of the internal pointers.
- Parameters
 - 
  
  
 
- Returns
 - true if equals; else false 
 
Definition at line 50 of file JAbstractPointer.hh.
   52       return this->
get() == 
object.get();
 
 
 
 
◆ is_valid()
template<class JClass_t > 
 
Check validity of pointer. 
- Returns
 - true if pointer not null; else false 
 
Definition at line 83 of file JAbstractPointer.hh.
   85       return this->
get() != NULL; 
 
 
 
 
◆ operator->()
template<class JClass_t > 
 
Smart pointer operator. 
- Returns
 - pointer to object 
 
Definition at line 112 of file JAbstractPointer.hh.
Exception for null pointer operation.
 
 
 
 
◆ operator JClass_t *()
template<class JClass_t > 
 
 
◆ end_marker
  
  
      
        
          | bool JEEP::JPropertiesElement::end_marker | 
         
       
   | 
  
private   | 
  
 
 
◆ counter
  
  
      
        
          | int* JLANG::JSharedCounter::counter | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ __p
template<class JClass_t > 
 
 
The documentation for this class was generated from the following file: