OpenMesh::PropertyT< bool > Class Template Reference

#include <Property.hh>

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

List of all members.

Public Types

typedef
vector_type::const_reference 
const_reference
typedef vector_type::reference reference
typedef bool value_type
typedef std::vector< bool > vector_type

Public Member Functions

virtual void clear ()
 Clear all elements and free memory.
PropertyT< bool > * clone () const
 Make a copy of self.
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 to 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)
virtual void set_persistent (bool _yn)
virtual size_t size_of (size_t _n_elem) const
virtual size_t size_of () const
 Return size of property in bytes.
size_t store (std::ostream &_ostr, bool) const
 Store self as one binary block.
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< bool >

Definition at line 215 of file Property.hh.


Member Typedef Documentation

typedef vector_type::const_reference OpenMesh::PropertyT< bool >::const_reference

Definition at line 222 of file Property.hh.

typedef vector_type::reference OpenMesh::PropertyT< bool >::reference

Definition at line 221 of file Property.hh.

typedef bool OpenMesh::PropertyT< bool >::value_type

Definition at line 220 of file Property.hh.

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

Definition at line 219 of file Property.hh.


Constructor & Destructor Documentation

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

Definition at line 226 of file Property.hh.


Member Function Documentation

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

Clear all elements and free memory.

Implements OpenMesh::BaseProperty.

Definition at line 234 of file Property.hh.

PropertyT<bool>* OpenMesh::PropertyT< bool >::clone (  )  const [inline, virtual]

Make a copy of self.

Implements OpenMesh::BaseProperty.

Definition at line 351 of file Property.hh.

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

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

Implements OpenMesh::BaseProperty.

Definition at line 247 of file Property.hh.

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

Number of elements in property.

Implements OpenMesh::BaseProperty.

Definition at line 246 of file Property.hh.

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

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

Definition at line 344 of file Property.hh.

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

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

Definition at line 337 of file Property.hh.

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

Extend the number of elements by one.

Implements OpenMesh::BaseProperty.

Definition at line 235 of file Property.hh.

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

Reserve memory for n elements.

Implements OpenMesh::BaseProperty.

Definition at line 232 of file Property.hh.

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

Resize storage to hold n elements.

Implements OpenMesh::BaseProperty.

Definition at line 233 of file Property.hh.

size_t OpenMesh::PropertyT< bool >::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 295 of file Property.hh.

virtual void OpenMesh::PropertyT< bool >::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 241 of file Property.hh.

virtual size_t OpenMesh::PropertyT< bool >::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 249 of file Property.hh.

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

Return size of property in bytes.

Reimplemented from OpenMesh::BaseProperty.

Definition at line 248 of file Property.hh.

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

Store self as one binary block.

Implements OpenMesh::BaseProperty.

Definition at line 254 of file Property.hh.

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

Let two elements swap their storage place.

Implements OpenMesh::BaseProperty.

Definition at line 236 of file Property.hh.


Member Data Documentation

Definition at line 360 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