View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
vistle::Vec< T, Dim >::Data Struct Reference

#include <core/vec.h>

Inheritance diagram for vistle::Vec< T, Dim >::Data:
Inheritance graph
[legend]
Collaboration diagram for vistle::Vec< T, Dim >::Data:
Collaboration graph
[legend]

Public Member Functions

 Data (const Index size=0, const std::string &name="", const Meta &meta=Meta())
 
 Data (const Index size, Type id, const std::string &name, const Meta &meta=Meta())
 
 Data (const Data &other, const std::string &name, Type id=UNKNOWN)
 
 Data (Object::Type id, const std::string &name, const Meta &meta)
 
template<class Archive >
void serialize (Archive &ar)
 
- Public Member Functions inherited from vistle::ObjectData
void addAttribute (const std::string &key, const std::string &value="")
 
V_COREEXPORT void setAttributeList (const std::string &key, const std::vector< std::string > &values)
 
void copyAttributes (const ObjectData *src, bool replace)
 
bool hasAttribute (const std::string &key) const
 
std::string getAttribute (const std::string &key) const
 
V_COREEXPORT std::vector< std::string > getAttributes (const std::string &key) const
 
V_COREEXPORT std::vector< std::string > getAttributeList () const
 
bool addAttachment (const std::string &key, Object::const_ptr att)
 
void copyAttachments (const ObjectData *src, bool replace)
 
bool hasAttachment (const std::string &key) const
 
Object::const_ptr getAttachment (const std::string &key) const
 
bool removeAttachment (const std::string &key)
 
V_COREEXPORT ObjectData (Object::Type id=Object::UNKNOWN, const std::string &name="", const Meta &m=Meta())
 
V_COREEXPORT ObjectData (const ObjectData &other, const std::string &name, Object::Type id=Object::UNKNOWN)
 
V_COREEXPORT ~ObjectData ()
 shallow copy, except for attributes More...
 
V_COREEXPORT void * operator new (size_t size)
 
V_COREEXPORT void * operator new (std::size_t size, void *ptr)
 
V_COREEXPORT void operator delete (void *ptr)
 
V_COREEXPORT void operator delete (void *ptr, void *voidptr2)
 
V_COREEXPORT int ref () const
 
V_COREEXPORT int unref () const
 
V_COREEXPORT bool isComplete () const
 
V_COREEXPORT void unresolvedReference ()
 check whether all references have been resolved More...
 
V_COREEXPORT void referenceResolved (const std::function< void()> &completeCallback)
 
template<class Archive >
ARCHIVE_ACCESS_SPLIT void save (Archive &ar) const
 
template<class Archive >
void load (Archive &ar)
 
 ObjectData (const ObjectData &)=delete
 
ObjectDataoperator= (const ObjectData &)=delete
 
- Public Member Functions inherited from vistle::ShmData
 ShmData (ShmType t, const std::string &name=std::string())
 
 ~ShmData ()
 
int ref () const
 
int unref () const
 
int refcount () const
 

Static Public Member Functions

static Datacreate (Index size=0, const Meta &meta=Meta())
 
static DatacreateNamed (Object::Type id, const std::string &name, const Meta &meta=Meta())
 
- Static Public Member Functions inherited from vistle::ObjectData
static ObjectDatacreate (Object::Type id, const std::string &name, const Meta &m)
 

Public Attributes

Vector min
 
Vector max
 
ShmVector< T > x [Dim]
 
- Public Attributes inherited from vistle::ObjectData
Object::Type type
 
std::atomic< int > unresolvedReferences
 no. of not-yet-available arrays and referenced objects More...
 
Meta meta
 
AttributeMap attributes
 
boost::interprocess::interprocess_recursive_mutex attachment_mutex
 
AttachmentMap attachments
 
- Public Attributes inherited from vistle::ShmData
const shm_name_t name
 
std::atomic< int > m_refcount
 
const ShmType shmtype = INVALID
 

Protected Member Functions

void setExact (bool exact)
 

Friends

class Vec
 

Additional Inherited Members

- Public Types inherited from vistle::ObjectData
typedef shm< char >::string Attribute
 
typedef shm< char >::string Key
 
typedef shm< Attribute >::vector AttributeList
 
typedef std::pair< const Key, AttributeListAttributeMapValueType
 
typedef shm< AttributeMapValueType >::allocator AttributeMapAllocator
 
typedef interprocess::map< Key, AttributeList, std::less< Key >, AttributeMapAllocatorAttributeMap
 
typedef std::map< std::string, std::vector< std::string > > StdAttributeMap
 
typedef boost::interprocess::scoped_lock< boost::interprocess::interprocess_recursive_mutex > attachment_mutex_lock_type
 
typedef interprocess::offset_ptr< const ObjectDataAttachment
 
typedef std::pair< const Key, AttachmentAttachmentMapValueType
 
typedef shm< AttachmentMapValueType >::allocator AttachmentMapAllocator
 
typedef interprocess::map< Key, Attachment, std::less< Key >, AttachmentMapAllocatorAttachmentMap
 
- Public Types inherited from vistle::ShmData
enum  ShmType { INVALID , OBJECT , ARRAY }
 

Constructor & Destructor Documentation

◆ Data() [1/4]

template<class T , int Dim>
vistle::Vec< T, Dim >::Data::Data ( const Index  size = 0,
const std::string &  name = "",
const Meta meta = Meta() 
)

◆ Data() [2/4]

template<class T , int Dim>
vistle::Vec< T, Dim >::Data::Data ( const Index  size,
Type  id,
const std::string &  name,
const Meta meta = Meta() 
)

◆ Data() [3/4]

template<class T , int Dim>
vistle::Vec< T, Dim >::Data::Data ( const Data other,
const std::string &  name,
Type  id = UNKNOWN 
)

◆ Data() [4/4]

template<class T , int Dim>
vistle::Vec< T, Dim >::Data::Data ( Object::Type  id,
const std::string &  name,
const Meta meta 
)

Member Function Documentation

◆ create()

template<class T , int Dim>
Vec< T, Dim >::Data * vistle::Vec< T, Dim >::Data::create ( Index  size = 0,
const Meta meta = Meta() 
)
static

◆ createNamed()

template<class T , int Dim>
Vec< T, Dim >::Data * vistle::Vec< T, Dim >::Data::createNamed ( Object::Type  id,
const std::string &  name,
const Meta meta = Meta() 
)
static

◆ serialize()

template<typename T , int Dim = 1>
template<class Archive >
void vistle::Vec< T, Dim >::Data::serialize ( Archive &  ar)

◆ setExact()

template<class T , int Dim>
void vistle::Vec< T, Dim >::Data::setExact ( bool  exact)
protected

Friends And Related Function Documentation

◆ Vec

template<typename T , int Dim = 1>
friend class Vec
friend

Member Data Documentation

◆ max

template<typename T , int Dim = 1>
Vector vistle::Vec< T, Dim >::Data::max

◆ min

template<typename T , int Dim = 1>
Vector vistle::Vec< T, Dim >::Data::min

◆ x

template<typename T , int Dim = 1>
ShmVector<T> vistle::Vec< T, Dim >::Data::x[Dim]

The documentation for this struct was generated from the following files: