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
template<class JClass_t, template< class > class JMemory_t = JNew>
◆ 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.
◆ 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());
◆ operator=()
◆ getValue() [1/2]
template<class T >
const T& JEEP::JPropertiesElement::getValue |
( |
| ) |
const |
|
inline |
◆ 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.
97 return static_cast<const JSharedPointer&>(*
this);
◆ getSharedPointer() [2/2]
template<class JClass_t, template< class > class JMemory_t = JNew>
Get shared pointer.
- Returns
- this shared pointer
Definition at line 106 of file JSharedPointer.hh.
108 return static_cast<JSharedPointer&>(*
this);
◆ setSharedPointer()
template<class JClass_t, template< class > class JMemory_t = JNew>
◆ reset() [1/5]
template<class JClass_t, template< class > class JMemory_t = JNew>
◆ reset() [2/5]
template<class JClass_t, template< class > class JMemory_t = JNew>
◆ reset() [3/5]
template<class JClass_t, template< class > class JMemory_t = JNew>
template<class T >
Reset pointer.
- Parameters
-
Definition at line 108 of file JPointer.hh.
110 this->
reset(pointer.get());
◆ reset() [4/5]
template<class JClass_t>
template<class T >
◆ reset() [5/5]
◆ 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.
◆ set() [2/3]
template<class JClass_t, template< class > class JMemory_t = JNew>
|
inlineprotectedvirtualinherited |
◆ 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.
◆ recreate()
template<class JClass_t, template< class > class JMemory_t = JNew>
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]
template<class JClass_t, template< class > class JMemory_t = JNew>
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]
template<class JClass_t, template< class > class JMemory_t = JNew>
void JLANG::JStorage< JClass_t, JMemory_t >::create |
( |
const unsigned int |
size | ) |
|
|
inlineinherited |
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()
template<class JClass_t, template< class > class JMemory_t = JNew>
Release memory.
Definition at line 91 of file JStorage.hh.
93 memory_type::release(this->
get());
◆ get()
◆ getReference() [1/2]
Get rereference to internal pointer.
- Returns
- reference to internal pointer
Definition at line 119 of file JPointer.hh.
◆ getReference() [2/2]
Get rereference to internal pointer.
- Returns
- reference to internal pointer
Definition at line 130 of file JPointer.hh.
◆ equals() [2/2]
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()
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->()
◆ operator JClass_t *()
◆ end_marker
bool JEEP::JPropertiesElement::end_marker |
|
private |
◆ counter
int* JLANG::JSharedCounter::counter |
|
protectedinherited |
◆ __p
The documentation for this class was generated from the following file: