TextInterface::VectorOfEstimate< V, T, U, Get, Size > Class Template Reference

Proxy enables attribute interface of Estimates in a vector. More...

#include <TextInterfaceEstimate.h>

Inheritance diagram for TextInterface::VectorOfEstimate< V, T, U, Get, Size >:
TextInterface::Attribute< V > TextInterface::Value Reference::Able Reference::HeapTracked

Public Member Functions

 VectorOfEstimate (const std::string &p, const std::string &t, Get g, Size s)
 Construct from a pointer to element attribute interface.
Attribute< V > * clone () const
 Retun a newly constructed copy.
std::string get_name () const
 Get the name of the attribute.
std::string get_description () const
 Get the description of the attribute.
void set_description (const std::string &d)
 Get the description of the attribute.
std::string get_detailed_description () const
 Get the detailed description of the attribute.
void set_detailed_description (const std::string &d)
 Get the detailed description of the attribute.
std::string get_value (const V *ptr) const
 Get the value of the attribute.
void set_value (V *, const std::string &)
 Set the value of the attribute.
bool matches (const std::string &name) const
 Return true if the name argument matches.
void set_modifiers (const std::string &modifiers) const
 Parse any modifiers that will alter the behaviour of the output stream.
void reset_modifiers () const
 Reset any output stream modifiers.
Public Member Functions inherited from TextInterface::Attribute< V >
 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>
virtual void set_parent (Parser *p)
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 V that returns Estimate<T,U>
Size size
 Method of V that returns size of vector.
std::string prefix
 The name of the vector instance.
std::string type
 Either "val" or "var".
std::string description
 The description of the attribute.
std::string detailed_description
 The detailed description of the attribute.
std::string range
 Range parsed from name during matches.
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< V >
Reference::To< V, 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 V, class T, class U, class Get, class Size>
class TextInterface::VectorOfEstimate< V, T, U, Get, Size >

Proxy enables attribute interface of Estimates in a vector.

In this template: V is a vector of Estimate<T,U>; Get is the method of V that returns const Estimate<T,U>; and Size is the method of V that returns the number elements in V

Member Function Documentation

◆ clone()

template<class V, class T, class U, class Get, class Size>
Attribute< V > * TextInterface::VectorOfEstimate< V, T, U, Get, Size >::clone ( ) const
inlinevirtual

Retun a newly constructed copy.

Implements TextInterface::Attribute< V >.

References TextInterface::Attribute< V >::Attribute(), and VectorOfEstimate().

◆ get_description()

template<class V, class T, class U, class Get, class Size>
std::string TextInterface::VectorOfEstimate< V, T, U, Get, Size >::get_description ( ) const
inlinevirtual

Get the description of the attribute.

Implements TextInterface::Value.

References description.

◆ get_detailed_description()

template<class V, class T, class U, class Get, class Size>
std::string TextInterface::VectorOfEstimate< V, T, U, Get, Size >::get_detailed_description ( ) const
inlinevirtual

Get the detailed description of the attribute.

Reimplemented from TextInterface::Value.

References detailed_description.

◆ get_name()

template<class V, class T, class U, class Get, class Size>
std::string TextInterface::VectorOfEstimate< V, T, U, Get, Size >::get_name ( ) const
inlinevirtual

Get the name of the attribute.

Implements TextInterface::Value.

References prefix, and type.

◆ matches()

template<class V, class T, class U, class Get, class Size>
bool TextInterface::VectorOfEstimate< V, T, U, Get, Size >::matches ( const std::string & name) const
virtual

Return true if the name argument matches.

Reimplemented from TextInterface::Value.

References prefix, range, and type.

◆ reset_modifiers()

template<class V, class T, class U, class Get, class Size>
void TextInterface::VectorOfEstimate< V, T, U, Get, Size >::reset_modifiers ( ) const
inlinevirtual

Reset any output stream modifiers.

Implements TextInterface::Value.

◆ set_description()

template<class V, class T, class U, class Get, class Size>
void TextInterface::VectorOfEstimate< V, T, U, Get, Size >::set_description ( const std::string & d)
inlinevirtual

Get the description of the attribute.

Implements TextInterface::Attribute< V >.

References description.

◆ set_detailed_description()

template<class V, class T, class U, class Get, class Size>
void TextInterface::VectorOfEstimate< V, T, U, Get, Size >::set_detailed_description ( const std::string & d)
inlinevirtual

Get the detailed description of the attribute.

Implements TextInterface::Attribute< V >.

References detailed_description.

◆ set_modifiers()

template<class V, class T, class U, class Get, class Size>
void TextInterface::VectorOfEstimate< V, T, U, Get, Size >::set_modifiers ( const std::string & modifiers) const
inlinevirtual

Parse any modifiers that will alter the behaviour of the output stream.

Implements TextInterface::Value.


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

Generated using doxygen 1.14.0