TextInterface::HasAProxy< C, M, Get > Class Template Reference

Proxy enables attribute interface of member to be used by class. More...

#include <TextInterfaceProxy.h>

Inheritance diagram for TextInterface::HasAProxy< C, M, Get >:
TextInterface::AttributeAdapter< C, M > TextInterface::AdapterBase< Attribute< C >, Attribute< M > > TextInterface::Attribute< C > TextInterface::Value Reference::Able Reference::HeapTracked

Public Member Functions

 HasAProxy (const std::string &pre, const Attribute< M > *pa, Get g)
 Construct from a pointer to member attribute interface.
 HasAProxy (const HasAProxy &copy)
 Copy constructor.
Attribute< C > * clone () const
 Retun a newly constructed copy.
std::string get_name () const
 Get the name of the attribute.
std::string get_value (const C *ptr) const
 Get the value of the attribute.
void set_value (C *ptr, const std::string &val)
 Set the value of the attribute.
bool matches (const std::string &name) const
 Return true if the name argument matches.
Public Member Functions inherited from TextInterface::AttributeAdapter< C, M >
void set_description (const std::string &description)
 Set the description of the attribute.
void set_detailed_description (const std::string &description)
 Set the detailed description of the attribute.
Public Member Functions inherited from TextInterface::AdapterBase< Attribute< C >, Attribute< M > >
 AdapterBase (Attribute< M > *_value=0)
std::string get_description () const
 Get the description of the value.
std::string get_detailed_description () const
 Set the detailed description of the value.
void set_parent (Parser *p)
void set_modifiers (const std::string &mods) const
void reset_modifiers () const
Public Member Functions inherited from TextInterface::Attribute< C >
 Attribute ()
 Default constructor.
std::string get_value () const
 Get the value of the attribute.
void set_value (const std::string &value)
 Set the value of the attribute.
Public Member Functions inherited from TextInterface::Value
 Value ()
 Explicit default constructor required to delay definition of Reference::To<Parser>
 ~Value ()
 Explicit destructor required to delay definition of Reference::To<Parser>
Public Member Functions inherited from Reference::Able
 Able ()
 Default constructor.
 Able (const Able &)
 Copy constructor.
Ableoperator= (const Able &)
 Assignment operator.
virtual ~Able ()
 Destructor.
unsigned get_reference_count () const
 Returns the number of references there are to this.
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked ()
 Default constructor.
 HeapTracked (const HeapTracked &)
 Copy constructor.
HeapTrackedoperator= (const HeapTracked &)
 Assignment operator.
virtual ~HeapTracked ()
 Destructor.
bool __is_on_heap () const
 Return true if this instance is found in heap addresses.

Protected Attributes

Get get
 Method of C that returns M*.
std::string prefix
 The name of the M attribute within C.
Protected Attributes inherited from TextInterface::AdapterBase< Attribute< C >, Attribute< M > >
Reference::To< Attribute< M > > value
 The nested value.
Protected Attributes inherited from TextInterface::Value
Reference::To< Parser, false > parent
 The Parser composite in which this Value component is integrated.

Additional Inherited Members

Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 Returns the current number instances in existence.
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 Records the addresses of new instances allocated on the heap.
static void operator delete (void *location, void *ptr)
 Placement delete overload to match the placement new overload.
static void operator delete (void *location)
 Regular delete overload.
static size_t get_heap_queue_size ()
 Return the number of heap addresses awaiting processing.
Public Attributes inherited from TextInterface::Attribute< C >
Reference::To< C, false > instance
 Pointer to the instance from which attribute value will be obtained.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 Add the address of a reference to this object.
void __dereference (bool auto_delete=true) const
 Remove the address of a reference to this object.

Detailed Description

template<class C, class M, class Get>
class TextInterface::HasAProxy< C, M, Get >

Proxy enables attribute interface of member to be used by class.

In this template: C has a M; Get is the method of C that returns M*

Member Function Documentation

◆ clone()

template<class C, class M, class Get>
Attribute< C > * TextInterface::HasAProxy< C, M, Get >::clone ( ) const
inlinevirtual

Retun a newly constructed copy.

Implements TextInterface::Attribute< C >.

References HasAProxy().

◆ get_name()

template<class C, class M, class Get>
std::string TextInterface::HasAProxy< C, M, Get >::get_name ( ) const
inlinevirtual

◆ get_value()

template<class C, class M, class Get>
std::string TextInterface::HasAProxy< C, M, Get >::get_value ( const C * ptr) const
inlinevirtual

◆ matches()

template<class C, class M, class Get>
bool TextInterface::HasAProxy< C, M, Get >::matches ( const std::string & name) const
inlinevirtual

◆ set_value()

template<class C, class M, class Get>
void TextInterface::HasAProxy< C, M, Get >::set_value ( C * ptr,
const std::string & val )
inlinevirtual

The documentation for this class was generated from the following file:

Generated using doxygen 1.14.0