ug4
ug::Attachment< T > Class Template Reference

A generic specialization of IAttachment. More...

#include <attachment_pipe.h>

+ Inheritance diagram for ug::Attachment< T >:

Public Types

typedef AttachmentDataContainer< T > ContainerType
 
typedef T ValueType
 

Public Member Functions

 Attachment ()
 
 Attachment (bool passOnBehaviour)
 
 Attachment (const char *name)
 
 Attachment (const char *name, bool passOnBehaviour)
 
virtual IAttachmentclone ()
 
virtual IAttachmentDataContainercreate_container ()
 
IAttachmentDataContainercreate_container (const T &defaultValue)
 
virtual bool default_pass_on_behaviour () const
 
virtual ~Attachment ()
 
- Public Member Functions inherited from ug::IAttachment
const char * get_name ()
 should only be used for debug purposes. More...
 
 IAttachment ()
 
 IAttachment (const char *name)
 
virtual ~IAttachment ()
 
- Public Member Functions inherited from ug::UID
unsigned int id () const
 
bool operator== (const UID &uid)
 
 UID ()
 
 UID (const UID &uid)
 
virtual ~UID ()
 

Protected Attributes

bool m_passOnBehaviour
 
- Protected Attributes inherited from ug::IAttachment
const char * m_name
 

Detailed Description

template<class T>
class ug::Attachment< T >

A generic specialization of IAttachment.

This class is intended to simplify the process of Attachment creation. Note that there are typedefs, which are required by libGrids AttachmentAccessors.

Member Typedef Documentation

◆ ContainerType

template<class T >
typedef AttachmentDataContainer<T> ug::Attachment< T >::ContainerType

◆ ValueType

template<class T >
typedef T ug::Attachment< T >::ValueType

Constructor & Destructor Documentation

◆ Attachment() [1/4]

template<class T >
ug::Attachment< T >::Attachment ( )
inline

◆ Attachment() [2/4]

template<class T >
ug::Attachment< T >::Attachment ( bool  passOnBehaviour)
inline

◆ Attachment() [3/4]

template<class T >
ug::Attachment< T >::Attachment ( const char *  name)
inline

◆ Attachment() [4/4]

template<class T >
ug::Attachment< T >::Attachment ( const char *  name,
bool  passOnBehaviour 
)
inline

◆ ~Attachment()

template<class T >
virtual ug::Attachment< T >::~Attachment ( )
inlinevirtual

Member Function Documentation

◆ clone()

template<class T >
virtual IAttachment* ug::Attachment< T >::clone ( )
inlinevirtual

Implements ug::IAttachment.

◆ create_container() [1/2]

template<class T >
virtual IAttachmentDataContainer* ug::Attachment< T >::create_container ( )
inlinevirtual

Implements ug::IAttachment.

◆ create_container() [2/2]

template<class T >
IAttachmentDataContainer* ug::Attachment< T >::create_container ( const T &  defaultValue)
inline

◆ default_pass_on_behaviour()

template<class T >
virtual bool ug::Attachment< T >::default_pass_on_behaviour ( ) const
inlinevirtual

Implements ug::IAttachment.

Member Data Documentation

◆ m_passOnBehaviour

template<class T >
bool ug::Attachment< T >::m_passOnBehaviour
protected

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