ug4
|
Global attachments are automatically read/written from/to files and are considered during redistribution. More...
#include <global_attachments.h>
Classes | |
struct | AttachmentEntry |
struct | AttachmentType |
struct | FunctionEntry |
struct | IAttachmentType |
struct | IFunctionEntry |
Static Public Member Functions | |
template<class TElem > | |
static void | add_data_serializer (GridDataSerializationHandler &handler, Grid &grid, const std::string &name) |
template<class TElem > | |
static void | attach (Grid &g, const std::string &name) |
template<class TAttachment > | |
static TAttachment | attachment (const std::string &name) |
static bool | attachment_pass_on_behaviour (const std::string &name) |
template<class TAttachment > | |
static void | declare_attachment (const std::string &name, bool passOnBehaviour=false) |
static void | declare_attachment (const std::string &name, const std::string &typeName, bool passOnBehaviour=false) |
static const std::vector< std::string > & | declared_attachment_names () |
template<class TElem > | |
static bool | is_attached (Grid &g, const std::string &name) |
static bool | is_declared (const std::string &name) |
template<class TElem > | |
static void | read_attachment_values (std::istream &in, Grid &grid, const std::string &name) |
template<class TAttachment > | |
static void | register_attachment_type () |
static void | SynchronizeDeclaredGlobalAttachments (Grid &grid, int procId) |
static bool | type_is_registered (const std::string &typeName) |
static const char * | type_name (const std::string &name) |
template<class TAttachment > | |
static void | undeclare_attachment (const std::string &name) |
template<class TElem > | |
static void | write_attachment_values (std::ostream &out, Grid &grid, const std::string &name) |
Private Types | |
typedef std::map< std::string, AttachmentEntry > | AttachmentMap |
typedef std::map< std::string, IAttachmentType > | AttachmentTypeMap |
typedef std::vector< IFunctionEntry > | FunctionVec |
Private Member Functions | |
GlobalAttachments () | |
~GlobalAttachments () | |
Static Private Member Functions | |
template<class TElem , class TAttachment > | |
static void | add_attachment_serializer (GridDataSerializationHandler &handler, Grid &g, IAttachment &attachment) |
static AttachmentEntry & | attachment_entry (const std::string &name) |
static std::vector< std::string > & | attachment_names () |
static AttachmentTypeMap & | attachment_types () |
static AttachmentMap & | attachments () |
template<class TElem , class TAttachment > | |
static void | cast_and_attach (Grid &grid, IAttachment &attachment) |
template<class TElem > | |
static IFunctionEntry & | function_entry (const AttachmentEntry &ae) |
template<class TElem > | |
static IFunctionEntry & | function_entry (const std::string &name) |
template<class TElem > | |
static FunctionVec & | functions () |
static GlobalAttachments & | inst () |
template<class TElem , class TAttachment > | |
static void | read_attachment_from_stream (std::istream &in, Grid &grid, IAttachment &attachment) |
static void | register_standard_attachment_types () |
template<class TElem > | |
static void | remove_function_entry (const AttachmentEntry &ae) |
template<class TElem , class TAttachment > | |
static void | write_attachment_to_stream (std::ostream &out, Grid &grid, IAttachment &attachment) |
Private Attributes | |
AttachmentMap | m_attachmentMap |
std::vector< std::string > | m_attachmentNames |
AttachmentTypeMap | m_attachmentTypeMap |
FunctionVec | m_functionVecs [4] |
Global attachments are automatically read/written from/to files and are considered during redistribution.
|
private |
|
private |
|
private |
|
inlineprivate |
|
inlineprivate |
References attachments().
|
inlinestaticprivate |
References ug::GridDataSerializationHandler::add(), attachment(), and create().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References ug::GlobalAttachments::AttachmentEntry::attachment, attachment_entry(), name, ug::GlobalAttachments::AttachmentEntry::type, and UG_COND_THROW.
Referenced by add_attachment_serializer(), cast_and_attach(), declare_attachment(), read_attachment_from_stream(), and write_attachment_to_stream().
|
inlinestaticprivate |
References ug::GlobalAttachments::AttachmentEntry::attachment, attachments(), name, and UG_COND_THROW.
Referenced by add_data_serializer(), attach(), attachment(), function_entry(), is_attached(), read_attachment_values(), type_name(), undeclare_attachment(), and write_attachment_values().
|
inlinestaticprivate |
References inst(), and m_attachmentNames.
Referenced by declare_attachment(), declared_attachment_names(), and undeclare_attachment().
|
inlinestatic |
References attachments(), is_declared(), name, and UG_COND_THROW.
Referenced by ug::GridWriterUGX::process_global_attachments().
|
inlinestaticprivate |
References inst(), m_attachmentTypeMap, and register_standard_attachment_types().
Referenced by declare_attachment(), register_attachment_type(), type_is_registered(), and undeclare_attachment().
|
inlinestaticprivate |
References inst(), and m_attachmentMap.
Referenced by attachment_entry(), attachment_pass_on_behaviour(), declare_attachment(), is_declared(), undeclare_attachment(), and ~GlobalAttachments().
|
inlinestaticprivate |
References ug::Grid::attach_to(), attachment(), and ug::Grid::has_attachment().
|
inlinestatic |
References attachment(), attachment_names(), attachments(), name, ug::attachment_info_traits< TAttachment >::type_name(), and UG_COND_THROW.
Referenced by ug::GridReaderUGX::read_attachment(), and SynchronizeDeclaredGlobalAttachments().
|
inlinestatic |
References attachment_types(), name, and UG_COND_THROW.
|
inlinestatic |
References attachment_names().
Referenced by ug::GridWriterUGX::process_global_attachments(), and SynchronizeDeclaredGlobalAttachments().
|
inlinestaticprivate |
|
inlinestaticprivate |
References attachment_entry(), and name.
|
inlinestaticprivate |
References inst(), and m_functionVecs.
|
inlinestaticprivate |
Referenced by attachment_names(), attachment_types(), attachments(), and functions().
|
inlinestatic |
|
inlinestatic |
References attachments(), and name.
Referenced by ug::RasterLayersProjector::add_attachments(), ug::NeuriteProjector::attach_surf_params(), ug::SomaProjector::attach_surf_params(), attachment_pass_on_behaviour(), ug::SomaProjector::check_attachment(), ug::GlobAttachmentElementUserData< WDim, TData >::GlobAttachmentElementUserData(), ug::NeuriteProjector::NeuriteProjector(), ug::GridReaderUGX::read_attachment(), ug::SomaProjector::SomaProjector(), SynchronizeDeclaredGlobalAttachments(), and undeclare_attachment().
|
inlinestaticprivate |
|
inlinestatic |
|
inlinestatic |
References attachment_types(), and ug::attachment_info_traits< TAttachment >::type_name().
|
inlinestaticprivate |
Referenced by attachment_types().
|
inlinestaticprivate |
|
inlinestatic |
|
inlinestatic |
References attachment_types().
Referenced by ug::GridReaderUGX::read_attachment().
|
inlinestatic |
References attachment_entry(), name, and ug::GlobalAttachments::AttachmentEntry::type.
Referenced by ug::GridWriterUGX::process_global_attachments(), and ug::GridReaderUGX::read_attachment().
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestatic |
References ug::GlobalAttachments::AttachmentEntry::attachment, attachment_entry(), and name.
|
private |
Referenced by attachments().
|
private |
Referenced by attachment_names().
|
private |
Referenced by attachment_types().
|
private |
Referenced by functions().