OpenMesh::PropertyT< std::string > Class Template Reference

#include <Property.hh>

Inheritance diagram for OpenMesh::PropertyT< std::string >:
Inheritance graph
[legend]

List of all members.

Public Types

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

Public Member Functions

virtual void clear ()
 Clear all elements and free memory.
PropertyT< value_type > * clone () const
 Return a deep copy of self.
const value_typedata () const
virtual size_t element_size () const
 Size of one element in bytes or UnknownSize if not known.
virtual size_t n_elements () const
 Number of elements in property.
const_reference operator[] (int _idx) const
 Const access the i'th element. No range check is performed!
reference operator[] (int _idx)
 Access the i'th element. No range check is performed!
 PropertyT (const std::string &_name="<unknown>")
virtual void push_back ()
 Extend the number of elements by one.
virtual void reserve (size_t _n)
 Reserve memory for n elements.
virtual void resize (size_t _n)
 Resize storage to hold n elements.
size_t restore (std::istream &_istr, bool _swap)
virtual void set_persistent (bool _yn)
virtual size_t size_of (size_t) const
virtual size_t size_of () const
 Return size of property in bytes.
size_t store (std::ostream &_ostr, bool _swap) const
 Store self as one binary block. Max. length of a string is 65535 bytes.
virtual void swap (size_t _i0, size_t _i1)
 Let two elements swap their storage place.

Private Attributes

vector_type data_

Detailed Description

template<>
class OpenMesh::PropertyT< std::string >

Definition at line 372 of file Property.hh.


Member Typedef Documentation

typedef vector_type::const_reference OpenMesh::PropertyT< std::string >::const_reference

Definition at line 380 of file Property.hh.

typedef vector_type::reference OpenMesh::PropertyT< std::string >::reference

Definition at line 379 of file Property.hh.

typedef std::string OpenMesh::PropertyT< std::string >::Value

Definition at line 376 of file Property.hh.

typedef std::string OpenMesh::PropertyT< std::string >::value_type

Definition at line 378 of file Property.hh.

typedef std::vector<std::string> OpenMesh::PropertyT< std::string >::vector_type

Definition at line 377 of file Property.hh.


Constructor & Destructor Documentation

OpenMesh::PropertyT< std::string >::PropertyT ( const std::string &  _name = "<unknown>"  )  [inline]

Definition at line 384 of file Property.hh.


Member Function Documentation

virtual void OpenMesh::PropertyT< std::string >::clear (  )  [inline, virtual]

Clear all elements and free memory.

Implements OpenMesh::BaseProperty.

Definition at line 392 of file Property.hh.

PropertyT<value_type>* OpenMesh::PropertyT< std::string >::clone (  )  const [inline, virtual]

Return a deep copy of self.

Implements OpenMesh::BaseProperty.

Definition at line 439 of file Property.hh.

const value_type* OpenMesh::PropertyT< std::string >::data (  )  const [inline]

Definition at line 420 of file Property.hh.

virtual size_t OpenMesh::PropertyT< std::string >::element_size (  )  const [inline, virtual]

Size of one element in bytes or UnknownSize if not known.

Implements OpenMesh::BaseProperty.

Definition at line 404 of file Property.hh.

virtual size_t OpenMesh::PropertyT< std::string >::n_elements (  )  const [inline, virtual]

Number of elements in property.

Implements OpenMesh::BaseProperty.

Definition at line 403 of file Property.hh.

const_reference OpenMesh::PropertyT< std::string >::operator[] ( int  _idx  )  const [inline]

Const access the i'th element. No range check is performed!

Definition at line 434 of file Property.hh.

reference OpenMesh::PropertyT< std::string >::operator[] ( int  _idx  )  [inline]

Access the i'th element. No range check is performed!

Definition at line 428 of file Property.hh.

virtual void OpenMesh::PropertyT< std::string >::push_back (  )  [inline, virtual]

Extend the number of elements by one.

Implements OpenMesh::BaseProperty.

Definition at line 393 of file Property.hh.

virtual void OpenMesh::PropertyT< std::string >::reserve ( size_t  _n  )  [inline, virtual]

Reserve memory for n elements.

Implements OpenMesh::BaseProperty.

Definition at line 390 of file Property.hh.

virtual void OpenMesh::PropertyT< std::string >::resize ( size_t  _n  )  [inline, virtual]

Resize storage to hold n elements.

Implements OpenMesh::BaseProperty.

Definition at line 391 of file Property.hh.

size_t OpenMesh::PropertyT< std::string >::restore ( std::istream &  _istr,
bool  _swap 
) [inline, virtual]

Restore self from a binary block. Uses reserve() to set the size of self before restoring.

Implements OpenMesh::BaseProperty.

Definition at line 415 of file Property.hh.

virtual void OpenMesh::PropertyT< std::string >::set_persistent ( bool  _yn  )  [inline, virtual]

Enable or disable persistency. Self must be a named property to enable persistency.

Implements OpenMesh::BaseProperty.

Definition at line 400 of file Property.hh.

virtual size_t OpenMesh::PropertyT< std::string >::size_of ( size_t  _n_elem  )  const [inline, virtual]

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

Reimplemented from OpenMesh::BaseProperty.

Definition at line 408 of file Property.hh.

virtual size_t OpenMesh::PropertyT< std::string >::size_of ( void   )  const [inline, virtual]

Return size of property in bytes.

Reimplemented from OpenMesh::BaseProperty.

Definition at line 405 of file Property.hh.

size_t OpenMesh::PropertyT< std::string >::store ( std::ostream &  _ostr,
bool  _swap 
) const [inline, virtual]

Store self as one binary block. Max. length of a string is 65535 bytes.

Implements OpenMesh::BaseProperty.

Definition at line 412 of file Property.hh.

virtual void OpenMesh::PropertyT< std::string >::swap ( size_t  _i0,
size_t  _i1 
) [inline, virtual]

Let two elements swap their storage place.

Implements OpenMesh::BaseProperty.

Definition at line 394 of file Property.hh.


Member Data Documentation

vector_type OpenMesh::PropertyT< std::string >::data_ [private]

Definition at line 447 of file Property.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:16 2013