public

Inheritance Graph

graph BT
	WrapperAttribute
	WrapperAttribute --> GenericAttribute
	click WrapperAttribute "classUtil_1_1WrapperAttribute"
	click GenericAttribute "classUtil_1_1GenericAttribute"

Description

Generic attribute that stores the copy of an arbitrary value.

Note: As the value is not assumed to have an ‘==’ operator, the result of the ‘==’ operator of two WrapperAttributes is always false!

Public Types

   
   
typedef WrapperAttribute < Type > attr_t

Public Functions

   
   
  WrapperAttribute()
   
  WrapperAttribute(const attr_t & other)
   
  WrapperAttribute( attr_t && other)
template< typename firstArg_t , typename… args, typename >  
  WrapperAttribute(firstArg_t && param1, args &&… params)
Forwarding constructor.
   
  ~WrapperAttribute()
   
const Type & get() const
   
Type & ref()
   
const Type & ref() const
   
attr_t * clone() const
   
Type & operator*()
   
const Type & operator*() const
   
attr_t & operator=( attr_t && other)
Copy from another object.
   
attr_t & operator=(const attr_t & other)

Documentation

typedef
Util::WrapperAttribute::attr_t

public
 
 
typedef WrapperAttribute < Type > attr_t

Defined in Util/GenericAttribute.h:221


function
Util::WrapperAttribute::WrapperAttribute

public
   
   
WrapperAttribute( )

Defined in Util/GenericAttribute.h:223


function
Util::WrapperAttribute::WrapperAttribute

public inline
     
     
WrapperAttribute( const attr_t & other )

Defined in Util/GenericAttribute.h:225


function
Util::WrapperAttribute::WrapperAttribute

public inline
     
     
WrapperAttribute( attr_t && other )

Defined in Util/GenericAttribute.h:226


function
Util::WrapperAttribute::WrapperAttribute

public inline explicit
     
template< typename firstArg_t , typename… args, typename = typename std::enable_if<!std::is_convertible<firstArg_t, const attr_t &>::value && !std::is_convertible<firstArg_t, attr_t &&>::value>::type >    
WrapperAttribute( firstArg_t && param1,
  args &&… params
)    

Forwarding constructor.

Defined in Util/GenericAttribute.h:231


function
Util::WrapperAttribute::~WrapperAttribute

public inline virtual
   
   
~WrapperAttribute( )

Defined in Util/GenericAttribute.h:235


function
Util::WrapperAttribute::get

public const inline
   
   
const Type & get( ) const

Return the stored value.

Returns

The value

Defined in Util/GenericAttribute.h:243


function
Util::WrapperAttribute::ref

public inline
   
   
Type & ref( )

Return a reference to the stored value.

Returns

Reference to the value

Defined in Util/GenericAttribute.h:250


function
Util::WrapperAttribute::ref

public const inline
   
   
const Type & ref( ) const

Return a constant reference to the stored value.

Returns

Constant reference to the value

Defined in Util/GenericAttribute.h:257


function
Util::WrapperAttribute::clone

public const inline virtual
   
   
attr_t * clone( ) const

If the wrapped value is copy-constructible, a copy is returned. Otherwise, a std::logic_error is thrown.

Defined in Util/GenericAttribute.h:261


function
Util::WrapperAttribute::operator*

public inline
   
   
Type & operator*( )

Defined in Util/GenericAttribute.h:263


function
Util::WrapperAttribute::operator*

public const inline
   
   
const Type & operator*( ) const

Defined in Util/GenericAttribute.h:264


function
Util::WrapperAttribute::operator=

public inline
     
     
attr_t & operator=( attr_t && other )

Copy from another object.

Defined in Util/GenericAttribute.h:268


function
Util::WrapperAttribute::operator=

public inline
     
     
attr_t & operator=( const attr_t & other )

Defined in Util/GenericAttribute.h:273