Free Electron
|
The main data access class for the data system. More...
#include <Accessor.h>
Public Member Functions | |
Accessor (sp< Scope > scope, const String &attribute) | |
Accessor (const Accessor< T > &other) | |
Accessor< T > & | operator= (const Accessor< T > &other) |
T & | operator() (const RecordSB &r) |
Return the attribute. More... | |
const T | operator() (const RecordSB &r) const |
Return the attribute. More... | |
T & | operator() (const WeakRecordSB &r) |
Return the attribute. More... | |
const T | operator() (const WeakRecordSB &r) const |
Return the attribute. More... | |
T & | operator() (RecordSB *record) |
Return the attribute. More... | |
T & | operator() (sp< RecordArraySB > &rspRA, FE_UWORD index) |
Return the attribute. More... | |
const T & | operator() (sp< RecordArraySB > &rspRA, FE_UWORD index) const |
Return the attribute. More... | |
T & | operator() (hp< RecordArraySB > &rhpRA, FE_UWORD index) |
Return the attribute. More... | |
T & | operator() (const RecordSB &r, const char *message) |
Return the attribute. More... | |
bool | queryAttribute (const RecordSB &r, T *&data) |
Return true if the attribute exists in record. More... | |
bool | queryAttribute (const WeakRecordSB r, T *&data) |
Return true if the attribute exists in record. More... | |
T * | queryAttribute (const RecordSB &r) |
T * | queryAttribute (const WeakRecordSB r) |
Return a pointer to the attribute if it exists in record. More... | |
T * | queryAttribute (RecordSB *pR) |
Return a pointer to the attribute if it exists in record. More... | |
T * | queryAttribute (sp< RecordArraySB > &rspRA, FE_UWORD index) |
Return a pointer to the attribute if it exists in record indexed into the RecordArraySB. More... | |
T & | operator() (const RecordAV &r) |
Return the attribute. More... | |
const T | operator() (const RecordAV &r) const |
Return the attribute. More... | |
T & | operator() (const WeakRecordAV &r) |
Return the attribute. More... | |
const T | operator() (const WeakRecordAV &r) const |
Return the attribute. More... | |
T & | operator() (RecordAV *record) |
Return the attribute. More... | |
T & | operator() (sp< RecordArrayAV > &rspRA, FE_UWORD index) |
Return the attribute. More... | |
const T & | operator() (sp< RecordArrayAV > &rspRA, FE_UWORD index) const |
Return the attribute. More... | |
T & | operator() (hp< RecordArrayAV > &rhpRA, FE_UWORD index) |
Return the attribute. More... | |
T & | operator() (const RecordAV &r, const char *message) |
Return the attribute. More... | |
bool | queryAttribute (const RecordAV &r, T *&data) |
Return true if the attribute exists in record. More... | |
bool | queryAttribute (const WeakRecordAV r, T *&data) |
Return true if the attribute exists in record. More... | |
T * | queryAttribute (const RecordAV &r) |
T * | queryAttribute (const WeakRecordAV r) |
Return a pointer to the attribute if it exists in record. More... | |
T * | queryAttribute (RecordAV *pR) |
Return a pointer to the attribute if it exists in record. More... | |
T * | queryAttribute (sp< RecordArrayAV > &rspRA, FE_UWORD index) |
Return a pointer to the attribute if it exists in record indexed into the RecordArrayAV. More... | |
bool | operator() (const RecordAV &record, T &data) |
bool | operator() (const WeakRecordAV &record, T &data) |
bool | operator() (const RecordSB &record, T &data) |
bool | operator() (const WeakRecordSB &record, T &data) |
void | registerDefault (T *pT) |
T * | operator() (const sp< LayoutAV > &spLayout) |
Accessor< T > & | operator= (const T &a_value) |
T * | operator* (void) |
operator T & () | |
T & | c_val (void) |
Public Member Functions inherited from fe::BaseAccessor | |
void | initialize (sp< Scope > scope, const String &attribute) |
initialize functions setup the accessor but do not setup anything with the Scope. More... | |
void | initialize (Scope *pScope, const String &attribute) |
initialize functions setup the accessor but do not setup anything with the Scope. More... | |
void | initialize (sp< Scope > scope, sp< Attribute > spAttribute) |
initialize functions setup the accessor but do not setup anything with the Scope. More... | |
void | setup (sp< Scope > spScope, const String &attribute) |
setup functions setup the accessor and also setup the Scope. More... | |
void | setup (sp< Scope > scope, const String &attribute, const String &attributetype) |
setup functions setup the accessor and also setup the Scope. More... | |
void | populate (sp< Scope > spScope, const String &layout, const String &attribute) |
setup the accessor and populate the named Layout, creating the Layout if neccessary More... | |
sp< Scope > | scope (void) const |
bool | operator== (const BaseAccessor &other) const |
bool | operator< (const BaseAccessor &other) const |
BaseAccessor & | operator= (const BaseAccessor &other) |
operator FE_UWORD () const | |
FE_UWORD | index (void) const |
bool | check (const RecordSB &r) const |
Return true if record has attribute. More... | |
bool | check (const WeakRecordSB &r) const |
Return true if record has attribute. More... | |
bool | check (RecordSB *pR) const |
Return true if record has attribute. More... | |
bool | check (sp< RecordArraySB > &rspRA) const |
Return true if spRA has attribute. More... | |
bool | check (RecordArraySB &rRA) const |
Return true if rRA has attribute. More... | |
bool | check (sp< LayoutSB > &rspL) const |
Return true if spL has attribute. More... | |
bool | check (LayoutSB &rL) const |
Return true if L has attribute. More... | |
bool | check (const RecordAV &r) const |
Return true if record has attribute. More... | |
bool | check (const WeakRecordAV &r) const |
Return true if record has attribute. More... | |
bool | check (RecordAV *pR) const |
Return true if record has attribute. More... | |
bool | check (sp< RecordArrayAV > &rspRA) const |
Return true if spRA has attribute. More... | |
bool | check (RecordArrayAV &rRA) const |
Return true if rRA has attribute. More... | |
bool | check (sp< LayoutAV > &rspL) const |
Return true if spL has attribute. More... | |
bool | check (LayoutAV &rL) const |
Return true if L has attribute. More... | |
bool | check (sp< Layout > &rspL) const |
bool | check (Layout &rL) const |
sp< Attribute > | attribute (void) const |
Return the attribute this accessor is for. More... | |
const String & | name (void) const |
void | bind (const WeakRecord &a_record) |
optionally bind to a record More... | |
void | typeCheck (const String &attribute) |
Private Attributes | |
T * | m_pT |
Additional Inherited Members | |
Protected Attributes inherited from fe::BaseAccessor | |
FE_UWORD | m_index |
hp< Scope > | m_hpScope |
TypeInfo | m_typeInfo |
WeakRecord | m_optional_record |
The main data access class for the data system.
|
inline |
Return the attribute.
Checking for existence is not done
Referenced by fe::Accessor< fe::sp< fe::RecordGroup > >::queryAttribute().
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is done. If the attribute does not exist then an Exception is thrown
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is not done
|
inline |
Return the attribute.
Checking for existence is done. If the attribute does not exist then an Exception is thrown
|
inline |
Return true if the attribute exists in record.
Return the attribute data in
Referenced by fe::ext::Relay< SIZE, TYPE, BASE >::print(), and fe::Accessor< fe::sp< fe::RecordGroup > >::queryAttribute().
|
inline |
Return true if the attribute exists in record.
Return the attribute data in
|
inline |
Return a pointer to the attribute if it exists in record.
Otherwise return NULL
|
inline |
Return a pointer to the attribute if it exists in record.
Otherwise return NULL
|
inline |
Return a pointer to the attribute if it exists in record indexed into the RecordArraySB.
Otherwise return NULL
|
inline |
Return true if the attribute exists in record.
Return the attribute data in
|
inline |
Return true if the attribute exists in record.
Return the attribute data in
|
inline |
Return a pointer to the attribute if it exists in record.
Otherwise return NULL
|
inline |
Return a pointer to the attribute if it exists in record.
Otherwise return NULL
|
inline |
Return a pointer to the attribute if it exists in record indexed into the RecordArrayAV.
Otherwise return NULL