Free Electron
|
Type inspecific Accessor. More...
#include <Accessor.h>
Public Member Functions | |
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) |
Protected Attributes | |
FE_UWORD | m_index |
hp< Scope > | m_hpScope |
TypeInfo | m_typeInfo |
WeakRecord | m_optional_record |
An accessor is a type of functor that is bound to a particular attribute. It is useful for attribute specific operations, most notably accessing a attribute within a record. An accessor can also be used to check if a attribute exists in a Record, RecordArray, Bag, or Layout. An accessor is also a convienient way to setup attributes in a Scope.
Return the attribute this accessor is for.
Referenced by initialize(), fe::ext::Behavior::initializeRecord(), fe::ext::Recordable::initializeRecord(), fe::ext::Strata::initializeRecord(), fe::ext::Radio::initializeRecord(), fe::ext::SurfaceModel::initializeRecord(), fe::ext::SurfaceTransform::initializeRecord(), fe::ext::Audible::initializeRecord(), and fe::ext::Plant::initializeRecord().
|
inline |
optionally bind to a record
|
inline |
Return true if record has attribute.
|
inline |
Return true if record has attribute.
|
inline |
Return true if record has attribute.
|
inline |
Return true if spRA has attribute.
|
inline |
Return true if rRA has attribute.
Return true if spL has attribute.
|
inline |
Return true if L has attribute.
|
inline |
Return true if record has attribute.
|
inline |
Return true if record has attribute.
|
inline |
Return true if record has attribute.
|
inline |
Return true if spRA has attribute.
|
inline |
Return true if rRA has attribute.
Return true if spL has attribute.
|
inline |
Return true if L has attribute.
initialize functions setup the accessor but do not setup anything with the Scope.
References attribute().
initialize functions setup the accessor but do not setup anything with the Scope.
References fe::Scope::findAttribute().
initialize functions setup the accessor but do not setup anything with the Scope.
References initialize().
Referenced by initialize().
void fe::BaseAccessor::populate | ( | sp< Scope > | spScope, |
const String & | layout, | ||
const String & | attribute | ||
) |
setup the accessor and populate the named Layout, creating the Layout if neccessary
setup functions setup the accessor and also setup the Scope.
Referenced by fe::ext::RecordView::add().
void fe::BaseAccessor::setup | ( | sp< Scope > | scope, |
const String & | attribute, | ||
const String & | attributetype | ||
) |
setup functions setup the accessor and also setup the Scope.
References fe::Scope::findAttribute(), and fe::Scope::support().