Graphite  Version 3
An experimental 3D geometry processing program
GEO::Attribute< bool >::BoolAttributeAccessor Class Reference

Accessor class for adapting Attribute<bool> indexing. More...

#include <geogram/basic/attributes.h>

Public Member Functions

 BoolAttributeAccessor (Attribute< bool > &attribute, index_t index)
 BoolAttributeAccessor constructor.
 
 operator bool () const
 Converts a BoolAttributeAccessor to a bool. More...
 
 BoolAttributeAccessor (const BoolAttributeAccessor &rhs)
 Copy-constructor. More...
 
BoolAttributeAccessoroperator= (bool x)
 Assigns a bool to a BoolAttributeAccessor. More...
 
BoolAttributeAccessoroperator= (const BoolAttributeAccessor &rhs)
 Copies a bool from another attribute. More...
 
BoolAttributeAccessoroperator= (const ConstBoolAttributeAccessor &rhs)
 Copies a bool from another attribute. More...
 

Detailed Description

Accessor class for adapting Attribute<bool> indexing.

Definition at line 1574 of file attributes.h.

Constructor & Destructor Documentation

◆ BoolAttributeAccessor()

GEO::Attribute< bool >::BoolAttributeAccessor::BoolAttributeAccessor ( const BoolAttributeAccessor &  rhs)
inline

Copy-constructor.

Parameters
[in]rhsa const reference to the BoolAttributeAccessor to be copied.

Definition at line 1600 of file attributes.h.

Member Function Documentation

◆ operator bool()

GEO::Attribute< bool >::BoolAttributeAccessor::operator bool ( ) const
inline

Converts a BoolAttributeAccessor to a bool.

Performs the actual lookup.

Definition at line 1591 of file attributes.h.

◆ operator=() [1/3]

BoolAttributeAccessor& GEO::Attribute< bool >::BoolAttributeAccessor::operator= ( bool  x)
inline

Assigns a bool to a BoolAttributeAccessor.

Stores the boolean into the Attribute.

Definition at line 1609 of file attributes.h.

◆ operator=() [2/3]

BoolAttributeAccessor& GEO::Attribute< bool >::BoolAttributeAccessor::operator= ( const BoolAttributeAccessor rhs)
inline

Copies a bool from another attribute.

Parameters
[in]rhsa const reference to the BoolAttributeAccessor to be copied.

Definition at line 1619 of file attributes.h.

◆ operator=() [3/3]

BoolAttributeAccessor& GEO::Attribute< bool >::BoolAttributeAccessor::operator= ( const ConstBoolAttributeAccessor &  rhs)
inline

Copies a bool from another attribute.

Parameters
[in]rhsa const reference to the ConstBoolAttributeAccessor to be copied.

Definition at line 1634 of file attributes.h.


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