OpenVolumeMesh
 All Classes Functions Variables Typedefs Pages
OpenVolumeMesh::OpenVolumeMeshPropertyT< std::string > Class Template Reference

#include <OpenVolumeMesh/Core/OpenVolumeMeshProperty.hh>

Inheritance diagram for OpenVolumeMesh::OpenVolumeMeshPropertyT< std::string >:
OpenVolumeMesh::OpenVolumeMeshBaseProperty

Public Types

typedef std::string Value
typedef std::vector< std::string > vector_type
typedef std::string value_type
typedef vector_type::reference reference
typedef
vector_type::const_reference 
const_reference

Public Member Functions

 OpenVolumeMeshPropertyT (const std::string &_name="<unknown>", const std::string _def=std::string())
virtual void reserve (size_t _n)
 Reserve memory for n elements.
virtual void resize (size_t _n)
 Resize storage to hold n elements.
virtual void clear ()
 Clear all elements and free memory.
virtual void push_back ()
 Extend the number of elements by one.
virtual void swap (size_t _i0, size_t _i1)
 Let two elements swap their storage place.
virtual void delete_element (size_t _idx)
 Erase an element of the vector.
virtual size_t n_elements () const
 Number of elements in property.
virtual size_t element_size () const
 Size of one element in bytes or UnknownSize if not known.
virtual size_t size_of () const
 Return size of property in bytes.
virtual size_t size_of (size_t) const
virtual void stats (std::ostream &_ostr) const
const value_type * data () const
reference operator[] (int _idx)
 Access the i'th element. No range check is performed!
const_reference operator[] (int _idx) const
 Const access the i'th element. No range check is performed!
OpenVolumeMeshPropertyT
< value_type > * 
clone () const
 Return a deep copy of self.
vector_type::const_iterator begin () const
vector_type::iterator begin ()
vector_type::const_iterator end () const
vector_type::iterator end ()
- Public Member Functions inherited from OpenVolumeMesh::OpenVolumeMeshBaseProperty
 OpenVolumeMeshBaseProperty (const std::string &_name="<unknown>")
 OpenVolumeMeshBaseProperty (const OpenVolumeMeshBaseProperty &_rhs)
const std::string & name () const
 Return the name of the property.
virtual void serialize (std::ostream &_ostr) const
virtual void deserialize (std::istream &)
void set_persistent (bool _persistent)
bool persistent () const
const OpenVolumeMeshHandlehandle () const
void set_handle (const OpenVolumeMeshHandle &_handle)

Protected Member Functions

virtual void delete_multiple_entries (const std::vector< bool > &_tags)
 Delete multiple entries in list.

Friends

class PropertyPtr

Additional Inherited Members

- Static Public Attributes inherited from OpenVolumeMesh::OpenVolumeMeshBaseProperty
static const size_t UnknownSize = std::numeric_limits<size_t>::max()
 Indicates an error when a size is returned by a member.

Detailed Description

template<>
class OpenVolumeMesh::OpenVolumeMeshPropertyT< std::string >

Property specialization for std::string type.

Member Function Documentation

virtual size_t OpenVolumeMesh::OpenVolumeMeshPropertyT< std::string >::size_of ( size_t  _n_elem) const
inlinevirtual

Estimated size of property if it has _n_elem elements. The member returns UnknownSize if the size cannot be estimated.

Reimplemented from OpenVolumeMesh::OpenVolumeMeshBaseProperty.


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